Lines Matching refs:Fail
456 bool Library::Fail(StringView message) { in Fail() function in banjo::flat::Library
461 bool Library::Fail(const SourceLocation& location, StringView message) { in Fail() function in banjo::flat::Library
492 return Fail(location, message); in CompileCompoundIdentifier()
531 return Fail(*name, message); in RegisterDecl()
570 return Fail(location, "Unable to parse array element count"); in ConsumeType()
573 return Fail(location, "The array's size overflows a uint32_t"); in ConsumeType()
590 return Fail(location, "Unable to parse vector size bound"); in ConsumeType()
604 return Fail(location, "Unable to parse string size bound"); in ConsumeType()
662 return Fail(location, message); in ConsumeUsing()
670 return Fail(message); in ConsumeUsing()
847 return Fail(loc, message); in ConsumeFile()
860 return Fail(file->library_name->components[0]->location(), in ConsumeFile()
918 return Fail(identifier->name.name(), "Unable to find string constant"); in TypecheckString()
926 return Fail(identifier->name.name(), "Unable to find primitive constant"); in TypecheckPrimitive()
936 return Fail("Tried to generate an array constant"); in TypecheckConst()
938 return Fail("Tried to generate an vector constant"); in TypecheckConst()
940 return Fail("Tried to generate a handle constant"); in TypecheckConst()
942 return Fail("Tried to generate a request handle constant"); in TypecheckConst()
955 return Fail("Tried to assign a numeric literal into a string"); in TypecheckConst()
958 return Fail("Tried to assign a bool literal into a string"); in TypecheckConst()
974 return Fail("Tried to assign a string literal to a numeric constant"); in TypecheckConst()
993 return Fail("Tried to assign a numeric literal into a bool"); in TypecheckConst()
1013 return Fail("Tried to assign a bool into a numeric type"); in TypecheckConst()
1029 return Fail("Tried to create a const declaration of interface type"); in TypecheckConst()
1031 return Fail("Tried to create a const declaration of struct type"); in TypecheckConst()
1033 return Fail("Tried to create a const declaration of union type"); in TypecheckConst()
1135 return Fail(identifier->name, message.data()); in DeclDependencies()
1261 return Fail("There is an includes-cycle in declarations"); in SortDeclarations()
1301 return Fail(*enum_declaration, "Enums cannot be bools, statuses, or floats"); in CompileEnum()
1315 return Fail(name, "There is no declaration with this name"); in CompileInterface()
1317 return Fail(name, "This superinterface declaration is not an interface"); in CompileInterface()
1330 return Fail(method.name, in CompileInterface()
1350 return Fail(param.name, "Multiple parameters with the same name in a method"); in CompileInterface()
1373 … return Fail(parameter.name, "Non-simple parameter in interface with [Layout=\"Simple\"]"); in CompileInterface()
1400 return Fail(member.name, in CompileStruct()
1426 return Fail(member.name, in CompileUnion()
1457 return Fail("Invalid library name part " + part); in CompileLibraryName()
1567 return Fail(request_type->name, message); in CompileRequestHandleType()
1588 return Fail(identifier_type->name, message); in CompileIdentifierType()
1594 return Fail(identifier_type->name, in CompileIdentifierType()
1600 return Fail(identifier_type->name, "An enum was referred to as 'nullable'"); in CompileIdentifierType()