public override Node VisitPropertyName(ECMAScriptParser.PropertyNameContext context)
 {
     if (context.identifierName() != null)
     {
         return(Visit(context.identifierName()));
     }
     if (context.numericLiteral() != null)
     {
         return(Visit(context.numericLiteral()));
     }
     return(new StringLiteral(context, context.StringLiteral().Symbol.Text));
 }
Beispiel #2
0
 public UstNode VisitPropertyName([NotNull] ECMAScriptParser.PropertyNameContext context)
 {
     return(VisitChildren(context));
 }