16 instantiations of VisitResult
Microsoft.CodeAnalysis.CSharp (16)
FlowAnalysis\NullableWalker.cs (16)
148return new VisitResult(RValueType, lvalueType, NestedVisitResults); 151return new VisitResult(RValueType, lvalueType, StateForLambda); 337SetResult(expression, new VisitResult(resultType, lvalueType), updateAnalyzedNullability, isLvalue); 357SetAnalyzedNullability(expression, new VisitResult(resultType, lvalueType), isLvalue); 3579SetAnalyzedNullability(node.DeclaredTypeOpt, new VisitResult(type.ToTypeWithState(), type), true); 4225var result = new VisitResult(objectInitializer.Type, NullableAnnotation.NotAnnotated, NullableFlowState.NotNull); 4414SetAnalyzedNullability(node.ImplicitReceiverOpt, new VisitResult(node.ImplicitReceiverOpt.Type, NullableAnnotation.NotAnnotated, NullableFlowState.NotNull)); 4451new VisitResult( 4478SetResult(node, new VisitResult(resultType, lvalueType, stateForLambda), updateAnalyzedNullability: true, isLvalue: null); 7611SetAnalyzedNullability(discard, new VisitResult(parameterWithState, parameterWithState.ToTypeWithAnnotations(compilation)), isLvalue: true); 9554var visitResult = new VisitResult(resultType, resultType.ToTypeWithAnnotations(compilation)); 11029SetAnalyzedNullability(collectionExpression, new VisitResult(convertedResult, convertedResult.ToTypeWithAnnotations(compilation))); 11093var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.ReturnTypeWithAnnotations); 11108var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.ReturnTypeWithAnnotations); 11206SetAnalyzedNullability(node.IterationVariableType, new VisitResult(resultForType, destinationType), isLvalue: true); 11905new VisitResult(result, result.ToTypeWithAnnotations(compilation)),
67 references to VisitResult
Microsoft.CodeAnalysis.CSharp (67)
FlowAnalysis\NullableWalker.cs (67)
109public readonly VisitResult[]? NestedVisitResults; 137public VisitResult(TypeWithState rValueType, TypeWithAnnotations lValueType, VisitResult[] nestedVisitResults) 143internal VisitResult WithLValueType(TypeWithAnnotations lvalueType) 233private PooledDictionary<BoundValuePlaceholderBase, (BoundExpression? Replacement, VisitResult Result)>? _resultForPlaceholdersOpt; 247/// The delegate is invoked by <see cref="VisitConversion(BoundConversion, BoundExpression, Conversion, TypeWithAnnotations, TypeWithState, bool, bool, bool, AssignmentKind, ParameterSymbol, bool, bool, bool, bool, Optional&lt;LocalState&gt;,bool, Location, ArrayBuilder&lt;VisitResult&gt;)"/>. 278private VisitResult _visitResult; 286private VisitResult _currentConditionalReceiverVisitResult; 311VisitResult visitResult = _visitResult.WithLValueType(ResultType.ToTypeWithAnnotations(compilation)); 340private void SetResult(BoundExpression? expression, VisitResult visitResult, bool updateAnalyzedNullability, bool? isLvalue) 363private void SetAnalyzedNullability(BoundExpression? expr, VisitResult result, bool? isLvalue = null) 536private void AddPlaceholderReplacement(BoundValuePlaceholderBase placeholder, BoundExpression? expression, VisitResult result) 543_resultForPlaceholdersOpt ??= PooledDictionary<BoundValuePlaceholderBase, (BoundExpression? Replacement, VisitResult Result)>.GetInstance(); 3755var resultBuilder = ArrayBuilder<VisitResult>.GetInstance(node.Elements.Length); 3776var itemResult = spread.EnumeratorInfoOpt == null ? default : _visitResult; 3821var visitResult = new VisitResult(TypeWithState.Create(resultType), resultType, 3921(_, ImmutableArray<VisitResult> argumentResults, _, ArgumentsCompletionDelegate? argumentsCompletion) = 3945ImmutableArray<VisitResult> argumentResults, 3974ImmutableArray<VisitResult> argumentResults, 4014ImmutableArray<BoundExpression> arguments, ImmutableArray<VisitResult> argumentResults, 4085ImmutableArray<VisitResult> argumentResults) 4175ImmutableArray<VisitResult> argumentResults = default; 4211ImmutableArray<VisitResult> argumentResults, 4225var result = new VisitResult(objectInitializer.Type, NullableAnnotation.NotAnnotated, NullableFlowState.NotNull); 4233ImmutableArray<VisitResult> argumentResults, 4364ImmutableArray<VisitResult> argumentResults = default; 4387VisitResult receiverResult = argumentResults[0]; 4399ImmutableArray<VisitResult> argumentResults, 4424ImmutableArray<VisitResult> argumentResults, 4437static MethodSymbol addMethodAsMemberOfContainingType(BoundCollectionElementInitializer node, TypeSymbol containingType, ref ImmutableArray<VisitResult> argumentResults) 4445VisitResult receiverResult = argumentResults[0]; 4449var builder = ArrayBuilder<VisitResult>.GetInstance(argumentResults.Length); 6257VisitResult? extensionReceiverResult = null; 6336void reinferMethodAndVisitArguments(BoundCall node, TypeWithState receiverType, VisitResult? firstArgumentResult = null) 6346ImmutableArray<VisitResult> results; 6366private void LearnFromEqualsMethod(MethodSymbol method, BoundCall node, TypeWithState receiverType, ImmutableArray<VisitResult> results) 6545public readonly ImmutableArray<VisitResult> Results; 6548public CompareExchangeInfo(ImmutableArray<BoundExpression> arguments, ImmutableArray<VisitResult> results, ImmutableArray<int> argsToParamsOpt) 6775private (MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull) VisitArguments( 6788private ImmutableArray<VisitResult> VisitArguments( 6803private (MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull) VisitArguments( 6813VisitResult? firstArgumentResult = null) 6821private delegate (MethodSymbol? method, bool returnNotNull) ArgumentsCompletionDelegate(ImmutableArray<VisitResult> argumentResults, ImmutableArray<ParameterSymbol> parametersOpt, MethodSymbol? method); 6823private (MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull, ArgumentsCompletionDelegate? completion) 6835VisitResult? firstArgumentResult = null) 6854ImmutableArray<VisitResult> results = VisitArgumentsEvaluate(argumentsNoConversions, refKindsOpt, GetParametersAnnotations(arguments, parametersOpt, argsToParamsOpt, expanded), defaultArguments, firstArgumentResult: firstArgumentResult); 6861(MethodSymbol? method, ImmutableArray<VisitResult> results, bool returnNotNull, ArgumentsCompletionDelegate? completion) 6867ImmutableArray<VisitResult> results, 6910var conversionResultsBuilder = ArrayBuilder<VisitResult>.GetInstance(results.Length); 7018var result = results[i]; 7044return (ImmutableArray<VisitResult> results, ImmutableArray<ParameterSymbol> parametersOpt, MethodSymbol? method) => 7277private ImmutableArray<VisitResult> VisitArgumentsEvaluate( 7282VisitResult? firstArgumentResult = null) 7288return ImmutableArray<VisitResult>.Empty; 7291var resultsBuilder = ArrayBuilder<VisitResult>.GetInstance(n); 7340private VisitResult VisitArgumentEvaluate(BoundExpression argument, RefKind refKind, FlowAnalysisAnnotations annotations) 7352private VisitResult VisitArgumentEvaluateEpilogue(BoundExpression argument, RefKind refKind, FlowAnalysisAnnotations annotations) 7411VisitResult result, 7412ArrayBuilder<VisitResult>? conversionResultsBuilder, 7548VisitResult result, 7987private ImmutableArray<BoundExpression> GetArgumentsForMethodTypeInference(ImmutableArray<VisitResult> argumentResults, ImmutableArray<BoundExpression> arguments) 7998var visitArgumentResult = argumentResults[i]; 8003BoundExpression getArgumentForMethodTypeInference(BoundExpression argument, VisitResult visitResult) 8853ArrayBuilder<VisitResult>? previousArgumentConversionResults = null) 9554var visitResult = new VisitResult(resultType, resultType.ToTypeWithAnnotations(compilation)); 10772var receiverResult = _visitResult; 11093var result = new VisitResult(GetReturnTypeWithState(moveNextAsyncMethod), moveNextAsyncMethod.ReturnTypeWithAnnotations); 11108var result = new VisitResult(GetReturnTypeWithState(disposeAsyncMethod), disposeAsyncMethod.ReturnTypeWithAnnotations);