39 references to Value
Microsoft.CodeAnalysis.CSharp (12)
Binder\ExpressionVariableFinder.cs (1)
160VisitNodeToBind(switchlabel.Value);
Binder\LocalBinderFactory.cs (1)
766Visit(switchLabel.Value, patternBinder);
Binder\SwitchBinder.cs (2)
211Debug.Assert(caseLabel.Value != null); 212var boundLabelExpression = sectionBinder.BindTypeOrRValue(caseLabel.Value, tempDiagnosticBag);
Binder\SwitchBinder_Patterns.cs (4)
116diagnostics.Add(ErrorCode.ERR_SwitchCaseSubsumed, p.Value.Location); 241caseLabelSyntax.Value, caseLabelSyntax.Value, SwitchGoverningType, hasErrors, diagnostics); 243reportIfConstantNamedUnderscore(pattern, caseLabelSyntax.Value);
Syntax.xml.Main.Generated.cs (1)
1930=> node.Update(VisitToken(node.Keyword), (ExpressionSyntax?)Visit(node.Value) ?? throw new ArgumentNullException("value"), VisitToken(node.ColonToken));
Syntax.xml.Syntax.Generated.cs (3)
8749if (keyword != this.Keyword || value != this.Value || colonToken != this.ColonToken) 8760public new CaseSwitchLabelSyntax WithKeyword(SyntaxToken keyword) => Update(keyword, this.Value, this.ColonToken); 8763public new CaseSwitchLabelSyntax WithColonToken(SyntaxToken colonToken) => Update(this.Keyword, this.Value, colonToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
477!ImplicitConversionsAreCompatible(originalSwitchLabel.Value, newSwitchLabel.Value))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
169return ConstantPattern(((CaseSwitchLabelSyntax)switchLabel).Value);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2135var result = GetTypes(firstCase.Value);
Microsoft.CodeAnalysis.CSharp.Features (2)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
499b => b.Value,
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.Rewriter.cs (1)
169return ConstantPattern(((CaseSwitchLabelSyntax)switchLabel).Value);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2785var constantVal = speculativeModel.GetConstantValue(switchLabel.Value);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (14)
Generated\Syntax.Test.xml.Generated.cs (2)
12838Assert.NotNull(node.Value); 12840var newNode = node.WithKeyword(node.Keyword).WithValue(node.Value).WithColonToken(node.ColonToken);
Parsing\StatementParsingTests.cs (12)
2166Assert.NotNull(caseLabelSyntax.Value); 2167Assert.Equal("b", caseLabelSyntax.Value.ToString()); 2202Assert.NotNull(caseLabelSyntax.Value); 2203Assert.Equal("b", caseLabelSyntax.Value.ToString()); 2213Assert.NotNull(caseLabelSyntax2.Value); 2214Assert.Equal("c", caseLabelSyntax2.Value.ToString()); 2282Assert.NotNull(caseLabelSyntax.Value); 2283Assert.Equal("b", caseLabelSyntax.Value.ToString()); 2288Assert.NotNull(caseLabelSyntax2.Value); 2289Assert.Equal("c", caseLabelSyntax2.Value.ToString()); 2324Assert.NotNull(caseLabelSyntax.Value); 2325Assert.Equal("b", caseLabelSyntax.Value.ToString());
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
477!ImplicitConversionsAreCompatible(originalSwitchLabel.Value, newSwitchLabel.Value))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2135var result = GetTypes(firstCase.Value);
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
477!ImplicitConversionsAreCompatible(originalSwitchLabel.Value, newSwitchLabel.Value))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
2135var result = GetTypes(firstCase.Value);