Exemple #1
0
 private static ExpressionSyntax MakeDebuggerExpression(
     this InternalSyntax.ExpressionSyntax expression,
     SourceText text
     )
 {
     var syntaxTree = InternalSyntax.SyntaxFactory
                      .ExpressionStatement(
         attributeLists: default,
Exemple #2
0
        private static ExpressionSyntax MakeDebuggerExpression(this InternalSyntax.ExpressionSyntax expression, SourceText text)
        {
            var syntaxTree = InternalSyntax.SyntaxFactory.ExpressionStatement(expression, InternalSyntax.SyntaxFactory.Token(SyntaxKind.SemicolonToken)).CreateSyntaxTree(text);

            return(((ExpressionStatementSyntax)syntaxTree.GetRoot()).Expression);
        }
 private static ExpressionSyntax MakeDebuggerExpression(this InternalSyntax.ExpressionSyntax expression, SourceText text)
 {
     var syntaxTree = InternalSyntax.SyntaxFactory.ExpressionStatement(attributeLists: default, expression, InternalSyntax.SyntaxFactory.Token(SyntaxKind.SemicolonToken)).CreateSyntaxTree(text);