17 instantiations of VisitResult
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (17)
313_visitResult = new VisitResult(resultType, lvalueType); 322SetAnalyzedNullability(expression, new VisitResult(resultType, lvalueType), isLvalue); 3319SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 3764var result = new VisitResult(objectInitializer.Type, NullableAnnotation.NotAnnotated, NullableFlowState.NotNull); 3953SetAnalyzedNullability(node.ImplicitReceiverOpt, new VisitResult(node.ImplicitReceiverOpt.Type, NullableAnnotation.NotAnnotated, NullableFlowState.NotNull)); 3991new VisitResult( 4110SetAnalyzedNullability(currentDeclaration, new VisitResult(argumentType, property.TypeWithAnnotations)); 6756SetAnalyzedNullability(discard, new VisitResult(parameterWithState, parameterWithState.ToTypeWithAnnotations(compilation)), isLvalue: true); 8599var visitResult = new VisitResult(resultType, resultType.ToTypeWithAnnotations(compilation)); 8610new VisitResult(TypeWithState.Create(newType, visitResult.RValueType.State), 9338parameter, parameter.TypeWithAnnotations, GetParameterAnnotations(parameter), new VisitArgumentResult(new VisitResult(variable.Type.ToTypeWithState(), variable.Type), stateForLambda: default), 9352new VisitArgumentResult(new VisitResult(variable.Type.ToTypeWithState(), variable.Type), stateForLambda: default), 10069SetAnalyzedNullability(node.Expression, new VisitResult(convertedResult, convertedResult.ToTypeWithAnnotations(compilation))); 10116var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.ReturnTypeWithAnnotations); 10131var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.ReturnTypeWithAnnotations); 10227SetAnalyzedNullability(node.IterationVariableType, new VisitResult(resultForType, destinationType), isLvalue: true); 10928new VisitArgumentResult(new VisitResult(result, result.ToTypeWithAnnotations(compilation)), stateForLambda: default),
20 references to VisitResult
Microsoft.CodeAnalysis.CSharp (20)
FlowAnalysis\NullableWalker.cs (20)
129public readonly VisitResult VisitResult; 135public VisitArgumentResult(VisitResult visitResult, Optional<LocalState> stateForLambda) 210private PooledDictionary<BoundValuePlaceholderBase, (BoundExpression? Replacement, VisitResult Result)>? _resultForPlaceholdersOpt; 224/// The delegate is invoked by <see cref="VisitConversion(BoundConversion, BoundExpression, Conversion, TypeWithAnnotations, TypeWithState, bool, bool, bool, AssignmentKind, ParameterSymbol, bool, bool, bool, Optional&lt;LocalState&gt;,bool, Location, ArrayBuilder&lt;VisitResult&gt;)"/>. 255private VisitResult _visitResult; 263private VisitResult _currentConditionalReceiverVisitResult; 330private void SetAnalyzedNullability(BoundExpression? expr, VisitResult result, bool? isLvalue = null) 502private void AddPlaceholderReplacement(BoundValuePlaceholderBase placeholder, BoundExpression? expression, VisitResult result) 509_resultForPlaceholdersOpt ??= PooledDictionary<BoundValuePlaceholderBase, (BoundExpression? Replacement, VisitResult Result)>.GetInstance(); 3764var result = new VisitResult(objectInitializer.Type, NullableAnnotation.NotAnnotated, NullableFlowState.NotNull); 6229var conversionResultsBuilder = ArrayBuilder<VisitResult>.GetInstance(results.Length); 6557ArrayBuilder<VisitResult>? conversionResultsBuilder, 7924ArrayBuilder<VisitResult>? previousArgumentConversionResults = null) 8599var visitResult = new VisitResult(resultType, resultType.ToTypeWithAnnotations(compilation)); 8609static VisitResult withType(VisitResult visitResult, TypeSymbol newType) => 9842var receiverResult = _visitResult; 10116var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.ReturnTypeWithAnnotations); 10131var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.ReturnTypeWithAnnotations); 11166var result = value.Result;