示例#1
0
        void ITreeWalker.Visit(CallExpression expression)
        {
            var assigning = _assigning;

            _assigning = false;
            expression.Validate(this);
            InsertCall(assigning, () => expression.Function.Accept(this), () => expression.Arguments.Accept(this));
            _assigning = assigning;
        }
示例#2
0
        void ITreeWalker.Visit(CallExpression expression)
        {
            var assigning = _assigning;

            _assigning = false;

            expression.Validate(this);
            expression.Arguments.Accept(this);
            expression.Function.Accept(this);

            if (assigning)
            {
                _operations.Add(new SetcOperation(expression.Arguments.Count));
            }
            else
            {
                _operations.Add(new GetcOperation(expression.Arguments.Count));
            }

            _assigning = assigning;
        }
 void ITreeWalker.Visit(CallExpression expression)
 {
     expression.Validate(this);
     expression.Function.Accept(this);
     expression.Arguments.Accept(this);
 }