コード例 #1
0
 public override void VisitVariableDeclarator(VariableDeclaratorSyntax node)
 {
     var s = "";
     var up = node.HasParent<VariableDeclarationSyntax, FieldDeclarationSyntax>();
     if (up == null)
     { }
     else
     {
         s = node.ToString();
     }
     _2JS.Append(s);
     base.VisitVariableDeclarator(node);
 }