Lines Matching full:err
35 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseRecordFields()
59 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseRecordFields()
68 …context_.err = GetError("Expected a new field on the next line.", Error::ErrorType::ERR_BAD_KEYWOR… in ParseRecordFields()
85 context_.err = in ParseFieldName()
103 context_.err = GetError("Invalid name of field.", Error::ErrorType::ERR_BAD_OPERATION_NAME); in ParseFieldName()
120 context_.err = GetError("Expected ']'.", Error::ErrorType::ERR_BAD_ARRAY_TYPE_BOUND); in ParseType()
142 context_.err = GetError("Not a correct type.", Error::ErrorType::ERR_BAD_FIELD_VALUE_TYPE); in ParseFieldType()
164 … context_.err = GetError("Expected field name.", Error::ErrorType::ERR_BAD_FIELD_MISSING_NAME, +1); in ParseRecordField()
223 context_.err = in ParseAsArray()
243 context_.err = in ParseAsArray()
258 context_.err = in ParseAsArray()
280 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseArrayElements()
290 context_.err = in ParseArrayElements()
306 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseArrayElements()
315 context_.err = in ParseArrayElements()
320 context_.err = in ParseArrayElements()
341 context_.err = in ParseArrayElement()
355 context_.err = in ParseArrayElement()
371 …context_.err = GetError("Not a correct type.", Error::ErrorType::ERR_BAD_ARRAY_ELEMENT_VALUE_TYPE); in ParseArrayElementType()
408 context_.err = in ParseArrayElementValueInteger()
434 context_.err = in ParseArrayElementValueFloat()
448 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseArrayElementValueString()
454 context_.err = in ParseArrayElementValueString()
497 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseFunctionCode()
538 context_.err = in ParseAsRecord()
583 context_.err = in ParseAsFunction()
621 context_.err = in ParseAsBraceRight()
635 context_.err = in ParseAsBraceRight()
647 if (open_ || err_.err != Error::ErrorType::ERR_NONE) { in ParseResetFunctionLabelsAndParams()
654 …context_.err = Error("This label does not exist.", line_stric_, Error::ErrorType::ERR_BAD_LABEL_EX… in ParseResetFunctionLabelsAndParams()
674 context_.err = in ParseResetFunctionLabelsAndParams()
689 … context_.err = Error("This function does not exist.", k.second.file_location->line_number, in ParseResetFunctionTable()
708 … context_.err = Error("Unable to resolve ambiguous function call", debug.line_number, in ParseResetFunctionTable()
725 context_.err = Error("Function argument mismatch.", debug.line_number, in ParseResetFunctionTable()
739 context_.err = Error("This record does not exist.", k.second.file_location->line_number, in ParseResetRecordTable()
744 context_.err = Error("Inconsistency of the definition of the record and its metadata.", in ParseResetRecordTable()
752 context_.err = in ParseResetRecordTable()
763 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseResetTables()
769 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseResetTables()
781 context_.err = GetError("Incorrect .language directive: Expected language", in ParseAsLanguageDirective()
789 context_.err = in ParseAsLanguageDirective()
797 context_.err = GetError("Incorrect .language directive: Unexpected token", in ParseAsLanguageDirective()
829 … context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_DIRECTIVE_DECLARATION); in PrepareCatchBlock()
836 context_.err = in PrepareCatchBlock()
869 context_.err = GetError( in ParseAsCatchDirective()
877 context_.err = GetError( in ParseAsCatchDirective()
887 …context_.err = GetError("Invalid name of the exception record.", Error::ErrorType::ERR_BAD_RECORD_… in ParseAsCatchDirective()
901 … context_.err = GetError(directive_name + " directive is located outside of a function body.", in ParseAsCatchall()
915 …context_.err = GetError("Multiple .language directives", Error::ErrorType::ERR_MULTIPLE_DIRECTIVES… in ParseAsLanguage()
920 … context_.err = GetError(".language directive must be specified before any other declarations", in ParseAsLanguage()
937 if (!context_.Mask() && err_.err == Error::ErrorType::ERR_NONE) { in ParseAfterLine()
938 context_.err = GetError("There can be nothing after.", Error::ErrorType::ERR_BAD_END); in ParseAfterLine()
941 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseAfterLine()
959 if (open_ && err_.err == Error::ErrorType::ERR_NONE) { in ParseAfterMainLoop()
960 context_.err = Error("Code area is not closed.", curr_func_->file_location->line_number, in ParseAfterMainLoop()
967 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseAfterMainLoop()
1056 if (error.err != Error::ErrorType::ERR_NONE) { in Parse()
1068 err_ = context_.err; in SetError()
1073 if (context_.err.err != Error::ErrorType::ERR_NONE) { in RegValidName()
1180 … context_.err = GetError("This label already exists.", Error::ErrorType::ERR_BAD_LABEL_EXT); in ParseLabel()
1187 context_.err = GetError( in ParseLabel()
1240 context_.err = GetError("Invalid operation.", Error::ErrorType::ERR_BAD_OPERATION_NAME); in ParseOperation()
1247 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandVreg()
1252 context_.err = GetError("Expected register.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseOperandVreg()
1277 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandCall()
1282 context_.err = GetError("Invalid name of function.", Error::ErrorType::ERR_BAD_NAME_REG); in ParseOperandCall()
1306 context_.err = GetError("Unable to resolve ambiguous function call", in ParseOperandCall()
1337 … context_.err = GetError("Expected \'(\' before signature", Error::ErrorType::ERR_BAD_SIGNATURE); in ParseOperandSignature()
1350 …context_.err = GetError("Expected \')\' at the end of the signature", Error::ErrorType::ERR_BAD_SI… in ParseOperandSignature()
1383 …context_.err = GetError("Expected signature arguments", Error::ErrorType::ERR_BAD_SIGNATURE_PARAME… in ParseOperandSignatureTypesList()
1388 context_.err = GetError("Expected valid type", Error::ErrorType::ERR_BAD_TYPE); in ParseOperandSignatureTypesList()
1524 context_.err = GetError("Expected string literal", Error::ErrorType::ERR_BAD_OPERAND); in ParseStringLiteral()
1543 context_.err = res.Error(); in ParseStringLiteral()
1557 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandString()
1575 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandComma()
1584 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseOperandComma()
1593 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseInteger()
1601 context_.err = GetError("Expected immediate.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseInteger()
1607 context_.err = GetError("Expected integer.", Error::ErrorType::ERR_BAD_INTEGER_NAME); in ParseInteger()
1613 context_.err = in ParseInteger()
1623 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseFloat()
1631 context_.err = GetError("Expected immediate.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseFloat()
1637 context_.err = GetError("Expected float.", Error::ErrorType::ERR_BAD_FLOAT_NAME); in ParseFloat()
1643 context_.err = in ParseFloat()
1677 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandLabel()
1682 context_.err = GetError("Invalid name of Label.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandLabel()
1697 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandId()
1702 context_.err = GetError("Expected Label.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandId()
1706 context_.err = GetError("Invalid name of Label.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandId()
1721 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandType()
1726 context_.err = GetError("Expected type.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandType()
1730 context_.err = GetError("Invalid name of type.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandType()
1769 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandLiteralArray()
1774 context_.err = GetError("Expected array id.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandLiteralArray()
1778 context_.err = GetError("Invalid name of array.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandLiteralArray()
1785 …context_.err = GetError("No array was found for this array id", Error::ErrorType::ERR_BAD_ID_ARRAY… in ParseOperandLiteralArray()
1798 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandField()
1803 context_.err = GetError("Expected field.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandField()
1807 context_.err = GetError("Invalid name of field.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandField()
1849 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandNone()
1858 … context_.err = GetError("Invalid number of operands.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseOperandNone()
1889 context_.err = GetError("Expected ')'.", Error::ErrorType::ERR_BAD_ARGS_BOUND); in ParseFunctionFullSign()
1892 context_.err = GetError("Expected '('.", Error::ErrorType::ERR_BAD_ARGS_BOUND); in ParseFunctionFullSign()
1915 context_.err = GetError("This function already exists.", Error::ErrorType::ERR_BAD_ID_FUNCTION); in UpdateFunctionName()
1934 …context_.err = GetError("Invalid array type for static array.", Error::ErrorType::ERR_BAD_ARRAY_TY… in ParseArrayFullSign()
1942 … context_.err = GetError("No array size for static array.", Error::ErrorType::ERR_BAD_ARRAY_SIZE); in ParseArrayFullSign()
1951 context_.err = in ParseArrayFullSign()
1968 context_.err = GetError("No record name.", Error::ErrorType::ERR_BAD_RECORD_NAME); in ParseRecordName()
1971 … context_.err = GetError("Invalid name of the record.", Error::ErrorType::ERR_BAD_RECORD_NAME); in ParseRecordName()
1979 context_.err = GetError("This record already exists.", Error::ErrorType::ERR_BAD_ID_RECORD); in ParseRecordName()
2003 context_.err = GetError("No function name.", Error::ErrorType::ERR_BAD_FUNCTION_NAME); in ParseFunctionName()
2006 … context_.err = GetError("Invalid name of the function.", Error::ErrorType::ERR_BAD_FUNCTION_NAME); in ParseFunctionName()
2036 context_.err = GetError("No array name.", Error::ErrorType::ERR_BAD_ARRAY_NAME); in ParseArrayName()
2039 context_.err = GetError("Invalid name of the array.", Error::ErrorType::ERR_BAD_ARRAY_NAME); in ParseArrayName()
2048 context_.err = GetError("This array already exists.", Error::ErrorType::ERR_BAD_ID_ARRAY); in ParseArrayName()
2084 … context_.err = GetError("No return type.", Error::ErrorType::ERR_BAD_FUNCTION_RETURN_VALUE); in ParseFunctionReturn()
2087 … context_.err = GetError("Not a return type.", Error::ErrorType::ERR_BAD_FUNCTION_RETURN_VALUE); in ParseFunctionReturn()
2112 … context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_FUNCTION_PARAMETERS); in ParseFunctionArg()
2117 context_.err = GetError("Expected parameter type.", Error::ErrorType::ERR_BAD_TYPE); in ParseFunctionArg()
2131 … context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_FUNCTION_PARAMETERS); in ParseFunctionArg()
2136 … context_.err = GetError("Incorrect name of parameter.", Error::ErrorType::ERR_BAD_PARAM_NAME); in ParseFunctionArg()
2156 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseFunctionArgComma()
2220 context_.err = GetError("Expected '<'.", Error::ErrorType::ERR_BAD_METADATA_BOUND); in ParseMetaDef()
2227 if (flag && context_.err.err == Error::ErrorType::ERR_NONE) { in ParseMetaDef()
2234 void Parser::SetMetadataContextError(const Metadata::Error &err, bool has_value) in SetMetadataContextError() argument
2240 switch (err.GetType()) { in SetMetadataContextError()
2242 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNKNOWN_ATTRIBUTE, 0, in SetMetadataContextError()
2247 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MISSING_ATTRIBUTE); in SetMetadataContextError()
2251 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MISSING_VALUE); in SetMetadataContextError()
2255 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNEXPECTED_ATTRIBUTE,… in SetMetadataContextError()
2260 context_.err = in SetMetadataContextError()
2261 … GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNEXPECTED_VALUE, 0, SPECIAL_OFF); in SetMetadataContextError()
2265 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_INVALID_VALUE, 0, -1); in SetMetadataContextError()
2269 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MULTIPLE_ATTRIBUTE, 0, in SetMetadataContextError()
2282 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseMetaListComma()
2298 …context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_DEFINITION_METADATA, +1); in MeetExpMetaList()
2303 context_.err = in MeetExpMetaList()
2309 context_.err = GetError("Invalid attribute name.", Error::ErrorType::ERR_BAD_NAME_ID); in MeetExpMetaList()
2348 context_.err = GetError("'=' was not expected.", Error::ErrorType::ERR_BAD_NOEXP_DELIM); in BuildMetaListAttr()
2366 auto err = res.value(); in BuildMetaListAttr() local
2367 SetMetadataContextError(err, has_value); in BuildMetaListAttr()
2378 … context_.err = GetError("No meta data expected.", Error::ErrorType::ERR_BAD_DEFINITION_METADATA); in ParseMetaList()
2390 context_.err = GetError("Expected '>'.", Error::ErrorType::ERR_BAD_METADATA_BOUND, +1); in ParseMetaList()
2413 context_.err = GetError("Expected '>'.", Error::ErrorType::ERR_BAD_METADATA_BOUND); in ParseMetaList()
2421 auto err = res.value(); in ParseMetaList() local
2422 SetMetadataContextError(err, false); in ParseMetaList()