31 references to CastInfo
Microsoft.CodeAnalysis.CSharp (1)
Compilation\QueryClauseInfo.cs (1)
64return Hash.Combine(this.CastInfo.GetHashCode(), _operationInfo.GetHashCode());
Microsoft.CodeAnalysis.CSharp.CodeStyle (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
809if (TakesExpressionTree(info.CastInfo, expressionType) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
338var hasCastInfo = queryInfo.CastInfo.Symbol != null; 346return token.IsKind(SyntaxKind.InKeyword) ? queryInfo.CastInfo.GetBestOrAllSymbols() : queryInfo.OperationInfo.GetBestOrAllSymbols(); 350return queryInfo.CastInfo.GetBestOrAllSymbols();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
738return !SymbolInfosAreCompatible(originalClauseInfo.CastInfo, newClauseInfo.CastInfo) ||
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\QueryTests.cs (18)
1461Assert.Equal("Cast", info0.CastInfo.Symbol.Name); 1462Assert.NotEqual(MethodKind.ReducedExtension, ((IMethodSymbol)info0.CastInfo.Symbol).MethodKind); 1469Assert.Equal("Cast", info1.CastInfo.Symbol.Name); 1477Assert.Equal("Cast", info2.CastInfo.Symbol.Name); 1670Assert.Equal("Cast", info0.CastInfo.Symbol.Name); 1671Assert.Equal(MethodKind.ReducedExtension, ((IMethodSymbol)info0.CastInfo.Symbol).MethodKind); 1678Assert.Equal("Cast", info1.CastInfo.Symbol.Name); 1686Assert.Equal("Cast", info2.CastInfo.Symbol.Name); 1727Assert.Equal("Cast", info0.CastInfo.Symbol.Name); 1732Assert.Equal("Cast", info1.CastInfo.Symbol.Name); 1765Assert.Null(info0.CastInfo.Symbol); 1771Assert.Null(info1.CastInfo.Symbol); 2392Assert.Null(queryInfoForFrom1.CastInfo.Symbol); 2395Assert.Null(queryInfoForFrom2.CastInfo.Symbol); 2904Assert.Null(info0.CastInfo.Symbol); 2937Assert.Null(info0.CastInfo.Symbol); 3429Assert.Equal("Cast", info0.CastInfo.Symbol.Name); 3434Assert.Equal("Cast", info1.CastInfo.Symbol.Name);
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (1)
809if (TakesExpressionTree(info.CastInfo, expressionType) ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (3)
338var hasCastInfo = queryInfo.CastInfo.Symbol != null; 346return token.IsKind(SyntaxKind.InKeyword) ? queryInfo.CastInfo.GetBestOrAllSymbols() : queryInfo.OperationInfo.GetBestOrAllSymbols(); 350return queryInfo.CastInfo.GetBestOrAllSymbols();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
738return !SymbolInfosAreCompatible(originalClauseInfo.CastInfo, newClauseInfo.CastInfo) ||