예제 #1
0
        public CSharpSyntaxNode Convert(SpreadElement node)
        {
            if (node.Parent != null && node.Parent.Kind == NodeKind.CallExpression)
            {
                return(node.Expression.ToCsNode <ExpressionSyntax>());
            }

            //TODO: NOT SUPPORT
            return(SyntaxFactory.ParseExpression(this.CommentText(node.Text)));
        }
예제 #2
0
 public virtual void VisitSpreadElement(SpreadElement spreadElement)
 {
 }
예제 #3
0
 protected virtual void VisitSpreadElement(SpreadElement spreadElement)
 {
 }
예제 #4
0
 protected override void VisitSpreadElement(SpreadElement spreadElement)
 {
     using (StartNodeObject(spreadElement))
         Member("argument", spreadElement.Argument);
 }
예제 #5
0
 protected internal override void VisitSpreadElement(SpreadElement spreadElement)
 {
     VisitingSpreadElement?.Invoke(this, spreadElement);
     base.VisitSpreadElement(spreadElement);
     VisitedSpreadElement?.Invoke(this, spreadElement);
 }
예제 #6
0
 public JintSpreadExpression(Engine engine, SpreadElement expression) : base(expression)
 {
     _argument     = Build(engine, expression.Argument);
     _argumentName = (expression.Argument as Identifier)?.Name;
 }
 protected override void VisitSpreadElement(SpreadElement spreadElement)
 {
     Visit(spreadElement.Argument);
 }