public GlowContainer Visit(GlowQualifiedParameter glow, object state) { var newPath = PrependPathWithEndPointNumber(glow.Path); var newQualified = new GlowQualifiedParameter(newPath); foreach (var ember in glow) { if (ember.Tag != GlowTags.QualifiedParameter.Path) { newQualified.Insert(ember); } } return(newQualified); }
// - handle Qualified..., stripping first number in path public IEnumerable <GlowContainer> Visit(GlowQualifiedParameter glow, object state) { EndPointNumber = glow.Path[0]; var newPath = glow.Path.Skip(1).ToArray(); var newQualified = new GlowQualifiedParameter(newPath); foreach (var ember in glow) { if (ember.Tag != GlowTags.QualifiedParameter.Path) { newQualified.Insert(ember); } } yield return(newQualified); }