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(); }
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(); }