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