57 references to Fields
CSharpSyntaxGenerator (57)
AbstractFileWriter.cs (1)
382
Node node => node.
Fields
,
SignatureWriter.cs (2)
85
var valueFields = nd.
Fields
.Where(n => !IsNodeOrNodeList(n.Type)).ToList();
86
var nodeFields = nd.
Fields
.Where(n => IsNodeOrNodeList(n.Type)).ToList();
SourceWriter.cs (45)
153
var valueFields = nd.
Fields
.Where(n => !IsNodeOrNodeList(n.Type)).ToList();
154
var nodeFields = nd.
Fields
.Where(n => IsNodeOrNodeList(n.Type)).ToList();
332
node.
Fields
.Select(f => $"this.{CamelCase(f.Name)}"),
345
node.
Fields
.Select(f => $"this.{CamelCase(f.Name)}"),
382
Write(CommaJoin(node.
Fields
.Select(f =>
398
foreach (var field in node.
Fields
)
415
node.
Fields
.Select(f => CamelCase(f.Name))));
442
var nodeFields = node.
Fields
.Where(nd => IsNodeOrNodeList(nd.Type)).ToList();
457
Write(CommaJoin(node.
Fields
.Select(f =>
513
var valueFields = nd.
Fields
.Where(n => !IsNodeOrNodeList(n.Type)).ToList();
514
var nodeFields = nd.
Fields
.Where(n => IsNodeOrNodeList(n.Type)).ToList();
655
nd.
Fields
.Select(f =>
695
? nd.
Fields
.Where(n => IsNodeOrNodeList(n.Type)).ToList()
739
foreach (var referencedNodeField in referencedNode.
Fields
)
790
foreach (var referencedNodeField in referencedNode.
Fields
)
824
var valueFields = nd.
Fields
.Where(n => !IsNodeOrNodeList(n.Type)).ToList();
825
var nodeFields = nd.
Fields
.Where(n => IsNodeOrNodeList(n.Type)).ToList();
1083
node.
Fields
.Select(f => $"{GetRedPropertyType(f)} {CamelCase(f.Name)}")));
1089
foreach (var field in node.
Fields
)
1106
node.
Fields
.Select(f => CamelCase(f.Name))));
1120
foreach (var field in node.
Fields
)
1124
if (field == node.
Fields
.First())
1151
Write(CommaJoin(node.
Fields
.Select(f =>
1185
foreach (var field in node.
Fields
)
1203
foreach (var referencedNodeField in referencedNode.
Fields
)
1300
if (node.
Fields
.Count == 0)
1307
Write(CommaJoin(node.
Fields
.Select(f =>
1389
foreach (var field in nd.
Fields
)
1403
foreach (var field in nd.
Fields
)
1419
var valueFields = nd.
Fields
.Where(n => IsValueField(n)).ToList();
1420
var nodeFields = nd.
Fields
.Where(n => !IsValueField(n)).ToList();
1520
nd.
Fields
.Select(f => $"{this.GetRedPropertyType(f)} {CamelCase(f.Name)}")));
1563
foreach (var field in nd.
Fields
)
1589
return nd.
Fields
.Where(f => !IsAutoCreatableToken(nd, f));
1595
var nAutoCreatableTokens = nd.
Fields
.Count(f => IsAutoCreatableToken(nd, f));
1612
nd.
Fields
.Where(factoryWithNoAutoCreatableTokenFields.Contains).Select(
1619
nd.
Fields
.Select(f => factoryWithNoAutoCreatableTokenFields.Contains(f)
1629
int listCount = nd.
Fields
.Count(f => IsAnyNodeList(f.Type) && !IsAttributeOrModifiersList(f));
1632
return nd.
Fields
.First(f => IsAnyNodeList(f.Type) && !IsAttributeOrModifiersList(f));
1637
int nodeCount = nd.
Fields
.Count(f => IsNode(f.Type) && f.Type != "SyntaxToken");
1640
return nd.
Fields
.First(f => IsNode(f.Type) && f.Type != "SyntaxToken");
1672
return nd.
Fields
.Where(f => IsRequiredFactoryField(nd, f) || allowOptionalField == f);
1690
var hasAttributeOrModifiersList = nd.
Fields
.Any(f => IsAttributeOrModifiersList(f));
1701
nd.
Fields
.Where(minimalFactoryfields.Contains).Select(f =>
1726
nd.
Fields
.Select(f =>
TestWriter.cs (8)
97
var valueFields = node.
Fields
.Where(n => !IsNodeOrNodeList(n.Type));
98
var nodeFields = node.
Fields
.Where(n => IsNodeOrNodeList(n.Type));
229
var valueFields = node.
Fields
.Where(n => !IsNodeOrNodeList(n.Type));
230
var nodeFields = node.
Fields
.Where(n => IsNodeOrNodeList(n.Type));
339
var valueFields = node.
Fields
.Where(n => !IsNodeOrNodeList(n.Type));
340
var nodeFields = node.
Fields
.Where(n => IsNodeOrNodeList(n.Type));
367
var valueFields = node.
Fields
.Where(n => !IsNodeOrNodeList(n.Type));
368
var nodeFields = node.
Fields
.Where(n => IsNodeOrNodeList(n.Type));
TreeFlattening.cs (1)
22
FlattenChildren(node.Children, node.
Fields
, makeOptional: false);