public void VisitParent(ParentSegment node, GlobVisitorContext context) { // Back up one level. var last = context.Pop(); node.Next.Accept(this, context); // Push the segment back so pop/push // count remains balanced. context.Push(last); }
public FluentModelParentRefMemberVariable(ParentSegment parentSegment) : base(variableName: parentSegment.Parameter.Name, fromParameter: parentSegment.Parameter) { this.ParentRefName = parentSegment.Name; this.IndexOfUriSegment = parentSegment.Position; }