public virtual void VisitOperationDeclaration(OperationDeclarationSyntax node) { this.BeginSymbolDef(node, type: typeof(MetaOperation)); try { if (node.Attribute != null) { foreach (var child in node.Attribute) { this.Visit(child); } } if (node.OperationModifier != null) { foreach (var child in node.OperationModifier) { this.Visit(child); } } this.BeginProperty(node.ReturnType, name: "ReturnType"); try { this.Visit(node.ReturnType); } finally { this.EndProperty(); } this.Visit(node.Name); this.BeginProperty(node.ParameterList, name: "Parameters"); try { this.Visit(node.ParameterList); } finally { this.EndProperty(); } } finally { this.EndSymbolDef(); } }
public virtual void VisitOperationDeclaration(OperationDeclarationSyntax node) { this.BeginProperty("Operations"); try { this.BeginDeclaration(typeof(Symbols.Operation), node); try { this.Visit(node.OperationHead); } finally { this.EndDeclaration(); } } finally { this.EndProperty(); } }