Lines Matching refs:Kind
337 case Type::Kind::kVector: { in IsSimple()
343 case Type::Kind::kHandle: in IsSimple()
344 case Type::Kind::kRequestHandle: in IsSimple()
345 case Type::Kind::kPrimitive: in IsSimple()
347 case Type::Kind::kArray: in IsSimple()
348 case Type::Kind::kVector: in IsSimple()
349 case Type::Kind::kString: in IsSimple()
350 case Type::Kind::kIdentifier: in IsSimple()
354 case Type::Kind::kString: { in IsSimple()
359 case Type::Kind::kArray: in IsSimple()
360 case Type::Kind::kHandle: in IsSimple()
361 case Type::Kind::kRequestHandle: in IsSimple()
362 case Type::Kind::kPrimitive: in IsSimple()
364 case Type::Kind::kIdentifier: { in IsSimple()
478 assert(decl->kind == Decl::Kind::kStruct); in SimpleLayoutConstraint()
520 case Decl::Kind::kStruct: { in MaxBytesConstraint()
525 case Decl::Kind::kTable: { in MaxBytesConstraint()
530 case Decl::Kind::kUnion: { in MaxBytesConstraint()
560 case Decl::Kind::kStruct: { in MaxHandlesConstraint()
565 case Decl::Kind::kTable: { in MaxHandlesConstraint()
570 case Decl::Kind::kUnion: { in MaxHandlesConstraint()
876 case raw::Constant::Kind::kIdentifier: { in ConsumeConstant()
885 case raw::Constant::Kind::kLiteral: { in ConsumeConstant()
897 case raw::Type::Kind::kArray: { in ConsumeType()
909 case raw::Type::Kind::kVector: { in ConsumeType()
927 case raw::Type::Kind::kString: { in ConsumeType()
942 case raw::Type::Kind::kHandle: { in ConsumeType()
947 case raw::Type::Kind::kRequestHandle: { in ConsumeType()
956 case raw::Type::Kind::kIdentifier: { in ConsumeType()
1335 case Constant::Kind::kIdentifier: { in ResolveConstant()
1339 case Constant::Kind::kLiteral: { in ResolveConstant()
1343 case Constant::Kind::kSynthesized: { in ResolveConstant()
1354 if (!decl || decl->kind != Decl::Kind::kConst) in ResolveIdentifierConstant()
1366 case Type::Kind::kString: { in ResolveIdentifierConstant()
1370 if (!const_val.Convert(ConstantValue::Kind::kString, &resolved_val)) in ResolveIdentifierConstant()
1374 case Type::Kind::kPrimitive: { in ResolveIdentifierConstant()
1378 if (!const_val.Convert(ConstantValue::Kind::kBool, &resolved_val)) in ResolveIdentifierConstant()
1382 if (!const_val.Convert(ConstantValue::Kind::kInt8, &resolved_val)) in ResolveIdentifierConstant()
1386 if (!const_val.Convert(ConstantValue::Kind::kInt16, &resolved_val)) in ResolveIdentifierConstant()
1390 if (!const_val.Convert(ConstantValue::Kind::kInt32, &resolved_val)) in ResolveIdentifierConstant()
1394 if (!const_val.Convert(ConstantValue::Kind::kInt64, &resolved_val)) in ResolveIdentifierConstant()
1398 if (!const_val.Convert(ConstantValue::Kind::kUint8, &resolved_val)) in ResolveIdentifierConstant()
1402 if (!const_val.Convert(ConstantValue::Kind::kUint16, &resolved_val)) in ResolveIdentifierConstant()
1406 if (!const_val.Convert(ConstantValue::Kind::kUint32, &resolved_val)) in ResolveIdentifierConstant()
1410 if (!const_val.Convert(ConstantValue::Kind::kUint64, &resolved_val)) in ResolveIdentifierConstant()
1414 if (!const_val.Convert(ConstantValue::Kind::kFloat32, &resolved_val)) in ResolveIdentifierConstant()
1418 if (!const_val.Convert(ConstantValue::Kind::kFloat64, &resolved_val)) in ResolveIdentifierConstant()
1443 case raw::Literal::Kind::kString: { in ResolveLiteralConstant()
1444 if (type->kind != Type::Kind::kString) in ResolveLiteralConstant()
1470 case raw::Literal::Kind::kTrue: { in ResolveLiteralConstant()
1471 if (type->kind != Type::Kind::kPrimitive) in ResolveLiteralConstant()
1478 case raw::Literal::Kind::kFalse: { in ResolveLiteralConstant()
1479 if (type->kind != Type::Kind::kPrimitive) in ResolveLiteralConstant()
1486 case raw::Literal::Kind::kNumeric: { in ResolveLiteralConstant()
1487 if (type->kind != Type::Kind::kPrimitive) in ResolveLiteralConstant()
1590 case flat::Type::Kind::kString: in TypeCanBeConst()
1592 case flat::Type::Kind::kPrimitive: in TypeCanBeConst()
1600 if (type->kind != flat::Type::Kind::kIdentifier) { in TypeResolve()
1606 case Decl::Kind::kEnum: { in TypeResolve()
1624 case flat::Type::Kind::kString: { in TypeIsConvertibleTo()
1625 if (from_type->kind != flat::Type::Kind::kString) { in TypeIsConvertibleTo()
1645 case flat::Type::Kind::kPrimitive: { in TypeIsConvertibleTo()
1646 if (from_type->kind != flat::Type::Kind::kPrimitive) { in TypeIsConvertibleTo()
1672 assert(type->kind == Type::Kind::kString || type->kind == Type::Kind::kPrimitive); in LookupConstant()
1680 if (decl->kind != Decl::Kind::kEnum) { in LookupConstant()
1701 if (type->kind != Type::Kind::kPrimitive) in LookupPrimitiveType()
1716 case flat::Type::Kind::kString: in LookupDeclByType()
1717 case flat::Type::Kind::kHandle: in LookupDeclByType()
1718 case flat::Type::Kind::kRequestHandle: in LookupDeclByType()
1719 case flat::Type::Kind::kPrimitive: in LookupDeclByType()
1721 case flat::Type::Kind::kVector: { in LookupDeclByType()
1725 case flat::Type::Kind::kArray: { in LookupDeclByType()
1729 case flat::Type::Kind::kIdentifier: { in LookupDeclByType()
1782 case Constant::Kind::kIdentifier: { in DeclDependencies()
1793 case Constant::Kind::kLiteral: in DeclDependencies()
1794 case Constant::Kind::kSynthesized: { in DeclDependencies()
1802 case Decl::Kind::kConst: { in DeclDependencies()
1808 case Decl::Kind::kEnum: { in DeclDependencies()
1811 case Decl::Kind::kInterface: { in DeclDependencies()
1826 case Decl::Kind::kStruct: { in DeclDependencies()
1839 case Decl::Kind::kTable: { in DeclDependencies()
1853 case Decl::Kind::kUnion: { in DeclDependencies()
2050 if (decl->kind != Decl::Kind::kInterface) in CompileInterface()
2365 case Decl::Kind::kConst: { in Compile()
2372 case Decl::Kind::kEnum: { in Compile()
2379 case Decl::Kind::kInterface: { in Compile()
2386 case Decl::Kind::kStruct: { in Compile()
2393 case Decl::Kind::kTable: { in Compile()
2400 case Decl::Kind::kUnion: { in Compile()
2426 assert(array_type->element_count->Value().kind == ConstantValue::Kind::kUint32); in CompileArrayType()
2446 assert(vector_type->element_count->Value().kind == ConstantValue::Kind::kUint32); in CompileVectorType()
2458 assert(string_type->max_size->Value().kind == ConstantValue::Kind::kUint32); in CompileStringType()
2473 if (!named_decl || named_decl->kind != Decl::Kind::kInterface) { in CompileRequestHandleType()
2502 case Decl::Kind::kConst: { in CompileIdentifierType()
2507 case Decl::Kind::kEnum: { in CompileIdentifierType()
2516 case Decl::Kind::kInterface: { in CompileIdentifierType()
2520 case Decl::Kind::kStruct: { in CompileIdentifierType()
2536 case Decl::Kind::kTable: { in CompileIdentifierType()
2552 case Decl::Kind::kUnion: { in CompileIdentifierType()
2580 case Type::Kind::kArray: { in CompileType()
2585 case Type::Kind::kVector: { in CompileType()
2590 case Type::Kind::kString: { in CompileType()
2595 case Type::Kind::kHandle: { in CompileType()
2600 case Type::Kind::kRequestHandle: { in CompileType()
2605 case Type::Kind::kPrimitive: { in CompileType()
2610 case Type::Kind::kIdentifier: { in CompileType()