40 references to Name
IOperationGenerator (40)
IOperationClassWriter.cs (37)
299WriteLine($"{modifiers}{prop.Type} {prop.Name} {{ get; }}"); 497if (newProps.Contains(prop.Name)) 504newProps.Add(prop.Name); 509Write($"IConvertibleConversion {prop.Name.ToCamelCase()}, "); 517Write($"{prop.Type} {prop.Name.ToCamelCase()}, "); 544Write($"{prop.Name.ToCamelCase()}, "); 570WriteLine($"{prop.Name}Convertible = {prop.Name.ToCamelCase()};"); 575? $"SetParentOperation({prop.Name.ToCamelCase()}, this)" 576: prop.Name.ToCamelCase(); 577WriteLine($"{prop.Name} = {initializer};"); 606WriteLine($"internal IConvertibleConversion {prop.Name}Convertible {{ get; }}"); 607WriteLine($"public CommonConversion {prop.Name} => {prop.Name}Convertible.ToCommonConversion();"); 611Write($"public new {propExtensibility}{prop.Type} {prop.Name} => "); 615var baseProp = baseProperties.Single(p => p.Name == prop.Name); 623Write($"base.{baseProp.Name}"); 638WriteLine($"public {propExtensibility}{prop.Type} {prop.Name} {{ get; }}"); 689Write($"{prop.Name}.Length"); 693Write($"({prop.Name} is null ? 0 : 1)"); 719orderedProperties.Add(publicIOperationProps.Find(p => p.Name == childName) ?? 750WriteLine($"index < {prop.Name}.Length"); 752WriteLine($"=> {prop.Name}[index],"); 757WriteLine($"{prop.Name} != null"); 759WriteLine($"=> {prop.Name},"); 807WriteLine($"if (!{prop.Name}.IsEmpty) return (true, {slot}, 0);"); 811WriteLine($"if ({prop.Name} != null) return (true, {slot}, 0);"); 820WriteLine($"case {slot} when previousIndex + 1 < {prop.Name}.Length:"); 883WriteLine($"if (!{prop.Name}.IsEmpty) return (true, {slot}, {prop.Name}.Length - 1);"); 887WriteLine($"if ({prop.Name} != null) return (true, {slot}, 0);"); 964if (prop.MakeAbstract || newProps.Contains(prop.Name)) 971newProps.Add(prop.Name); 977Write($"({internalName}.{prop.Name}), "); 981Write($"{internalName}.{prop.Name}Convertible, "); 985Write($"{internalName}.{prop.Name}, ");
IOperationClassWriter.Verifier.cs (3)
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."); 86var properties = GetAllGeneratedIOperationProperties(node).Where(p => !p.IsInternal).Select(p => p.Name).ToList();