Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
            // - 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);
            }