Lines Matching refs:node
42 /// <para>A tree representation of a FieldMask. Each leaf node in this tree represent
96 /// exists, which will turn the tree node for "foo.bar" to a leaf node.
97 /// Likewise, if the field path to add is a sub-path of an existing leaf node,
108 var node = root;
111 // Find the matching node in the tree.
114 // Check whether the path matches an existing leaf node.
116 && node != root
117 && node.Children.Count == 0)
119 // The path to add is a sub-path of an existing leaf node.
124 if (!node.Children.TryGetValue(part, out childNode))
128 node.Children.Add(part, childNode);
130 node = childNode;
133 // Turn the matching node into a leaf node (i.e., remove sub-paths).
134 node.Children.Clear();
170 private void GetFieldPaths(Node node, string path, List<string> paths)
172 if (node.Children.Count == 0)
178 foreach (var entry in node.Children)
201 var node = root;
204 if (node != root
205 && node.Children.Count == 0)
207 // The given path is a sub-path of an existing leaf node in the tree.
212 if (!node.Children.TryGetValue(part, out node))
218 // We found a matching node for the path. All leaf children of this matching
219 // node is in the intersection.
221 GetFieldPaths(node, path, paths);
250 Node node,
262 foreach (var entry in node.Children)