public CodeAssistanceContextProvider(Scope scope, string source)
		{
			_scope = scope;
			_completionParser = new CompletionParser(_errorReporter, source);
			_resolver = new Resolver(_errorReporter, _scope);
		    _normalizer = new Normalizer();
		}
예제 #2
0
        public ExpressionNode Pop()
        {
            ExpressionNode result = _expressionStack.Pop();
            result = new Normalizer().VisitExpression(result);
			result = new OperatorTypeResolver(ExceptionErrorProvider.Instance).VisitExpression(result);
			result = new ConstantFolder(ExceptionErrorProvider.Instance).VisitExpression(result);
			return result;
        }