return"Using assignment with operation but the variable '"+symbols[0]+"' was not previously assigned a value.";
}break;
caseUNASSIGNED_VARIABLE:{
CHECK_SYMBOLS(1);
return"The variable '"+symbols[0]+"' was used but never assigned a value.";
}break;
caseUNUSED_VARIABLE:{
CHECK_SYMBOLS(1);
return"The local variable '"+symbols[0]+"' is declared but never used in the block. If this is intended, prefix it with an underscore: '_"+symbols[0]+"'";
return"The local constant '"+symbols[0]+"' is declared but never used in the block. If this is intended, prefix it with an underscore: '_"+symbols[0]+"'";
return"The parameter '"+symbols[1]+"' is never used in the function '"+symbols[0]+"'. If this is intended, prefix it with an underscore: '_"+symbols[1]+"'";
return"Standalone expression (the line has no effect).";
}break;
caseVOID_ASSIGNMENT:{
CHECK_SYMBOLS(1);
return"Assignment operation, but the function '"+symbols[0]+"()' returns void.";
}break;
caseNARROWING_CONVERSION:{
return"Narrowing conversion (float is converted to int and loses precision).";
}break;
caseINCOMPATIBLE_TERNARY:{
return"Values of the ternary conditional are not mutually compatible.";
}break;
caseUNUSED_SIGNAL:{
CHECK_SYMBOLS(1);
return"The signal '"+symbols[0]+"' is declared but never emitted.";
}break;
caseRETURN_VALUE_DISCARDED:{
CHECK_SYMBOLS(1);
return"The function '"+symbols[0]+"()' returns a value, but this value is never used.";
}break;
casePROPERTY_USED_AS_FUNCTION:{
CHECK_SYMBOLS(2);
return"The method '"+symbols[0]+"()' was not found in base '"+symbols[1]+"' but there's a property with the same name. Did you mean to access it?";
}break;
caseCONSTANT_USED_AS_FUNCTION:{
CHECK_SYMBOLS(2);
return"The method '"+symbols[0]+"()' was not found in base '"+symbols[1]+"' but there's a constant with the same name. Did you mean to access it?";
}break;
caseFUNCTION_USED_AS_PROPERTY:{
CHECK_SYMBOLS(2);
return"The property '"+symbols[0]+"' was not found in base '"+symbols[1]+"' but there's a method with the same name. Did you mean to call it?";
}break;
caseINTEGER_DIVISION:{
return"Integer division, decimal part will be discarded.";
}break;
caseUNSAFE_PROPERTY_ACCESS:{
CHECK_SYMBOLS(2);
return"The property '"+symbols[0]+"' is not present on the inferred type '"+symbols[1]+"' (but may be present on a subtype).";
}break;
caseUNSAFE_METHOD_ACCESS:{
CHECK_SYMBOLS(2);
return"The method '"+symbols[0]+"' is not present on the inferred type '"+symbols[1]+"' (but may be present on a subtype).";
}break;
caseUNSAFE_CAST:{
CHECK_SYMBOLS(1);
return"The value is cast to '"+symbols[0]+"' but has an unknown type.";
}break;
caseUNSAFE_CALL_ARGUMENT:{
CHECK_SYMBOLS(4);
return"The argument '"+symbols[0]+"' of the function '"+symbols[1]+"' requires a the subtype '"+symbols[2]+"' but the supertype '"+symbols[3]+"' was provided";
}break;
caseDEPRECATED_KEYWORD:{
CHECK_SYMBOLS(2);
return"The '"+symbols[0]+"' keyword is deprecated and will be removed in a future release, please replace its uses by '"+symbols[1]+"'.";
}break;
caseSTANDALONE_TERNARY:{
return"Standalone ternary conditional operator: the return value is being discarded.";