Пример #1
0
		public ExpressionFinder(ExpressionFinderState state)
		{
			wasQualifierTokenAtStart = state.WasQualifierTokenAtStart;
			nextTokenIsPotentialStartOfExpression = state.NextTokenIsPotentialStartOfExpression;
			nextTokenIsStartOfImportsOrAccessExpression = state.NextTokenIsStartOfImportsOrAccessExpression;
			readXmlIdentifier = state.ReadXmlIdentifier;
			identifierExpected = state.IdentifierExpected;
			stateStack = new Stack<int>(state.StateStack.Reverse());
			stack = new Stack<Block>(state.BlockStack.Select(x => (Block)x.Clone()).Reverse());
			currentState = state.CurrentState;
			output = new StringBuilder();
		}
Пример #2
0
 public ExpressionFinder(ExpressionFinderState state)
 {
     wasQualifierTokenAtStart = state.WasQualifierTokenAtStart;
     nextTokenIsPotentialStartOfExpression       = state.NextTokenIsPotentialStartOfExpression;
     nextTokenIsStartOfImportsOrAccessExpression = state.NextTokenIsStartOfImportsOrAccessExpression;
     readXmlIdentifier  = state.ReadXmlIdentifier;
     identifierExpected = state.IdentifierExpected;
     stateStack         = new Stack <int>(state.StateStack.Reverse());
     stack        = new Stack <Block>(state.BlockStack.Select(x => (Block)x.Clone()).Reverse());
     currentState = state.CurrentState;
     output       = new StringBuilder();
 }