System\UriTemplateTrieNode.cs (35)
69current.endOfPath.Items.Add(kvp);
87current.finalVariableSegment.Items.Add(kvp);
124current.star.Items.Add(kvp);
129current.endOfPath.Items.Add(kvp);
162for (int i = 0; i < answer.Items.Count; i++)
164candidates.Add(new UriTemplateTableMatchCandidate(answer.Items[i].Key, answer.SegmentsCount,
165answer.Items[i].Value));
201if (currentLocation.node.endOfPath.Items.Count != 0)
207else if (currentLocation.node.star.Items.Count != 0)
278else if (considerStar && currentLocation.node.star.Items.Count != 0)
319success.Items.AddRange(compoundPathEquivalentSets[0][i].Items);
324else if (considerVariable && currentLocation.node.finalVariableSegment.Items.Count != 0)
330else if (considerStar && currentLocation.node.star.Items.Count != 0)
384SR.UTTDuplicate, pesLists[i][0].Items[0].Key.ToString(), pesLists[i][1].Items[0].Key.ToString())));
448if (pes.Items.Count < 2)
453for (int i = 0; i < pes.Items.Count - 1; ++i)
455Fx.Assert(pes.Items[i].Key.IsPathPartiallyEquivalentAt(pes.Items[i + 1].Key, pes.SegmentsCount),
461UriTemplate[] a = new UriTemplate[pes.Items.Count];
463foreach (KeyValuePair<UriTemplate, object> kvp in pes.Items)
483if (node.endOfPath.Items.Count > 0)
485return node.endOfPath.Items[0].Key;
487if (node.finalVariableSegment.Items.Count > 0)
489return node.finalVariableSegment.Items[0].Key;
491if (node.star.Items.Count > 0)
493return node.star.Items[0].Key;
499Fx.Assert(pes.Items.Count > 0, "Otherwise, why creating the dictionary?");
500return pes.Items[0].Key;
505Fx.Assert(pes.Items.Count > 0, "Otherwise, why creating the collection?");
506return pes.Items[0].Key;
554pes.Items.Add(kvp);
561this.finalLiteralSegment[lps].Items.Add(kvp);
570pes.Items.Add(kvp);