BoundNodeClassWriter.cs (21)
258WriteLine("{0},", FixKeyword(StripBound(node.Name)));
266WriteLine("{0}", FixKeyword(StripBound(node.Name)));
440Write(string.Format("BoundKind.{0}", StripBound(node.Name)));
508Write(string.Format("BoundKind.{0}", StripBound(node.Name)));
580Write(string.Format("BoundKind.{0}", StripBound(node.Name)));
622Write(string.Format("BoundKind.{0}", StripBound(node.Name)));
876WriteLine("public override BoundNode? Accept(BoundTreeVisitor visitor) => visitor.Visit{0}(this);", StripBound(name));
884WriteLine("Return visitor.Visit{0}(Me)", StripBound(name));
1075WriteLine("case BoundKind.{0}:", FixKeyword(StripBound(node.Name)));
1077WriteLine("return Visit{0}(({1})node, arg);", StripBound(node.Name), node.Name);
1091WriteLine($"public virtual R Visit{StripBound(node.Name)}({node.Name} node, A arg) => this.DefaultVisit(node, arg);");
1100WriteLine($"public virtual BoundNode? Visit{StripBound(node.Name)}({node.Name} node) => this.DefaultVisit(node);");
1118WriteLine("Case BoundKind.{0}", FixKeyword(StripBound(node.Name)));
1120WriteLine("Return Visit{0}(CType(node, {1}), arg)", StripBound(node.Name), node.Name);
1138WriteLine("Public Overridable Function Visit{0}(node As {1}, arg As A) As R", StripBound(node.Name), node.Name);
1241Write("public override TreeDumperNode Visit{0}({1} node, object? arg) => new TreeDumperNode(\"{2}\", null, ", StripBound(node.Name), node.Name, ToCamelCase(StripBound(node.Name)));
1312WriteLine("Public Overrides Function Visit{0}(node As {1}, arg As Object) As TreeDumperNode", StripBound(node.Name), node.Name);
1314Write("Return New TreeDumperNode(\"{0}\", Nothing, ", ToCamelCase(StripBound(node.Name)));
1852return $"public {(isOverride ? "override" : "virtual")} BoundNode? Visit{StripBound(nodeName)}({nodeName} node)";
1855return $"Public {(isOverride ? "Overrides" : "Overridable")} Function Visit{StripBound(nodeName)}(node As {nodeName}) As BoundNode";