Represents an expression that has been given a name as a prefix.
Inheritance: Expression
            protected override void WalkPrefixedExpression(PrefixedExpression prefixedExpression)
            {
                var success = this.currentNames.Add(prefixedExpression.Prefix.Name);
                this.currentNames.Add(prefixedExpression.Prefix.Name + "Start");
                this.currentNames.Add(prefixedExpression.Prefix.Name + "End");

                if (!success)
                {
                    var cursor = prefixedExpression.Prefix.Start;
                    this.result.AddCompilerError(cursor, () => Resources.PEG0007_ERROR_PrefixAlreadyDeclared, prefixedExpression.Prefix.Name);
                }

                base.WalkPrefixedExpression(prefixedExpression);
            }
 protected virtual void WalkPrefixedExpression(PrefixedExpression prefixedExpression)
 {
     this.WalkExpression(prefixedExpression.Expression);
 }
Example #3
0
 protected override void WalkPrefixedExpression(PrefixedExpression prefixedExpression)
 {
     base.WalkPrefixedExpression(prefixedExpression);
     this.Set(prefixedExpression, prefixedExpression.Expression);
 }
            protected override void WalkPrefixedExpression(PrefixedExpression prefixedExpression)
            {
                base.WalkPrefixedExpression(prefixedExpression);

                this.containsAssertions[prefixedExpression] = this.containsAssertions[prefixedExpression.Expression];
            }
Example #5
0
 protected override void WalkPrefixedExpression(PrefixedExpression prefixedExpression) => this.RenderPrefixedExpression(prefixedExpression, this.writer, this.currentIndentation);
            protected override void WalkPrefixedExpression(PrefixedExpression prefixedExpression)
            {
                base.WalkPrefixedExpression(prefixedExpression);

                this.zeroWidth[prefixedExpression] = this.zeroWidth[prefixedExpression.Expression];
            }