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()
92 context_.err = in ParseFieldName()
110 context_.err = GetError("Invalid name of field.", Error::ErrorType::ERR_BAD_OPERATION_NAME); in ParseFieldName()
127 context_.err = GetError("Expected ']'.", Error::ErrorType::ERR_BAD_ARRAY_TYPE_BOUND); in ParseType()
149 context_.err = GetError("Not a correct type.", Error::ErrorType::ERR_BAD_FIELD_VALUE_TYPE); in ParseFieldType()
171 … context_.err = GetError("Expected field name.", Error::ErrorType::ERR_BAD_FIELD_MISSING_NAME, +1); in ParseRecordField()
230 context_.err = in ParseAsArray()
250 context_.err = in ParseAsArray()
265 context_.err = in ParseAsArray()
287 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseArrayElements()
297 context_.err = in ParseArrayElements()
313 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseArrayElements()
322 context_.err = in ParseArrayElements()
327 context_.err = in ParseArrayElements()
348 context_.err = in ParseArrayElement()
362 context_.err = in ParseArrayElement()
378 …context_.err = GetError("Not a correct type.", Error::ErrorType::ERR_BAD_ARRAY_ELEMENT_VALUE_TYPE); in ParseArrayElementType()
415 context_.err = in ParseArrayElementValueInteger()
441 context_.err = in ParseArrayElementValueFloat()
455 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseArrayElementValueString()
461 context_.err = in ParseArrayElementValueString()
504 context_.err = GetError("Expected keyword.", Error::ErrorType::ERR_BAD_KEYWORD); in ParseFunctionCode()
545 context_.err = in ParseAsRecord()
590 context_.err = in ParseAsFunction()
628 context_.err = in ParseAsBraceRight()
642 context_.err = in ParseAsBraceRight()
654 if (open_ || err_.err != Error::ErrorType::ERR_NONE) { in ParseResetFunctionLabelsAndParams()
661 …context_.err = Error("This label does not exist.", line_stric_, Error::ErrorType::ERR_BAD_LABEL_EX… in ParseResetFunctionLabelsAndParams()
681 context_.err = in ParseResetFunctionLabelsAndParams()
696 … context_.err = Error("This function does not exist.", k.second.file_location->line_number, in ParseResetFunctionTable()
715 … context_.err = Error("Unable to resolve ambiguous function call", debug.line_number, in ParseResetFunctionTable()
732 context_.err = Error("Function argument mismatch.", debug.line_number, in ParseResetFunctionTable()
746 context_.err = Error("This record does not exist.", k.second.file_location->line_number, in ParseResetRecordTable()
751 context_.err = Error("Inconsistency of the definition of the record and its metadata.", in ParseResetRecordTable()
759 context_.err = in ParseResetRecordTable()
770 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseResetTables()
776 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseResetTables()
788 context_.err = GetError("Incorrect .language directive: Expected language", in ParseAsLanguageDirective()
796 context_.err = in ParseAsLanguageDirective()
804 context_.err = GetError("Incorrect .language directive: Unexpected token", in ParseAsLanguageDirective()
836 … context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_DIRECTIVE_DECLARATION); in PrepareCatchBlock()
843 context_.err = in PrepareCatchBlock()
876 context_.err = GetError( in ParseAsCatchDirective()
884 context_.err = GetError( in ParseAsCatchDirective()
894 …context_.err = GetError("Invalid name of the exception record.", Error::ErrorType::ERR_BAD_RECORD_… in ParseAsCatchDirective()
908 … context_.err = GetError(directive_name + " directive is located outside of a function body.", in ParseAsCatchall()
922 …context_.err = GetError("Multiple .language directives", Error::ErrorType::ERR_MULTIPLE_DIRECTIVES… in ParseAsLanguage()
927 … context_.err = GetError(".language directive must be specified before any other declarations", in ParseAsLanguage()
944 if (!context_.Mask() && err_.err == Error::ErrorType::ERR_NONE) { in ParseAfterLine()
945 context_.err = GetError("There can be nothing after.", Error::ErrorType::ERR_BAD_END); in ParseAfterLine()
948 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseAfterLine()
966 if (open_ && err_.err == Error::ErrorType::ERR_NONE) { in ParseAfterMainLoop()
967 context_.err = Error("Code area is not closed.", curr_func_->file_location->line_number, in ParseAfterMainLoop()
974 if (err_.err != Error::ErrorType::ERR_NONE) { in ParseAfterMainLoop()
1063 if (error.err != Error::ErrorType::ERR_NONE) { in Parse()
1075 err_ = context_.err; in SetError()
1080 if (context_.err.err != Error::ErrorType::ERR_NONE) { in RegValidName()
1187 … context_.err = GetError("This label already exists.", Error::ErrorType::ERR_BAD_LABEL_EXT); in ParseLabel()
1194 context_.err = GetError( in ParseLabel()
1247 context_.err = GetError("Invalid operation.", Error::ErrorType::ERR_BAD_OPERATION_NAME); in ParseOperation()
1254 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandVreg()
1259 context_.err = GetError("Expected register.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseOperandVreg()
1284 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandCall()
1289 context_.err = GetError("Invalid name of function.", Error::ErrorType::ERR_BAD_NAME_REG); in ParseOperandCall()
1313 context_.err = GetError("Unable to resolve ambiguous function call", in ParseOperandCall()
1344 … context_.err = GetError("Expected \'(\' before signature", Error::ErrorType::ERR_BAD_SIGNATURE); in ParseOperandSignature()
1357 …context_.err = GetError("Expected \')\' at the end of the signature", Error::ErrorType::ERR_BAD_SI… in ParseOperandSignature()
1390 …context_.err = GetError("Expected signature arguments", Error::ErrorType::ERR_BAD_SIGNATURE_PARAME… in ParseOperandSignatureTypesList()
1395 context_.err = GetError("Expected valid type", Error::ErrorType::ERR_BAD_TYPE); in ParseOperandSignatureTypesList()
1531 context_.err = GetError("Expected string literal", Error::ErrorType::ERR_BAD_OPERAND); in ParseStringLiteral()
1550 context_.err = res.Error(); in ParseStringLiteral()
1564 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandString()
1582 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandComma()
1591 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseOperandComma()
1600 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseInteger()
1608 context_.err = GetError("Expected immediate.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseInteger()
1614 context_.err = GetError("Expected integer.", Error::ErrorType::ERR_BAD_INTEGER_NAME); in ParseInteger()
1620 context_.err = in ParseInteger()
1630 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseFloat()
1638 context_.err = GetError("Expected immediate.", Error::ErrorType::ERR_BAD_OPERAND, +1); in ParseFloat()
1644 context_.err = GetError("Expected float.", Error::ErrorType::ERR_BAD_FLOAT_NAME); in ParseFloat()
1650 context_.err = in ParseFloat()
1684 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandLabel()
1689 context_.err = GetError("Invalid name of Label.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandLabel()
1704 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandId()
1709 context_.err = GetError("Expected Label.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandId()
1713 context_.err = GetError("Invalid name of Label.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandId()
1728 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandType()
1733 context_.err = GetError("Expected type.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandType()
1737 context_.err = GetError("Invalid name of type.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandType()
1776 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandLiteralArray()
1781 context_.err = GetError("Expected array id.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandLiteralArray()
1785 context_.err = GetError("Invalid name of array.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandLiteralArray()
1792 …context_.err = GetError("No array was found for this array id", Error::ErrorType::ERR_BAD_ID_ARRAY… in ParseOperandLiteralArray()
1805 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandField()
1810 context_.err = GetError("Expected field.", Error::ErrorType::ERR_BAD_OPERAND); in ParseOperandField()
1814 context_.err = GetError("Invalid name of field.", Error::ErrorType::ERR_BAD_NAME_ID); in ParseOperandField()
1856 if (context_.err.err != Error::ErrorType::ERR_NONE) { in ParseOperandNone()
1865 … context_.err = GetError("Invalid number of operands.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseOperandNone()
1896 context_.err = GetError("Expected ')'.", Error::ErrorType::ERR_BAD_ARGS_BOUND); in ParseFunctionFullSign()
1899 context_.err = GetError("Expected '('.", Error::ErrorType::ERR_BAD_ARGS_BOUND); in ParseFunctionFullSign()
1922 context_.err = GetError("This function already exists.", Error::ErrorType::ERR_BAD_ID_FUNCTION); in UpdateFunctionName()
1941 …context_.err = GetError("Invalid array type for static array.", Error::ErrorType::ERR_BAD_ARRAY_TY… in ParseArrayFullSign()
1949 … context_.err = GetError("No array size for static array.", Error::ErrorType::ERR_BAD_ARRAY_SIZE); in ParseArrayFullSign()
1958 context_.err = in ParseArrayFullSign()
1975 context_.err = GetError("No record name.", Error::ErrorType::ERR_BAD_RECORD_NAME); in ParseRecordName()
1978 … context_.err = GetError("Invalid name of the record.", Error::ErrorType::ERR_BAD_RECORD_NAME); in ParseRecordName()
1986 context_.err = GetError("This record already exists.", Error::ErrorType::ERR_BAD_ID_RECORD); in ParseRecordName()
2010 context_.err = GetError("No function name.", Error::ErrorType::ERR_BAD_FUNCTION_NAME); in ParseFunctionName()
2013 … context_.err = GetError("Invalid name of the function.", Error::ErrorType::ERR_BAD_FUNCTION_NAME); in ParseFunctionName()
2043 context_.err = GetError("No array name.", Error::ErrorType::ERR_BAD_ARRAY_NAME); in ParseArrayName()
2046 context_.err = GetError("Invalid name of the array.", Error::ErrorType::ERR_BAD_ARRAY_NAME); in ParseArrayName()
2055 context_.err = GetError("This array already exists.", Error::ErrorType::ERR_BAD_ID_ARRAY); in ParseArrayName()
2092 … context_.err = GetError("No return type.", Error::ErrorType::ERR_BAD_FUNCTION_RETURN_VALUE); in ParseFunctionReturn()
2095 … context_.err = GetError("Not a return type.", Error::ErrorType::ERR_BAD_FUNCTION_RETURN_VALUE); in ParseFunctionReturn()
2120 … context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_FUNCTION_PARAMETERS); in ParseFunctionArg()
2125 context_.err = GetError("Expected parameter type.", Error::ErrorType::ERR_BAD_TYPE); in ParseFunctionArg()
2139 … context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_FUNCTION_PARAMETERS); in ParseFunctionArg()
2144 … context_.err = GetError("Incorrect name of parameter.", Error::ErrorType::ERR_BAD_PARAM_NAME); in ParseFunctionArg()
2165 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseFunctionArgComma()
2229 context_.err = GetError("Expected '<'.", Error::ErrorType::ERR_BAD_METADATA_BOUND); in ParseMetaDef()
2236 if (flag && context_.err.err == Error::ErrorType::ERR_NONE) { in ParseMetaDef()
2243 void Parser::SetMetadataContextError(const Metadata::Error &err, bool has_value) in SetMetadataContextError() argument
2249 switch (err.GetType()) { in SetMetadataContextError()
2251 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNKNOWN_ATTRIBUTE, 0, in SetMetadataContextError()
2256 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MISSING_ATTRIBUTE); in SetMetadataContextError()
2260 … context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MISSING_VALUE); in SetMetadataContextError()
2264 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNEXPECTED_ATTRIBUTE,… in SetMetadataContextError()
2269 context_.err = in SetMetadataContextError()
2270 … GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_UNEXPECTED_VALUE, 0, SPECIAL_OFF); in SetMetadataContextError()
2274 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_INVALID_VALUE, 0, -1); in SetMetadataContextError()
2278 …context_.err = GetError(err.GetMessage(), Error::ErrorType::ERR_BAD_METADATA_MULTIPLE_ATTRIBUTE, 0, in SetMetadataContextError()
2291 context_.err = GetError("Expected comma.", Error::ErrorType::ERR_BAD_NUMBER_OPERANDS); in ParseMetaListComma()
2307 …context_.err = GetError("Expected identifier.", Error::ErrorType::ERR_BAD_DEFINITION_METADATA, +1); in MeetExpMetaList()
2312 context_.err = in MeetExpMetaList()
2318 context_.err = GetError("Invalid attribute name.", Error::ErrorType::ERR_BAD_NAME_ID); in MeetExpMetaList()
2357 context_.err = GetError("'=' was not expected.", Error::ErrorType::ERR_BAD_NOEXP_DELIM); in BuildMetaListAttr()
2375 auto err = res.value(); in BuildMetaListAttr() local
2376 SetMetadataContextError(err, has_value); in BuildMetaListAttr()
2387 … context_.err = GetError("No meta data expected.", Error::ErrorType::ERR_BAD_DEFINITION_METADATA); in ParseMetaList()
2399 context_.err = GetError("Expected '>'.", Error::ErrorType::ERR_BAD_METADATA_BOUND, +1); in ParseMetaList()
2422 context_.err = GetError("Expected '>'.", Error::ErrorType::ERR_BAD_METADATA_BOUND); in ParseMetaList()
2430 auto err = res.value(); in ParseMetaList() local
2431 SetMetadataContextError(err, false); in ParseMetaList()