37 references to Expression
Microsoft.CodeAnalysis.CSharp (12)
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)
492if (node.Expression != null) 497gotoCaseExpressionOpt = gotoBinder.BindValue(node.Expression, diagnostics, BindValueKind.RValue);
Syntax.xml.Main.Generated.cs (1)
1867=> node.Update(VisitList(node.AttributeLists), VisitToken(node.GotoKeyword), VisitToken(node.CaseOrDefaultKeyword), (ExpressionSyntax?)Visit(node.Expression), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (5)
7090if (attributeLists != this.AttributeLists || gotoKeyword != this.GotoKeyword || caseOrDefaultKeyword != this.CaseOrDefaultKeyword || expression != this.Expression || semicolonToken != this.SemicolonToken) 7101public new GotoStatementSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7102public GotoStatementSyntax WithGotoKeyword(SyntaxToken gotoKeyword) => Update(this.AttributeLists, gotoKeyword, this.CaseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7103public GotoStatementSyntax WithCaseOrDefaultKeyword(SyntaxToken caseOrDefaultKeyword) => Update(this.AttributeLists, this.GotoKeyword, caseOrDefaultKeyword, this.Expression, this.SemicolonToken); 7105public GotoStatementSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.GotoKeyword, this.CaseOrDefaultKeyword, this.Expression, semicolonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
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.Semantic.UnitTests (1)
Semantics\ScriptSemanticsTests.cs (1)
525var symbol1 = model.GetSymbolInfo(((GotoStatementSyntax)statements[1]).Expression).Symbol;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\SemanticModelAPITests.cs (2)
335var symbol1 = model1.GetSymbolInfo(statement.Expression).Symbol; 336var symbol2 = model2.GetSymbolInfo(statement.Expression).Symbol;
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
3712var symbol = model.GetSemanticInfoSummary(gotoStatement.Expression).Symbol;
DocumentationComments\DocumentationCommentIDTests.cs (1)
144var syntax = tree.GetCompilationUnitRoot().DescendantNodes().OfType<GotoStatementSyntax>().Single().Expression;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (7)
Generated\Syntax.Test.xml.Generated.cs (2)
12534Assert.Null(node.Expression); 12536var newNode = node.WithAttributeLists(node.AttributeLists).WithGotoKeyword(node.GotoKeyword).WithCaseOrDefaultKeyword(node.CaseOrDefaultKeyword).WithExpression(node.Expression).WithSemicolonToken(node.SemicolonToken);
Parsing\StatementParsingTests.cs (5)
1040Assert.NotNull(gs.Expression); 1041Assert.Equal("label", gs.Expression.ToString()); 1064Assert.NotNull(gs.Expression); 1065Assert.Equal("label", gs.Expression.ToString()); 1088Assert.Null(gs.Expression);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
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\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 &&