public override Argument VisitErrorNode(IErrorNode node) { throw new ArgumentException("Invalid token '" + node.GetText()); }
//==================================================== //Error Handling //==================================================== public override string VisitErrorNode([NotNull] IErrorNode node) { ThrowUnsupportedError(); throw new Exception($"Error Node reached with text {node.GetText()}."); }
public override void VisitErrorNode([NotNull] IErrorNode node) { System.Diagnostics.Debug.WriteLine("TypeScan ERROR " + node.GetText()); base.VisitErrorNode(node); }
public override Expression VisitErrorNode(IErrorNode node) { writer($"{System.Reflection.MethodBase.GetCurrentMethod().Name} | {node.GetText()}"); return(base.VisitErrorNode(node)); }
/// <inheritdoc /> public override Result <FreezableStepProperty, IError> VisitErrorNode(IErrorNode node) => ErrorCode.SCLSyntaxError.ToErrorBuilder(node.GetText()) .WithLocationSingle(new TextLocation(node.Symbol));
public override string VisitErrorNode(IErrorNode node) { this.stringBuilder.AppendLine(new string(' ', this.currentDepth) + "Error: '" + node.GetText()); return(null); }
public override AbstractNode VisitErrorNode(IErrorNode node) { throw new Exception("Error at " + node.GetText() + " " + node.Parent.SourceInterval); }