Lines Matching full:err
42 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseRecordFields()
66 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseRecordFields()
75 …context_.err = GetError("Expected a new field on the next line.", Error::ErrorType::ERR_BAD_KEYWOR… in ParseRecordFields()
93 context_.err = in ParseFieldName()
111 context_.err = GetError("Invalid name of field.", Error::ErrorType::ERR_BAD_OPERATION_NAME); in ParseFieldName()
128 context_.err = GetError("Expected ']'.", Error::ErrorType::ERR_BAD_ARRAY_TYPE_BOUND); in ParseType()
150 context_.err = GetError("Not a correct type.", Error::ErrorType::ERR_BAD_FIELD_VALUE_TYPE); in ParseFieldType()
172 … context_.err = GetError("Expected field name.", Error::ErrorType::ERR_BAD_FIELD_MISSING_NAME, +1); in ParseRecordField()
231 context_.err = in ParseAsArray()
251 context_.err = in ParseAsArray()
266 context_.err = in ParseAsArray()
288 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseArrayElements()
298 context_.err = in ParseArrayElements()
314 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseArrayElements()
323 context_.err = in ParseArrayElements()
328 context_.err = in ParseArrayElements()
349 context_.err = in ParseArrayElement()
363 context_.err = in ParseArrayElement()
379 …context_.err = GetError("Not a correct type.", Error::ErrorType::ERR_BAD_ARRAY_ELEMENT_VALUE_TYPE); in ParseArrayElementType()
416 context_.err = in ParseArrayElementValueInteger()
442 context_.err = in ParseArrayElementValueFloat()
456 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseArrayElementValueString()
462 context_.err = in ParseArrayElementValueString()
505 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseFunctionCode()
546 context_.err = in ParseAsRecord()
591 context_.err = in ParseAsFunction()
629 context_.err = in ParseAsBraceRight()
643 context_.err = in ParseAsBraceRight()
655 if (open_ || err_.err != Error::ErrorType::ERR_NONE) { in ParseResetFunctionLabelsAndParams()
662 …context_.err = Error("This label does not exist.", line_stric_, Error::ErrorType::ERR_BAD_LABEL_EX… in ParseResetFunctionLabelsAndParams()
682 context_.err = in ParseResetFunctionLabelsAndParams()
697 … context_.err = Error("This function does not exist.", k.second.file_location->line_number, in ParseResetFunctionTable()
716 … context_.err = Error("Unable to resolve ambiguous function call", debug.line_number, in ParseResetFunctionTable()
733 context_.err = Error("Function argument mismatch.", debug.line_number, in ParseResetFunctionTable()
747 context_.err = Error("This record does not exist.", k.second.file_location->line_number, in ParseResetRecordTable()
752 context_.err = Error("Inconsistency of the definition of the record and its metadata.", in ParseResetRecordTable()
760 context_.err = in ParseResetRecordTable()
771 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseResetTables()
777 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseResetTables()
789 context_.err = GetError("Incorrect .language directive: Expected language", in ParseAsLanguageDirective()
797 context_.err = in ParseAsLanguageDirective()
805 context_.err = GetError("Incorrect .language directive: Unexpected token", in ParseAsLanguageDirective()
837 … context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_DIRECTIVE_DECLARATION); in PrepareCatchBlock()
844 context_.err = in PrepareCatchBlock()
877 context_.err = GetError( in ParseAsCatchDirective()
885 context_.err = GetError( in ParseAsCatchDirective()
895 …context_.err = GetError("Invalid name of the exception record.", Error::ErrorType::ERR_BAD_RECORD_… in ParseAsCatchDirective()
909 … context_.err = GetError(directive_name + " directive is located outside of a function body.", in ParseAsCatchall()
923 …context_.err = GetError("Multiple .language directives", Error::ErrorType::ERR_MULTIPLE_DIRECTIVES… in ParseAsLanguage()
928 … context_.err = GetError(".language directive must be specified before any other declarations", in ParseAsLanguage()
945 if (!context_.Mask() && err_.err == Error::ErrorType::ERR_NONE) { in ParseAfterLine()
946 context_.err = GetError("There can be nothing after.", Error::ErrorType::ERR_BAD_END); in ParseAfterLine()
949 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseAfterLine()
967 if (open_ && err_.err == Error::ErrorType::ERR_NONE) { in ParseAfterMainLoop()
968 context_.err = Error("Code area is not closed.", curr_func_->file_location->line_number, in ParseAfterMainLoop()
975 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseAfterMainLoop()
1064 if (error.err != Error::ErrorType::ERR_NONE) { in Parse()
1076 err_ = context_.err; in SetError()
1081 if (context_.err.err != Error::ErrorType::ERR_NONE) { in RegValidName()
1190 … context_.err = GetError("This label already exists.", Error::ErrorType::ERR_BAD_LABEL_EXT); in ParseLabel()
1197 context_.err = GetError( in ParseLabel()
1250 context_.err = GetError("Invalid operation.", Error::ErrorType::ERR_BAD_OPERATION_NAME); in ParseOperation()
1257 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandVreg()
1262 context_.err = GetError("Expected register.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseOperandVreg()
1289 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandCall()
1294 context_.err = GetError("Invalid name of function.", Error::ErrorType::ERR_BAD_NAME_REG); in ParseOperandCall()
1318 context_.err = GetError("Unable to resolve ambiguous function call", in ParseOperandCall()
1349 … context_.err = GetError("Expected \'(\' before signature", Error::ErrorType::ERR_BAD_SIGNATURE); in ParseOperandSignature()
1362 …context_.err = GetError("Expected \')\' at the end of the signature", Error::ErrorType::ERR_BAD_SI… in ParseOperandSignature()
1395 …context_.err = GetError("Expected signature arguments", Error::ErrorType::ERR_BAD_SIGNATURE_PARAME… in ParseOperandSignatureTypesList()
1400 context_.err = GetError("Expected valid type", Error::ErrorType::ERR_BAD_TYPE); in ParseOperandSignatureTypesList()
1536 context_.err = GetError("Expected string literal", Error::ErrorType::ERR_BAD_OPERAND); in ParseStringLiteral()
1555 context_.err = res.Error(); in ParseStringLiteral()
1569 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandString()
1587 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandComma()
1596 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseOperandComma()
1605 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseInteger()
1613 context_.err = GetError("Expected immediate.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseInteger()
1619 context_.err = GetError("Expected integer.", Error::ErrorType::ERR_BAD_INTEGER_NAME); in ParseInteger()
1625 context_.err = in ParseInteger()
1635 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseFloat()
1643 context_.err = GetError("Expected immediate.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseFloat()
1649 context_.err = GetError("Expected float.", Error::ErrorType::ERR_BAD_FLOAT_NAME); in ParseFloat()
1655 context_.err = in ParseFloat()
1689 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandLabel()
1694 context_.err = GetError("Invalid name of Label.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandLabel()
1709 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandId()
1714 context_.err = GetError("Expected Label.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandId()
1718 context_.err = GetError("Invalid name of Label.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandId()
1733 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandType()
1738 context_.err = GetError("Expected type.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandType()
1742 context_.err = GetError("Invalid name of type.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandType()
1781 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandLiteralArray()
1786 context_.err = GetError("Expected array id.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandLiteralArray()
1790 context_.err = GetError("Invalid name of array.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandLiteralArray()
1798 …context_.err = GetError("No array was found for this array id", Error::ErrorType::ERR_BAD_ID_ARRAY… in ParseOperandLiteralArray()
1811 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandField()
1816 context_.err = GetError("Expected field.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandField()
1820 context_.err = GetError("Invalid name of field.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandField()
1862 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandNone()
1871 … context_.err = GetError("Invalid number of operands.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseOperandNone()
1902 context_.err = GetError("Expected ')'.", Error::ErrorType::ERR_BAD_ARGS_BOUND); in ParseFunctionFullSign()
1905 context_.err = GetError("Expected '('.", Error::ErrorType::ERR_BAD_ARGS_BOUND); in ParseFunctionFullSign()
1929 context_.err = GetError("This function already exists.", Error::ErrorType::ERR_BAD_ID_FUNCTION); in UpdateFunctionName()
1948 …context_.err = GetError("Invalid array type for static array.", Error::ErrorType::ERR_BAD_ARRAY_TY… in ParseArrayFullSign()
1956 … context_.err = GetError("No array size for static array.", Error::ErrorType::ERR_BAD_ARRAY_SIZE); in ParseArrayFullSign()
1965 context_.err = in ParseArrayFullSign()
1982 context_.err = GetError("No record name.", Error::ErrorType::ERR_BAD_RECORD_NAME); in ParseRecordName()
1985 … context_.err = GetError("Invalid name of the record.", Error::ErrorType::ERR_BAD_RECORD_NAME); in ParseRecordName()
1994 context_.err = GetError("This record already exists.", Error::ErrorType::ERR_BAD_ID_RECORD); in ParseRecordName()
2018 context_.err = GetError("No function name.", Error::ErrorType::ERR_BAD_FUNCTION_NAME); in ParseFunctionName()
2021 … context_.err = GetError("Invalid name of the function.", Error::ErrorType::ERR_BAD_FUNCTION_NAME); in ParseFunctionName()
2051 context_.err = GetError("No array name.", Error::ErrorType::ERR_BAD_ARRAY_NAME); in ParseArrayName()
2054 context_.err = GetError("Invalid name of the array.", Error::ErrorType::ERR_BAD_ARRAY_NAME); in ParseArrayName()
2064 context_.err = GetError("This array already exists.", Error::ErrorType::ERR_BAD_ID_ARRAY); in ParseArrayName()
2101 … context_.err = GetError("No return type.", Error::ErrorType::ERR_BAD_FUNCTION_RETURN_VALUE); in ParseFunctionReturn()
2104 … context_.err = GetError("Not a return type.", Error::ErrorType::ERR_BAD_FUNCTION_RETURN_VALUE); in ParseFunctionReturn()
2129 … context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_FUNCTION_PARAMETERS); in ParseFunctionArg()
2134 context_.err = GetError("Expected parameter type.", Error::ErrorType::ERR_BAD_TYPE); in ParseFunctionArg()
2148 … context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_FUNCTION_PARAMETERS); in ParseFunctionArg()
2153 … context_.err = GetError("Incorrect name of parameter.", Error::ErrorType::ERR_BAD_PARAM_NAME); in ParseFunctionArg()
2174 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseFunctionArgComma()
2238 context_.err = GetError("Expected '<'.", Error::ErrorType::ERR_BAD_METADATA_BOUND); in ParseMetaDef()
2245 if (flag && context_.err.err == Error::ErrorType::ERR_NONE) { in ParseMetaDef()
2252 void Parser::SetMetadataContextError(const Metadata::Error &err, bool has_value) in SetMetadataContextError() argument
2258 switch (err.GetType()) { in SetMetadataContextError()
2260 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNKNOWN_ATTRIBUTE, 0, in SetMetadataContextError()
2265 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MISSING_ATTRIBUTE); in SetMetadataContextError()
2269 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MISSING_VALUE); in SetMetadataContextError()
2273 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNEXPECTED_ATTRIBUTE,… in SetMetadataContextError()
2278 context_.err = in SetMetadataContextError()
2279 … GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNEXPECTED_VALUE, 0, SPECIAL_OFF); in SetMetadataContextError()
2283 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_INVALID_VALUE, 0, -1); in SetMetadataContextError()
2287 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MULTIPLE_ATTRIBUTE, 0, in SetMetadataContextError()
2300 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseMetaListComma()
2316 …context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_DEFINITION_METADATA, +1); in MeetExpMetaList()
2321 context_.err = in MeetExpMetaList()
2327 context_.err = GetError("Invalid attribute name.", Error::ErrorType::ERR_BAD_NAME_ID); in MeetExpMetaList()
2366 context_.err = GetError("'=' was not expected.", Error::ErrorType::ERR_BAD_NOEXP_DELIM); in BuildMetaListAttr()
2384 auto err = res.value(); in BuildMetaListAttr() local
2385 SetMetadataContextError(err, has_value); in BuildMetaListAttr()
2396 … context_.err = GetError("No meta data expected.", Error::ErrorType::ERR_BAD_DEFINITION_METADATA); in ParseMetaList()
2408 context_.err = GetError("Expected '>'.", Error::ErrorType::ERR_BAD_METADATA_BOUND, +1); in ParseMetaList()
2431 context_.err = GetError("Expected '>'.", Error::ErrorType::ERR_BAD_METADATA_BOUND); in ParseMetaList()
2439 auto err = res.value(); in ParseMetaList() local
2440 SetMetadataContextError(err, false); in ParseMetaList()