Exemplo n.º 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();
		}
Exemplo n.º 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();
 }