Lines Matching defs:path
138 private IDescriptor FindDescriptorForPath(IList<int> path)
140 // All complete declarations have an even, non-empty path length
141 // (There can be an empty path for a descriptor declaration, but that can't have any comments,
143 if (path.Count == 0 || (path.Count & 1) != 0)
147 IReadOnlyList<DescriptorBase> topLevelList = GetNestedDescriptorListForField(path[0]);
148 DescriptorBase current = GetDescriptorFromList(topLevelList, path[1]);
150 for (int i = 2; current != null && i < path.Count; i += 2)
152 var list = current.GetNestedDescriptorListForField(path[i]);
153 current = GetDescriptorFromList(list, path[i + 1]);
170 // we can pass in the complete path and report that and the file name.
171 throw new InvalidProtocolBufferException($"Invalid descriptor location path: index out of range");
587 /// attempting to determine which generic type arguments need to be handled will spot the code path and act