示例#1
0
        protected virtual SyntaxBase ReplaceBooleanLiteralSyntax(BooleanLiteralSyntax syntax)
        {
            var hasChanges = TryRewriteStrict(syntax.Literal, out var literal);

            if (!hasChanges)
            {
                return(syntax);
            }

            return(new BooleanLiteralSyntax(literal, bool.Parse(literal.Text)));
        }
示例#2
0
 void ISyntaxVisitor.VisitBooleanLiteralSyntax(BooleanLiteralSyntax syntax) => ReplaceCurrent(syntax, ReplaceBooleanLiteralSyntax);
示例#3
0
 public virtual void VisitBooleanLiteralSyntax(BooleanLiteralSyntax syntax)
 {
     this.Visit(syntax.Literal);
 }