1 write to Symbol
Microsoft.CodeAnalysis (1)
Compilation\PreprocessingSymbolInfo.cs (1)
27this.Symbol = symbol;
50 references to Symbol
Microsoft.CodeAnalysis (3)
Compilation\PreprocessingSymbolInfo.cs (3)
33return object.Equals(this.Symbol, other.Symbol) 44return Hash.Combine(this.IsDefined, Hash.Combine(this.Symbol, 0));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (43)
Compilation\GetSemanticInfoTests.cs (41)
4942Assert.Equal("X", symbolInfo.Symbol.Name); 4946Assert.Equal("Z", symbolInfo.Symbol.Name); 4950Assert.Equal("A", symbolInfo.Symbol.Name); 4954Assert.Equal("B", symbolInfo.Symbol.Name); 4957Assert.True(symbolInfo.Symbol.Equals(symbolInfo.Symbol)); 4958Assert.False(symbolInfo.Symbol.Equals(null)); 4960Assert.NotSame(symbolInfo.Symbol, symbolInfo2.Symbol); 4961Assert.Equal(symbolInfo.Symbol, symbolInfo2.Symbol); 4962Assert.Equal(symbolInfo.Symbol.GetHashCode(), symbolInfo2.Symbol.GetHashCode()); 4997Assert.Equal("X", symbolInfo.Symbol.Name); 5001Assert.Equal("x", symbolInfo.Symbol.Name); 5005Assert.Equal("Y", symbolInfo.Symbol.Name); 5009Assert.Equal("Z", symbolInfo.Symbol.Name); 5013Assert.Null(symbolInfo.Symbol); 5026Assert.Equal("Z", symbolInfo.Symbol.Name); 5040Assert.Equal("Z", symbolInfo.Symbol.Name); 5056Assert.Equal("Z", symbolInfo.Symbol.Name); 5072Assert.Equal("Z", symbolInfo.Symbol.Name); 5088Assert.Equal("Z", symbolInfo.Symbol.Name); 5104Assert.Equal("Z", symbolInfo.Symbol.Name); 5121Assert.Equal("Z", symbolInfo.Symbol.Name); 5138Assert.Equal("Z", symbolInfo.Symbol.Name); 5154Assert.Equal("Z", symbolInfo.Symbol.Name); 5170Assert.Equal("Z", symbolInfo.Symbol.Name); 5187Assert.Equal("Z", symbolInfo.Symbol.Name); 5204Assert.Equal("Z", symbolInfo.Symbol.Name); 5221Assert.Equal("Z", symbolInfo.Symbol.Name); 5237Assert.Equal("Z", symbolInfo.Symbol.Name); 5253Assert.Equal("Z", symbolInfo.Symbol.Name); 5269Assert.Equal("Z", symbolInfo.Symbol.Name); 5285Assert.Equal("Z", symbolInfo.Symbol.Name); 5302Assert.Equal("Z", symbolInfo.Symbol.Name); 5319Assert.Equal("Z", symbolInfo.Symbol.Name); 5336Assert.Equal("Z", symbolInfo.Symbol.Name); 5353Assert.Equal("Z", symbolInfo.Symbol.Name); 5370Assert.Equal("Z", symbolInfo.Symbol.Name); 5387Assert.Equal("Z", symbolInfo.Symbol.Name);
Compilation\SemanticModelAPITests.cs (1)
4760var preprocessingSymbol = model.GetPreprocessingSymbolInfo(identifier).Symbol;
SymbolDisplay\SymbolDisplayTests.cs (1)
8855var preprocessingSymbol = preprocessingSymbolInfo.Symbol;
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
265Dim preprocessingSymbol = semanticModel.GetPreprocessingSymbolInfo(node).Symbol
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (2)
80If preprocessingSymbolInfo.Symbol IsNot Nothing Then 81Dim name = preprocessingSymbolInfo.Symbol.Name
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SemanticFacts\VisualBasicSemanticFacts.vb (1)
265Dim preprocessingSymbol = semanticModel.GetPreprocessingSymbolInfo(node).Symbol