public static void IdentifierNotDeclared(Syntax.IdentifierSyntax pIdentifier, TextSpan pSpan) { _error.WriteError($"The name '{pIdentifier.Value}' does not exist in the current context", pSpan); }
public static void IdentifierAlreadyDeclared(Syntax.IdentifierSyntax pIdentifier, TextSpan pSpan) { _error.WriteError($"The name '{pIdentifier.Value}' is already declared in the current scope", pSpan); }
public static void CannotAssignCost(Syntax.IdentifierSyntax pIdentifier, TextSpan pSpan) { _error.WriteError($"Cannot assign value to {pIdentifier.Value} because it is declared as const", pSpan); }
public static void AccessPrivateMember(Syntax.IdentifierSyntax pField, TextSpan pSpan) { _error.WriteError($"Cannot access member '{pField.Value}' because it is marked as private in the stuct", pSpan); }
public static void ValueDefinedAsType(Syntax.IdentifierSyntax pIdentifier, TextSpan pSpan) { _error.WriteError($"Identifier {pIdentifier.Value} is already declared as a type", pSpan); }
public static void IdentifierNotDeclared(SmallType pType, Syntax.IdentifierSyntax pIdentifier, TextSpan pSpan) { _error.WriteError($"Type {pType.Name} does not contain a definition for '{pIdentifier.Value}'", pSpan); }