78 references to Node
CSharpSyntaxGenerator (78)
AbstractFileWriter.cs (7)
22private readonly IDictionary<string, Node> _nodeMap; 33_nodeMap = tree.Types.OfType<Node>().ToDictionary(n => n.Name); 230protected static bool IsRoot(Node n) 240protected Node GetNode(string typeName) 241=> _nodeMap.TryGetValue(typeName, out var node) ? node : null; 258protected static bool HasErrors(Node n) 382Node node => node.Fields,
Model\Tree.cs (1)
18[XmlElement(ElementName = "Node", Type = typeof(Node))]
SignatureWriter.cs (3)
77else if (node is Node) 79Node nd = (Node)node;
SourceWriter.cs (57)
146else if (node is Node) 148var nd = (Node)node; 292private void WriteCtorBody(Node node, List<Field> valueFields, List<Field> nodeFields) 325private void WriteSetAnnotations(Node node) 338private void WriteSetDiagnostics(Node node) 351private void WriteGreenAcceptMethods(Node node) 371foreach (var node in nodes.OfType<Node>()) 378private void WriteGreenUpdateMethod(Node node) 440foreach (var node in nodes.OfType<Node>()) 504foreach (var node in nodes.OfType<Node>()) 511private void WriteGreenFactory(Node nd, bool withSyntaxFactoryContext = false) 651private void WriteGreenFactoryParameters(Node nd) 668private void WriteCtorArgList(Node nd, bool withSyntaxFactoryContext, List<Field> valueFields, List<Field> nodeFields) 694: node is Node nd 736var referencedNode = TryGetNodeForNestedList(field); 786var referencedNode = TryGetNodeForNestedList(baseField); 807else if (node is Node) 809var nd = (Node)node; 1039private void WriteRedAcceptMethods(Node node) 1046private void WriteRedAcceptMethod(Node node, bool genericResult) 1067foreach (var node in nodes.OfType<Node>()) 1078private void WriteRedUpdateMethod(Node node) 1118private void WriteRedWithMethods(Node node) 1178: node is Node n 1182private void WriteRedListHelperMethods(Node node) 1199var referencedNode = TryGetNodeForNestedList(field); 1220private Node TryGetNodeForNestedList(Field field) 1222Node referencedNode = GetNode(field.Type); 1231private void WriteRedListHelperMethods(Node node, Field field) 1250private void WriteRedNestedListHelperMethods(Node node, Field field, Node referencedNode, Field referencedNodeField) 1293foreach (var node in nodes.OfType<Node>()) 1332var nodes = Tree.Types.Where(n => n is not PredefinedNode and not AbstractNode).OfType<Node>().ToList(); 1337foreach (var node in nodes) 1353protected bool CanBeAutoCreated(Node node, Field field) 1356private bool IsAutoCreatableToken(Node node, Field field) 1365var referencedNode = GetNode(field.Type); 1369private bool IsRequiredFactoryField(Node node, Field field) 1379private int RequiredFactoryArgumentCount(Node nd, bool includeKind = true) 1400private int OptionalFactoryArgumentCount(Node nd) 1415private void WriteRedFactory(Node nd) 1516private void WriteRedFactoryParameters(Node nd) 1532private string GetDefaultValue(Node nd, Field field) 1555var referencedNode = GetNode(field.Type); 1561private void WriteKindConverters(Node nd) 1587private IEnumerable<Field> DetermineRedFactoryWithNoAutoCreatableTokenFields(Node nd) 1593private void WriteRedFactoryWithNoAutoCreatableTokens(Node nd) 1626private Field DetermineMinimalOptionalField(Node nd) 1654private IEnumerable<Field> DetermineMinimalFactoryFields(Node nd) 1676private void WriteRedMinimalFactory(Node nd, bool withStringNames = false)
TestWriter.cs (9)
91WriteNodeGenerator((Node)node, isGreen); 95private void WriteNodeGenerator(Node node, bool isGreen) 223WriteFactoryPropertyTest((Node)node, isGreen); 227private void WriteFactoryPropertyTest(Node node, bool isGreen) 331WriteTokenDeleteRewriterTest((Node)node); 333WriteIdentityRewriterTest((Node)node); 337private void WriteTokenDeleteRewriterTest(Node node) 365private void WriteIdentityRewriterTest(Node node) 388private string ChooseValidKind(Field field, Node nd)
TreeFlattening.cs (1)
21case Node node: