54 references to Field
BoundTreeGenerator (54)
BoundNodeClassWriter.cs (51)
442
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
452
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
463
foreach (
var
field in Fields(node))
510
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
520
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
529
foreach (
var
field in Fields(node))
582
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
589
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
599
foreach (
var
field in Fields(node))
624
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
631
foreach (
Field
baseField in AllSpecifiableFields(BaseType(node)))
639
foreach (
var
field in Fields(node))
662
IEnumerable<
Field
> nullCheckFields = AllFields(node).Where(f => FieldNullHandling(node, f.Name) == NullHandling.Disallow);
668
foreach (
Field
field in nullCheckFields)
693
private static IEnumerable<
Field
> Fields(TreeType node)
697
return Enumerable.Empty<
Field
>();
700
private static IEnumerable<
Field
> FieldsIncludingOverrides(TreeType node)
704
return Enumerable.Empty<
Field
>();
707
private
Field
GetMostDerivedField(Node node, string fieldName)
742
private IEnumerable<
Field
> AllFields(TreeType node)
745
return Enumerable.Empty<
Field
>();
752
private IEnumerable<
Field
> AllSpecifiableFields(TreeType node)
757
private IEnumerable<
Field
> AllNodeOrNodeListFields(TreeType node)
762
private IEnumerable<
Field
> AllTypeFields(TreeType node)
767
private IEnumerable<
Field
> AllSymbolOrSymbolListFields(TreeType node)
774
Field
f = GetField(node, fieldName);
812
private
Field
GetField(TreeType node, string fieldName)
823
private void WriteField(TreeType node,
Field
field)
914
foreach (
var
field in (_targetLang == TargetLanguage.CSharp ? FieldsIncludingOverrides(node) : Fields(node)))
976
string notEquals(
Field
field)
1027
string notEquals(
Field
field)
1042
private static bool TypeIsTypeSymbol(
Field
field) => field.Type.TrimEnd('?') == "TypeSymbol";
1044
private static bool TypeIsSymbol(
Field
field) => TypeIsSymbol(field.Type);
1187
foreach (
Field
field in fields)
1209
foreach (
Field
field in AllFields(node).Where(f => IsDerivedOrListOfDerived("BoundNode", f.Type) && !SkipInVisitor(f)))
1249
Field
field = allFields[i];
1322
Field
field = allFields[i];
1374
foreach (
Field
field in AllNodeOrNodeListFields(node))
1379
foreach (
Field
field in AllTypeFields(node))
1414
foreach (
Field
field in AllNodeOrNodeListFields(node))
1420
foreach (
Field
field in AllTypeFields(node))
1497
foreach (
var
field in AllSymbolOrSymbolListFields(node))
1511
foreach (
var
field in AllNodeOrNodeListFields(node))
1602
static bool symbolIsPotentiallyUpdated(
Field
f)
1613
bool immutableArrayIsPotentiallyUpdated(
Field
field)
1772
private static bool IsNew(
Field
f)
1777
private static bool IsPropertyOverrides(
Field
f)
1782
private static bool SkipInVisitor(
Field
f)
1788
private static bool VisitFieldOnlyInNullabilityRewriter(
Field
f)
1798
private static bool SkipInNullabilityRewriter(
Field
f)
1862
private void WriteNodeVisitCall(
Field
field, bool forceVisit = false)
Model.cs (2)
44
[XmlElement(ElementName = "Field", Type = typeof(
Field
))]
45
public List<
Field
> Fields;
Program.cs (1)
86
foreach (
var
field in node.Fields)