1 write to _castExpressionNode
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (1)
27
_castExpressionNode
= castExpressionNode
13 references to _castExpressionNode
Microsoft.CodeAnalysis.VisualBasic.Workspaces (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (13)
34
If
_castExpressionNode
.WalkDownParentheses().IsKind(SyntaxKind.NothingLiteralExpression) Then
179
Dim innerExpression =
_castExpressionNode
.WalkDownParentheses()
186
Dim speculationAnalyzer = New SpeculationAnalyzer(_castNode,
_castExpressionNode
, _semanticModel, _cancellationToken,
208
If
_castExpressionNode
.Kind = SyntaxKind.CollectionInitializer Then
210
castExpressionType = _semanticModel.GetSpeculativeTypeInfo(
_castExpressionNode
.SpanStart,
_castExpressionNode
, SpeculativeBindingOption.BindAsExpression).ConvertedType
212
castExpressionType = _semanticModel.GetTypeInfo(
_castExpressionNode
, _cancellationToken).Type
236
Dim expressionToCastType = _semanticModel.ClassifyConversion(_castNode.SpanStart,
_castExpressionNode
, castType)
260
expressionToOuterType = _semanticModel.ClassifyConversion(
_castExpressionNode
.WalkDownParentheses(), speculatedExpressionOuterType)
267
expressionToOuterType = _semanticModel.ClassifyConversion(
_castExpressionNode
.WalkDownParentheses(), speculatedExpressionOuterType)
274
expressionToOuterType = _semanticModel.ClassifyConversion(_castNode.SpanStart,
_castExpressionNode
, outerType)
290
(
_castExpressionNode
.Kind = SyntaxKind.CollectionInitializer AndAlso expressionToOuterType.IsWidening AndAlso speculatedExpressionOuterType.IsArrayType())) AndAlso
312
Return Not speculationAnalyzer.ReplacementChangesSemanticsOfUnchangedLambda(
_castExpressionNode
, speculationAnalyzer.ReplacedExpression)