88 references to Field
CSharpSyntaxGenerator (88)
AbstractFileWriter.cs (7)
135
protected static string OverrideOrNewModifier(
Field
field)
140
protected static bool CanBeField(
Field
field)
145
protected static string GetFieldType(
Field
field, bool green)
249
protected static bool IsOptional(
Field
f)
252
protected static bool IsOverride(
Field
f)
255
protected static bool IsNew(
Field
f)
375
protected List<Kind> GetKindsOfFieldOrNearestParent(TreeType nd,
Field
field)
Model\AbstractNode.cs (2)
14
public readonly List<
Field
> Fields = new List<
Field
>();
Model\Field.cs (2)
20
[XmlElement(ElementName = "Field", Type = typeof(
Field
))]
32
[XmlElement(ElementName = "Field", Type = typeof(
Field
))]
Model\Node.cs (2)
23
public readonly List<
Field
> Fields = new List<
Field
>();
Model\TreeType.cs (1)
29
[XmlElement(ElementName = "Field", Type = typeof(
Field
))]
SignatureWriter.cs (3)
69
var
field = nd.Fields[i];
90
var
field = nodeFields[i];
96
var
field = valueFields[i];
SourceWriter.cs (64)
117
foreach (
var
field in nodeFields)
136
foreach (
var
field in valueFields)
156
foreach (
var
field in nodeFields)
162
foreach (
var
field in valueFields)
206
foreach (
var
field in nodeFields)
230
foreach (
var
field in valueFields)
259
var
field = nodeFields[i];
279
private void WriteGreenNodeConstructorArgs(List<
Field
> nodeFields, List<
Field
> valueFields)
281
foreach (
var
field in nodeFields)
286
foreach (
var
field in valueFields)
292
private void WriteCtorBody(Node node, List<
Field
> valueFields, List<
Field
> nodeFields)
302
foreach (
var
field in nodeFields)
319
foreach (
var
field in valueFields)
398
foreach (
var
field in node.Fields)
537
foreach (
var
field in nodeFields)
668
private void WriteCtorArgList(Node nd, bool withSyntaxFactoryContext, List<
Field
> valueFields, List<
Field
> nodeFields)
691
private List<
Field
> GetNodeOrNodeListFields(TreeType node)
696
: new List<
Field
>();
715
foreach (
var
field in nodeFields)
739
foreach (
var
referencedNodeField in referencedNode.Fields)
755
foreach (
var
field in valueFields)
771
foreach (
var
baseField in baseNodeFields)
776
foreach (
var
baseField in baseNodeFields)
790
foreach (
var
referencedNodeField in referencedNode.Fields)
827
foreach (
var
field in nodeFields)
855
var
field = nodeFields[i];
929
foreach (
var
field in valueFields)
1022
private string GetRedFieldType(
Field
field)
1089
foreach (
var
field in node.Fields)
1120
foreach (
var
field in node.Fields)
1157
private (TreeType type,
Field
field) GetHighestBaseTypeWithField(TreeType node, string name)
1160
Field
bestField = null;
1164
var
field = fields.FirstOrDefault(f => f.Name == name);
1185
foreach (
var
field in node.Fields)
1203
foreach (
var
referencedNodeField in referencedNode.Fields)
1220
private Node TryGetNodeForNestedList(
Field
field)
1231
private void WriteRedListHelperMethods(Node node,
Field
field)
1250
private void WriteRedNestedListHelperMethods(Node node,
Field
field, Node referencedNode,
Field
referencedNodeField)
1353
protected bool CanBeAutoCreated(Node node,
Field
field)
1356
private bool IsAutoCreatableToken(Node node,
Field
field)
1363
private bool IsAutoCreatableNode(
Field
field)
1369
private bool IsRequiredFactoryField(Node node,
Field
field)
1374
private bool IsValueField(
Field
field)
1389
foreach (
var
field in nd.Fields)
1403
foreach (
var
field in nd.Fields)
1445
foreach (
var
field in nodeFields)
1523
private string GetRedPropertyType(
Field
field)
1532
private string GetDefaultValue(Node nd,
Field
field)
1563
foreach (
var
field in nd.Fields)
1587
private IEnumerable<
Field
> DetermineRedFactoryWithNoAutoCreatableTokenFields(Node nd)
1599
var factoryWithNoAutoCreatableTokenFields = new HashSet<
Field
>(DetermineRedFactoryWithNoAutoCreatableTokenFields(nd));
1626
private
Field
DetermineMinimalOptionalField(Node nd)
1649
private static bool IsAttributeOrModifiersList(
Field
f)
1654
private IEnumerable<
Field
> DetermineMinimalFactoryFields(Node nd)
1658
Field
allowOptionalField = null;
1682
var minimalFactoryfields = new HashSet<
Field
>(DetermineMinimalFactoryFields(nd));
1757
private bool CanAutoConvertFromString(
Field
field)
1762
private bool IsIdentifierToken(
Field
field)
1767
private bool IsIdentifierNameSyntax(
Field
field)
1772
private string GetStringConverterMethod(
Field
field)
TestWriter.cs (5)
119
foreach (
var
field in nodeFields)
198
foreach (
var
field in valueFields)
245
foreach (
var
field in nodeFields)
295
foreach (
var
field in valueFields)
388
private string ChooseValidKind(
Field
field, Node nd)
TreeFlattening.cs (2)
29
List<TreeTypeChild> fieldsAndChoices, List<
Field
> fields, bool makeOptional)
35
case
Field
field: