public void VisitUsingAliasDeclaration(UsingAliasDeclaration usingAliasDeclaration) { StartNode(usingAliasDeclaration); WriteKeyword(UsingAliasDeclaration.UsingKeywordRole); WriteIdentifier(usingAliasDeclaration.GetChildByRole(UsingAliasDeclaration.AliasRole)); Space(policy.SpaceAroundEqualityOperator); WriteToken(Roles.Assign); Space(policy.SpaceAroundEqualityOperator); usingAliasDeclaration.Import.AcceptVisitor(this); Semicolon(); EndNode(usingAliasDeclaration); }
public void VisitUsingAliasDeclaration(UsingAliasDeclaration usingAliasDeclaration) { JsonObject declaration = new JsonObject(); declaration.Comment = "VisitUsingAliasDeclaration"; AddKeyword(declaration, UsingAliasDeclaration.UsingKeywordRole); declaration.AddJsonValue("identifier", GetIdentifier(usingAliasDeclaration.GetChildByRole(UsingAliasDeclaration.AliasRole))); declaration.AddJsonValue("assign-token", GetKeyword(Roles.Assign)); declaration.AddJsonValue("import", GenTypeInfo(usingAliasDeclaration.Import)); Push(declaration); //implement already, but not tested throw new FirstTimeUseException(); }