1 write to node
System.ServiceModel (1)
System\UriTemplateTrieLocation.cs (1)
13
this.
node
= n;
54 references to node
System.ServiceModel (54)
System\UriTemplateTrieNode.cs (54)
153
int initialDepth = location.
node
.depth;
183
} while ((location != null) && (location.
node
.depth >= initialDepth));
196
if (wireUriSegments.Length <= currentLocation.
node
.depth)
201
if (currentLocation.
node
.endOfPath.Items.Count != 0)
204
success = currentLocation.
node
.endOfPath;
207
else if (currentLocation.
node
.star.Items.Count != 0)
210
success = currentLocation.
node
.star;
215
nextStep = new SingleLocationOrLocationsSet(currentLocation.
node
.onFailure);
221
UriTemplateLiteralPathSegment curWireSeg = wireUriSegments[currentLocation.
node
.depth];
260
if (considerLiteral && currentLocation.
node
.nextLiteralSegment != null &&
261
currentLocation.
node
.nextLiteralSegment.ContainsKey(curWireSeg))
263
nextStep = new SingleLocationOrLocationsSet(currentLocation.
node
.nextLiteralSegment[curWireSeg]);
266
else if (considerCompound && currentLocation.
node
.nextCompoundSegment != null &&
267
AscendingSortedCompoundSegmentsCollection<UriTemplateTrieLocation>.Lookup(currentLocation.
node
.nextCompoundSegment, curWireSeg, out compoundLocationsSet))
272
else if (considerVariable && currentLocation.
node
.nextVariableSegment != null &&
275
nextStep = new SingleLocationOrLocationsSet(currentLocation.
node
.nextVariableSegment);
278
else if (considerStar && currentLocation.
node
.star.Items.Count != 0)
281
success = currentLocation.
node
.star;
286
nextStep = new SingleLocationOrLocationsSet(currentLocation.
node
.onFailure);
296
if (considerLiteral && currentLocation.
node
.finalLiteralSegment != null &&
297
currentLocation.
node
.finalLiteralSegment.ContainsKey(curWireSeg))
300
success = currentLocation.
node
.finalLiteralSegment[curWireSeg];
303
else if (considerCompound && currentLocation.
node
.finalCompoundSegment != null &&
304
AscendingSortedCompoundSegmentsCollection<UriTemplatePathPartiallyEquivalentSet>.Lookup(currentLocation.
node
.finalCompoundSegment, curWireSeg, out compoundPathEquivalentSets))
316
success = new UriTemplatePathPartiallyEquivalentSet(currentLocation.
node
.depth + 1);
324
else if (considerVariable && currentLocation.
node
.finalVariableSegment.Items.Count != 0)
327
success = currentLocation.
node
.finalVariableSegment;
330
else if (considerStar && currentLocation.
node
.star.Items.Count != 0)
333
success = currentLocation.
node
.star;
338
nextStep = new SingleLocationOrLocationsSet(currentLocation.
node
.onFailure);
352
return locationsSet[0][0].
node
.onFailure;
398
Fx.Assert(kvp.Value.
node
.depth == current.depth + 1, "kvp.Value.node.depth == current.depth + 1");
399
Fx.Assert(kvp.Value.
node
.onFailure.
node
== current, "back pointer should point back to here");
400
Fx.Assert(kvp.Value.
node
.onFailure.locationWithin == UriTemplateTrieIntraNodeLocation.AfterLiteral, "back-pointer should be AfterLiteral");
401
nodesQueue.Enqueue(kvp.Value.
node
);
413
UriTemplate firstTemplate = FindAnyUriTemplate(locations[i][0].
node
);
414
UriTemplate secondTemplate = FindAnyUriTemplate(locations[i][1].
node
);
422
Fx.Assert(location.
node
.depth == current.depth + 1, "kvp.Value.node.depth == current.depth + 1");
423
Fx.Assert(location.
node
.onFailure.
node
== current, "back pointer should point back to here");
424
Fx.Assert(location.
node
.onFailure.locationWithin == UriTemplateTrieIntraNodeLocation.AfterCompound, "back-pointer should be AfterCompound");
425
nodesQueue.Enqueue(location.
node
);
432
Fx.Assert(current.nextVariableSegment.
node
.depth == current.depth + 1, "current.nextVariableSegment.node.depth == current.depth + 1");
433
Fx.Assert(current.nextVariableSegment.
node
.onFailure.
node
== current, "back pointer should point back to here");
434
Fx.Assert(current.nextVariableSegment.
node
.onFailure.locationWithin == UriTemplateTrieIntraNodeLocation.AfterVariable, "back-pointer should be AfterVariable");
435
nodesQueue.Enqueue(current.nextVariableSegment.
node
);
513
node = location.
node
;
518
node = location.
node
;
522
node = node.nextVariableSegment.
node
;
589
return nextLocation.
node
;
596
return this.nextLiteralSegment[lps].
node
;
614
return this.nextVariableSegment.
node
;