32 references to Name
IOperationGenerator (32)
IOperationClassWriter.cs (17)
34_typeMap = _tree.Types.OfType<AbstractNode>().ToDictionary(t => t.Name, t => (AbstractNode?)t); 205WriteLine($"{(node.IsInternal ? "internal" : "public")} interface {node.Name} : {node.Base}"); 228return new[] { GetSubName(node.Name) }; 345node.Name, 355writeEnumElement(GetSubName(currentEntry.Name), 357currentEntry.Name, 405string typeName = type.Name[1..]; 423writeClassHeader(type.IsAbstract ? "abstract" : "sealed", @class, @base, type.Name); 649throw new InvalidOperationException($"{node.Name} is not being included in OperationKind, but has no base type!"); 657return GetSubName(node.Name); 710Debug.Assert(node.ChildrenOrder != null, $"Encountered null children order for {type.Name}, should have been caught in verifier!"); 951string nameMinusI = node.Name[1..]; 952WriteLine($"{(node.IsInternal ? "internal" : "public")} override IOperation {GetVisitorName(node)}({node.Name} operation, object? argument)"); 1030var baseName = GetSubName(type.Name); 1031WriteLine($"{accessibility} virtual void {GetVisitorName(type)}({type.Name} operation) => DefaultVisit(operation);"); 1050WriteLine($"{accessibility} virtual TResult? {GetVisitorName(type)}({type.Name} operation, TArgument argument) => DefaultVisit(operation, argument);"); 1067return type.VisitorName ?? $"Visit{GetSubName(type.Name)}";
IOperationClassWriter.Verifier.cs (15)
18if (!abstractNode.Name.StartsWith("I")) 20Console.WriteLine($"All IOperation node names must start with I. {abstractNode.Name} does not."); 24if (!abstractNode.Name.EndsWith("Operation")) 26Console.WriteLine($"All IOperation node names must end with Operation. {abstractNode.Name} does not."); 32Console.WriteLine($"{abstractNode.Name}'s base type is not an IOperation type."); 40Console.WriteLine($"{abstractNode.Name} does not have correctly formatted comments, please ensure that there is a <summary> block for the type."); 48Console.WriteLine($"{abstractNode.Name}.{prop.Name} does not have correctly formatted comments, please ensure that there is a <summary> block for the property."); 58Console.WriteLine($"{abstractNode.Name}.{prop.Name} has nullable IOperation elements. This is not allowed in IOperation and will mess up Children generation."); 70Console.WriteLine($"{node.Name} has unexpected value for {nameof(Node.HasType)}: {node.HasTypeText}"); 76Console.WriteLine($"{node.Name} has unexpected value for {nameof(Node.HasConstantValue)}: {node.HasConstantValueText}"); 82Console.WriteLine($"{node.Name} is marked as having a constant value without having a type"); 96Console.WriteLine($"{node.Name} has inconsistent ChildrenOrder and properties"); 105Console.WriteLine($"{node.Name} has more than 1 IOperation property and must declare an explicit ordering with the ChildrenOrder attribute."); 116Console.WriteLine($"{node.Name}'s ChildrenOrder contains unknown property {child}"); 123Console.WriteLine($"{node.Name}'s ChildrenOrder is missing {remainingProp}");