コード例 #1
0
 public static Doc Print(RelationalPatternSyntax node)
 {
     return(Doc.Concat(
                Token.PrintWithSuffix(node.OperatorToken, " "),
                Node.Print(node.Expression)
                ));
 }
コード例 #2
0
 private Doc PrintRelationalPatternSyntax(RelationalPatternSyntax node)
 {
     return(Concat(
                this.PrintSyntaxToken(node.OperatorToken),
                " ",
                this.Print(node.Expression)
                ));
 }
コード例 #3
0
    /// <inheritdoc/>
    public override SyntaxNode?VisitRelationalPattern(RelationalPatternSyntax node)
    {
        Diagnostics.Add(RelationalPattern, node);

        return(base.VisitRelationalPattern(node));
    }
コード例 #4
0
 public RelationalPattern(Context cx, RelationalPatternSyntax syntax, IExpressionParentEntity parent, int child) :
     base(new ExpressionInfo(cx, null, cx.CreateLocation(syntax.GetLocation()), GetKind(syntax.OperatorToken), parent, child, false, null))
 {
     Expression.Create(cx, syntax.Expression, this, 0);
 }
コード例 #5
0
 public override void VisitRelationalPattern(RelationalPatternSyntax node)
 {
     Log(node, "Unsupported Syntax !");
 }
コード例 #6
0
        /// <inheritdoc/>
        public override SyntaxNode?VisitRelationalPattern(RelationalPatternSyntax node)
        {
            Context.ReportDiagnostic(RelationalPattern, node);

            return(base.VisitRelationalPattern(node));
        }