32 references to Name
IOperationGenerator (32)
IOperationClassWriter.cs (17)
34_typeMap = _tree.Types.OfType<AbstractNode>().ToDictionary(t => t.Name, t => (AbstractNode?)t); 209WriteLine($"{(node.IsInternal ? "internal" : "public")} interface {node.Name} : {node.Base}"); 232return new[] { GetSubName(node.Name) }; 349node.Name, 359writeEnumElement(GetSubName(currentEntry.Name), 361currentEntry.Name, 409string typeName = type.Name[1..]; 427writeClassHeader(type.IsAbstract ? "abstract" : "sealed", @class, @base, type.Name); 653throw new InvalidOperationException($"{node.Name} is not being included in OperationKind, but has no base type!"); 661return GetSubName(node.Name); 714Debug.Assert(node.ChildrenOrder != null, $"Encountered null children order for {type.Name}, should have been caught in verifier!"); 955string nameMinusI = node.Name[1..]; 956WriteLine($"{(node.IsInternal ? "internal" : "public")} override IOperation {GetVisitorName(node)}({node.Name} operation, object? argument)"); 1034var baseName = GetSubName(type.Name); 1035WriteLine($"{accessibility} virtual void {GetVisitorName(type)}({type.Name} operation) => DefaultVisit(operation);"); 1054WriteLine($"{accessibility} virtual TResult? {GetVisitorName(type)}({type.Name} operation, TArgument argument) => DefaultVisit(operation, argument);"); 1071return 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}");