public LexException AddPosition(LexPosition position, string description) { if (_frozen) throw new InvalidOperationException("This class is no longer mutable."); _additionalPositions.Add(new PositionWithDescription(position, description)); return this; }
public LexException AddPosition(LexPosition position, string description) { if (_frozen) { throw new InvalidOperationException("This class is no longer mutable."); } _additionalPositions.Add(new PositionWithDescription(position, description)); return(this); }
public PositionWithDescription(LexPosition position, string description) { Position = position; Description = description; }
public LexException(LexPosition errorPosition, string errorDescription) { ErrorPosition = errorPosition; ErrorDescription = errorDescription; }
public BuiltinToken(LexPosition start, LexPosition end, string @operator) : base(start, end) { Builtin = @operator; }
public EndOfFileToken(LexPosition location) : base(location, location) { }
public Token(LexPosition start, LexPosition end) { StartLocation = start; EndLocation = end; }
public CommentToken(LexPosition start, LexPosition end) : base(start, end) { }
public IdentifierToken(LexPosition start, LexPosition end, string identifier) : base(start, end) { Identifier = identifier; }
public StringLiteralToken(LexPosition start, LexPosition end) : base(start, end) { }