Exemplo n.º 1
0
		public VBLexer(TextReader reader, VBLexerMemento state) : this(reader)
		{
			SetInitialLocation(new TextLocation(state.Line, state.Column));
			lastToken = new Token(state.PrevTokenKind, 0, 0);
			ef = new ExpressionFinder(state.ExpressionFinder);
			lineEnd = state.LineEnd;
			isAtLineBegin = state.IsAtLineBegin;
			encounteredLineContinuation = state.EncounteredLineContinuation;
			misreadExclamationMarkAsTypeCharacter = state.MisreadExclamationMarkAsTypeCharacter;
			xmlModeStack = new Stack<XmlModeInfo>(state.XmlModeInfoStack.Select(i => (XmlModeInfo)i.Clone()).Reverse());
			inXmlMode = state.InXmlMode;
		}
Exemplo n.º 2
0
		public SavepointEventArgs(AstLocation savepointLocation, VBLexerMemento state)
		{
			this.SavepointLocation = savepointLocation;
			this.State = state;
		}
Exemplo n.º 3
0
 public SavepointEventArgs(AstLocation savepointLocation, VBLexerMemento state)
 {
     this.SavepointLocation = savepointLocation;
     this.State             = state;
 }
Exemplo n.º 4
0
 public static VBLexer CreateLexer(TextReader textReader, VBLexerMemento state)
 {
     return new ICSharpCode.NRefactory.VB.Parser.VBLexer(textReader, state);
 }