40 references to Name
IOperationGenerator (40)
IOperationClassWriter.cs (37)
299
WriteLine($"{modifiers}{prop.Type} {prop.
Name
} {{ get; }}");
497
if (newProps.Contains(prop.
Name
))
504
newProps.Add(prop.
Name
);
509
Write($"IConvertibleConversion {prop.
Name
.ToCamelCase()}, ");
517
Write($"{prop.Type} {prop.
Name
.ToCamelCase()}, ");
544
Write($"{prop.
Name
.ToCamelCase()}, ");
570
WriteLine($"{prop.
Name
}Convertible = {prop.
Name
.ToCamelCase()};");
575
? $"SetParentOperation({prop.
Name
.ToCamelCase()}, this)"
576
: prop.
Name
.ToCamelCase();
577
WriteLine($"{prop.
Name
} = {initializer};");
606
WriteLine($"internal IConvertibleConversion {prop.
Name
}Convertible {{ get; }}");
607
WriteLine($"public CommonConversion {prop.
Name
} => {prop.
Name
}Convertible.ToCommonConversion();");
611
Write($"public new {propExtensibility}{prop.Type} {prop.
Name
} => ");
615
var baseProp = baseProperties.Single(p => p.
Name
== prop.
Name
);
623
Write($"base.{baseProp.
Name
}");
638
WriteLine($"public {propExtensibility}{prop.Type} {prop.
Name
} {{ get; }}");
689
Write($"{prop.
Name
}.Length");
693
Write($"({prop.
Name
} is null ? 0 : 1)");
719
orderedProperties.Add(publicIOperationProps.Find(p => p.
Name
== childName) ??
750
WriteLine($"index < {prop.
Name
}.Length");
752
WriteLine($"=> {prop.
Name
}[index],");
757
WriteLine($"{prop.
Name
} != null");
759
WriteLine($"=> {prop.
Name
},");
807
WriteLine($"if (!{prop.
Name
}.IsEmpty) return (true, {slot}, 0);");
811
WriteLine($"if ({prop.
Name
} != null) return (true, {slot}, 0);");
820
WriteLine($"case {slot} when previousIndex + 1 < {prop.
Name
}.Length:");
883
WriteLine($"if (!{prop.
Name
}.IsEmpty) return (true, {slot}, {prop.
Name
}.Length - 1);");
887
WriteLine($"if ({prop.
Name
} != null) return (true, {slot}, 0);");
964
if (prop.MakeAbstract || newProps.Contains(prop.
Name
))
971
newProps.Add(prop.
Name
);
977
Write($"({internalName}.{prop.
Name
}), ");
981
Write($"{internalName}.{prop.
Name
}Convertible, ");
985
Write($"{internalName}.{prop.
Name
}, ");
IOperationClassWriter.Verifier.cs (3)
48
Console.WriteLine($"{abstractNode.Name}.{prop.
Name
} does not have correctly formatted comments, please ensure that there is a <summary> block for the property.");
58
Console.WriteLine($"{abstractNode.Name}.{prop.
Name
} has nullable IOperation elements. This is not allowed in IOperation and will mess up Children generation.");
86
var properties = GetAllGeneratedIOperationProperties(node).Where(p => !p.IsInternal).Select(p => p.
Name
).ToList();