Package com. valgolang. errorhandling. semanticerror
Functions
array2DDimensionError
Link copied to clipboard
breakOrContinueOutsideLoopError
Link copied to clipboard
fun breakOrContinueOutsideLoopError(action: String, ctx: ParserRuleContext)
Content copied to clipboard
dataStructureInternalTypeNotPrimitiveError
Link copied to clipboard
fun dataStructureInternalTypeNotPrimitiveError(internalType: Type, ctx: ParserRuleContext)
Content copied to clipboard
declareAssignError
Link copied to clipboard
fun declareAssignError(identifier: String, rhsType: Type, lhsType: Type, ctx: ParserRuleContext)
Content copied to clipboard
forLoopIdentifierBeingReassignedError
Link copied to clipboard
fun forLoopIdentifierBeingReassignedError(identifier: String, ctx: ParserRuleContext)
Content copied to clipboard
forLoopRangeNotNumberOrChar
Link copied to clipboard
fun forLoopRangeNotNumberOrChar(startType: String, endType: String, ctx: ParserRuleContext)
Content copied to clipboard
forLoopRangeUpdateNotNumber
Link copied to clipboard
globalReturnError
Link copied to clipboard
incompatibleArrayDimension
Link copied to clipboard
fun incompatibleArrayDimension(arrayDimension: Int, ctx: ParserRuleContext)
Content copied to clipboard
incompatibleArrayDimensionWithConstructorArguments
Link copied to clipboard
fun incompatibleArrayDimensionWithConstructorArguments(is2D: Boolean, argumentsSize: Int, ctx: ParserRuleContext)
Content copied to clipboard
incompatibleDataStructureInitialisation
Link copied to clipboard
fun incompatibleDataStructureInitialisation(dataStructureType: String, ctx: ParserRuleContext)
Content copied to clipboard
incompatibleFunctionType
Link copied to clipboard
fun incompatibleFunctionType(identifier: String, declared: String, called: String, ctx: ParserRuleContext)
Content copied to clipboard
incompatibleOperatorTypeError
Link copied to clipboard
fun incompatibleOperatorTypeError(operator: String, expr1Type: Type, expr2Type: Type? = null, ctx: ParserRuleContext)
Content copied to clipboard
incompatibleParameterCount
Link copied to clipboard
fun incompatibleParameterCount(identifier: String, declared: Int, called: Int, ctx: ParserRuleContext)
Content copied to clipboard
incompatibleParameterType
Link copied to clipboard
fun incompatibleParameterType(identifier: String, declared: String, argument: String, ctx: ParserRuleContext)
Content copied to clipboard
incompatibleTypeFromMultipleFunctionCall
Link copied to clipboard
fun incompatibleTypeFromMultipleFunctionCall(identifier: String, ctx: ParserRuleContext)
Content copied to clipboard
inconsistentTypeError
Link copied to clipboard
incorrectConstructorItemSize
Link copied to clipboard
fun incorrectConstructorItemSize(openConstructorSize: Int, closeConstructorSize: Int, ctx: ParserRuleContext)
Content copied to clipboard
incorrectLHSForDataStructureElem
Link copied to clipboard
fun incorrectLHSForDataStructureElem(identifier: String, expected: String, actual: Type, ctx: ParserRuleContext)
Content copied to clipboard
invalidArgumentsForAnnotationError
Link copied to clipboard
fun invalidArgumentsForAnnotationError(annotation: String, ctx: ParserRuleContext)
Content copied to clipboard
maxArrayIndexingExceededError
Link copied to clipboard
fun maxArrayIndexingExceededError(is2DArray: Boolean, indicesSize: Int, ctx: ParserRuleContext)
Content copied to clipboard
missingConstructorArgumentsError
Link copied to clipboard
fun missingConstructorArgumentsError(dataStructureType: DataStructureType, expected: Int, actual: Int, ctx: ParserRuleContext)
Content copied to clipboard
missingReturnError
Link copied to clipboard
fun missingReturnError(function: String, type: String, ctx: ParserRuleContext)
Content copied to clipboard
nonDataStructureMethodError
Link copied to clipboard
fun nonDataStructureMethodError(identifier: String, ctx: ParserRuleContext)
Content copied to clipboard
nonNullableAssignedToNull
Link copied to clipboard
numOfArgsInFunctionCallError
Link copied to clipboard
fun numOfArgsInFunctionCallError(function: String, numArgs: Int, expected: Int, ctx: ParserRuleContext)
Content copied to clipboard
numOfArgsInMethodCallError
Link copied to clipboard
fun numOfArgsInMethodCallError(dataStructureType: String, method: String, numArgs: Int, expected: Int, ctx: ParserRuleContext)
Content copied to clipboard
redeclarationError
Link copied to clipboard
fun redeclarationError(variable: String, variableType: Type, ctx: ParserRuleContext)
Content copied to clipboard
returnTypeError
Link copied to clipboard
fun returnTypeError(type: String, expectedType: String, ctx: ParserRuleContext)
Content copied to clipboard
stringImmutabilityError
Link copied to clipboard
typeOfArgsInFunctionCallError
Link copied to clipboard
fun typeOfArgsInFunctionCallError(function: String, argType: String, argName: String, expected: String, ctx: ParserRuleContext)
Content copied to clipboard
typeOfArgsInMethodCallError
Link copied to clipboard
fun typeOfArgsInMethodCallError(dataStructureType: String, method: String, argType: String, argName: String, ctx: ParserRuleContext)
Content copied to clipboard
unableToInferTypeFromNullType
Link copied to clipboard
undeclaredAssignError
Link copied to clipboard
unexpectedExpressionTypeError
Link copied to clipboard
fun unexpectedExpressionTypeError(expected: Set<Type>, actual: Type, ctx: ParserRuleContext)
Content copied to clipboard
unsupportedMethodError
Link copied to clipboard
fun unsupportedMethodError(dataStructureType: String, method: String, ctx: ParserRuleContext)
Content copied to clipboard
voidTypeDeclarationError
Link copied to clipboard