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