public static T RaiseParserError <T>(this LanguageCompilationLog compilationLog, string description, Token token) { var err = new ParserException(description); return(compilationLog.RaiseErrorMessage <T>(err, token)); }
public static T RaiseParserError <T>(this LanguageCompilationLog compilationLog, string description, int absolutePos) { var err = new ParserException(description); return(compilationLog.RaiseErrorMessage <T>(err, absolutePos)); }
public static T RaiseTypeMismatchError <T>(this LanguageCompilationLog compilationLog, string description, ParseTreeNode node) { var err = new AstGeneratorTypeMismatchException(description); return(compilationLog.RaiseErrorMessage <T>(err, node)); }