コード例 #1
0
ファイル: CppLexer.cs プロジェクト: KAW0/Alter-Native
		public CppLexer(TextReader reader, CppLexerMemento 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;
		}
コード例 #2
0
        public SavepointEventArgs(TextLocation savepointLocation, CppLexerMemento state)
		{
			this.SavepointLocation = savepointLocation;
			this.State = state;
		}