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))); }
public virtual void VisitSpreadElement(SpreadElement spreadElement) { }
protected virtual void VisitSpreadElement(SpreadElement spreadElement) { }
protected override void VisitSpreadElement(SpreadElement spreadElement) { using (StartNodeObject(spreadElement)) Member("argument", spreadElement.Argument); }
protected internal override void VisitSpreadElement(SpreadElement spreadElement) { VisitingSpreadElement?.Invoke(this, spreadElement); base.VisitSpreadElement(spreadElement); VisitedSpreadElement?.Invoke(this, spreadElement); }
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); }