25 references to Expression
Microsoft.CodeAnalysis.CSharp (12)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1879=> node.Update(VisitList(node.AttributeLists), VisitToken(node.GotoKeyword), VisitToken(node.CaseOrDefaultKeyword), (ExpressionSyntax?)Visit(node.Expression), VisitToken(node.SemicolonToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (5)
7136if (attributeLists != this.AttributeLists || gotoKeyword != this.GotoKeyword || caseOrDefaultKeyword != this.CaseOrDefaultKeyword || expression != this.Expression || semicolonToken != this.SemicolonToken) 7147public new GotoStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7148public GotoStatementSyntax WithGotoKeyword(SyntaxToken gotoKeyword) => Update(this.AttributeLists, gotoKeyword, this.CaseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7149public GotoStatementSyntax WithCaseOrDefaultKeyword(SyntaxToken caseOrDefaultKeyword) => Update(this.AttributeLists, this.GotoKeyword, caseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7151public GotoStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, semicolonToken);
Binder\Binder_Statements.cs (3)
515var expression = BindLabel(node.Expression, diagnostics); 536if (node.Expression != null) 538var value = BindRValueWithoutTargetType(node.Expression, BindingDiagnosticBag.Discarded);
Binder\ExpressionVariableFinder.cs (1)
100Visit(node.Expression);
Binder\SwitchBinder.cs (2)
514if (node.Expression != null) 519gotoCaseExpressionOpt = gotoBinder.BindValue(node.Expression, diagnostics, BindValueKind.RValue);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
2150if (gotoStatement.Expression != null && 2151!gotoStatement.Expression.IsMissing && 2152gotoStatement.Expression is IdentifierNameSyntax && 2153((IdentifierNameSyntax)gotoStatement.Expression).Identifier == token &&
Microsoft.CodeAnalysis.CSharp.Features (1)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
73gotoStatement is { Expression.IsMissing: true })
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
2150if (gotoStatement.Expression != null && 2151!gotoStatement.Expression.IsMissing && 2152gotoStatement.Expression is IdentifierNameSyntax && 2153((IdentifierNameSyntax)gotoStatement.Expression).Identifier == token &&
Roslyn.Diagnostics.CSharp.Analyzers (4)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (4)
2150if (gotoStatement.Expression != null && 2151!gotoStatement.Expression.IsMissing && 2152gotoStatement.Expression is IdentifierNameSyntax && 2153((IdentifierNameSyntax)gotoStatement.Expression).Identifier == token &&