29 references to Expression
Microsoft.CodeAnalysis.CSharp (13)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1912
=> node.Update(VisitList(node.AttributeLists), VisitToken(node.AwaitKeyword), VisitToken(node.UsingKeyword), VisitToken(node.OpenParenToken), (VariableDeclarationSyntax?)Visit(node.Declaration), (ExpressionSyntax?)Visit(node.
Expression
), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
_generated\2\Syntax.xml.Syntax.Generated.cs (8)
8038
if (attributeLists != this.AttributeLists || awaitKeyword != this.AwaitKeyword || usingKeyword != this.UsingKeyword || openParenToken != this.OpenParenToken || declaration != this.Declaration || expression != this.
Expression
|| closeParenToken != this.CloseParenToken || statement != this.Statement)
8049
public new UsingStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.AwaitKeyword, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.
Expression
, this.CloseParenToken, this.Statement);
8050
public UsingStatementSyntax WithAwaitKeyword(SyntaxToken awaitKeyword) => Update(this.AttributeLists, awaitKeyword, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.
Expression
, this.CloseParenToken, this.Statement);
8051
public UsingStatementSyntax WithUsingKeyword(SyntaxToken usingKeyword) => Update(this.AttributeLists, this.AwaitKeyword, usingKeyword, this.OpenParenToken, this.Declaration, this.
Expression
, this.CloseParenToken, this.Statement);
8052
public UsingStatementSyntax WithOpenParenToken(SyntaxToken openParenToken) => Update(this.AttributeLists, this.AwaitKeyword, this.UsingKeyword, openParenToken, this.Declaration, this.
Expression
, this.CloseParenToken, this.Statement);
8053
public UsingStatementSyntax WithDeclaration(VariableDeclarationSyntax? declaration) => Update(this.AttributeLists, this.AwaitKeyword, this.UsingKeyword, this.OpenParenToken, declaration, this.
Expression
, this.CloseParenToken, this.Statement);
8055
public UsingStatementSyntax WithCloseParenToken(SyntaxToken closeParenToken) => Update(this.AttributeLists, this.AwaitKeyword, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.
Expression
, closeParenToken, this.Statement);
8056
public UsingStatementSyntax WithStatement(StatementSyntax statement) => Update(this.AttributeLists, this.AwaitKeyword, this.UsingKeyword, this.OpenParenToken, this.Declaration, this.
Expression
, this.CloseParenToken, statement);
Binder\LocalBinderFactory.cs (1)
552
ExpressionSyntax expressionSyntax = node.
Expression
;
Binder\UsingStatementBinder.cs (1)
72
return _syntax.
Expression
;
Syntax\SyntaxBindingUtilities.cs (2)
18
or UsingStatementSyntax {
Expression
: not null, AwaitKeyword.RawKind: not 0 };
22
or UsingStatementSyntax {
Expression
: not null }
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
178
(nodeParent is UsingStatementSyntax usingStatement && usingStatement.
Expression
== node) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
119
expression = usingStatement is { Declaration.Variables: [{ Initializer.Value: { } value }] } ? value : usingStatement.
Expression
;
Microsoft.CodeAnalysis.CSharp.Features (10)
Debugging\CSharpProximityExpressionsService.RelevantExpressionsCollector.cs (1)
81
AddExpressionTerms(node.
Expression
, _expressions);
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (3)
869
(SyntaxNode?)oldNode.Declaration ?? oldNode.
Expression
!,
870
(SyntaxNode?)newNode.Declaration ?? newNode.
Expression
!);
3046
getTypedNodes: static n => OneOrMany.Create<SyntaxNode>(n.
Expression
!),
EditAndContinue\SyntaxComparer.cs (2)
822
(SyntaxNode?)leftUsing.
Expression
?? leftUsing.Declaration!,
824
(SyntaxNode?)rightUsing.
Expression
?? rightUsing.Declaration!,
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
208
.WithExpression(VisitNode(node.
Expression
))
Snippets\CSharpUsingSnippetProvider.cs (1)
31
var expression = node.
Expression
!;
src\roslyn\src\Compilers\CSharp\Portable\Syntax\SyntaxBindingUtilities.cs (2)
18
or UsingStatementSyntax {
Expression
: not null, AwaitKeyword.RawKind: not 0 };
22
or UsingStatementSyntax {
Expression
: not null }
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
178
(nodeParent is UsingStatementSyntax usingStatement && usingStatement.
Expression
== node) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
119
expression = usingStatement is { Declaration.Variables: [{ Initializer.Value: { } value }] } ? value : usingStatement.
Expression
;
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
178
(nodeParent is UsingStatementSyntax usingStatement && usingStatement.
Expression
== node) ||
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsService.cs (1)
119
expression = usingStatement is { Declaration.Variables: [{ Initializer.Value: { } value }] } ? value : usingStatement.
Expression
;