41 references to SetFrom
Microsoft.CodeAnalysis.VisualBasic (32)
Binding\Binder_Attributes.vb (1)
226lookupResult.SetFrom(SingleLookupResult.NotAnAttributeType(symbol, diagInfo))
Binding\Binder_Lambda.vb (1)
1128lookupResult.SetFrom(SingleLookupResult.EmptyAndStopLookup)
Binding\Binder_Lookup.vb (2)
1184lookupResult.SetFrom(SingleLookupResult.Empty) 1579lookupResult.SetFrom(New SingleLookupResult(LookupResultKind.Ambiguous, symbols.First, ambiguityDiagnostics))
Binding\Binder_Symbols.vb (5)
580lookupResult.SetFrom(LookupGlobalName(DirectCast(typeSyntax, GlobalNameSyntax), binder)) 583lookupResult.SetFrom(LookupPredefinedTypeName(DirectCast(typeSyntax, PredefinedTypeSyntax), binder, diagBag, reportedAnError, suppressUseSiteError)) 586lookupResult.SetFrom(LookupArrayType(DirectCast(typeSyntax, ArrayTypeSyntax), binder, diagBag, suppressUseSiteError, inGetTypeContext:=inGetTypeContext)) 589lookupResult.SetFrom(LookupNullableType(DirectCast(typeSyntax, NullableTypeSyntax), binder, diagBag, suppressUseSiteError)) 906lookupResult.SetFrom(SingleLookupResult.WrongArity(lookupResult.SingleSymbol,
Binding\BlockBaseBinder.vb (2)
74lookupResult.SetFrom(CheckViability(localSymbol, arity, options, Nothing, useSiteInfo)) 80lookupResult.SetFrom(CheckViability(localSymbol, arity, options, Nothing, useSiteInfo))
Binding\DocumentationCommentCrefBinder_TypeParameters.vb (1)
35lookupResult.SetFrom(CheckViability(typeParameter,
Binding\DocumentationCommentParamBinder.vb (1)
103lookupResult.SetFrom(CheckViability(parameter, arity, options, Nothing, useSiteInfo))
Binding\DocumentationCommentTypeParamBinder.vb (1)
87lookupResult.SetFrom(CheckViability(typeParameter, arity, options, Nothing, useSiteInfo))
Binding\ExecutableCodeBinder.vb (2)
130lookupResult.SetFrom(SingleLookupResult.Good(labels.Single())) 146lookupResult.SetFrom(SingleLookupResult.Good(bestSymbol))
Binding\ImplicitVariableBinder.vb (1)
220lookupResult.SetFrom(CheckViability(localSymbol, arity, options, Nothing, useSiteInfo))
Binding\ImportAliasesBinder.vb (1)
65lookupResult.SetFrom(res) ' -1 for arity: don't check arity.
Binding\LookupResult.vb (11)
407SetFrom(SingleLookupResult.Good(s)) 427SetFrom(SingleLookupResult.Good(syms(0))) 446SetFrom(other) 500SetFrom(other) 542SetFrom(other) 613SetFrom(other) 634SetFrom(other) 641SetFrom(other) 679SetFrom(other) 720SetFrom(other) 860SetFrom(other)
Binding\MethodTypeParametersBinder.vb (1)
52lookupResult.SetFrom(CheckViability(tp, arity, options, Nothing, useSiteInfo))
Binding\NamedTypeBinder.vb (1)
143lookupResult.SetFrom(originalBinder.CheckViability(tp, arity, options, Nothing, useSiteInfo))
Binding\SubOrFunctionBodyBinder.vb (1)
73lookupResult.SetFrom(CheckViability(parameterSymbol, arity, options, Nothing, useSiteInfo))
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
Binders\ParametersAndLocalsBinder.vb (1)
91lookupResult.SetFrom(CheckViability(symbol, arity, options, Nothing, useSiteInfo))
Binders\PlaceholderLocalBinder.vb (1)
56result.SetFrom(CheckViability(local, arity, options, Nothing, useSiteInfo))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Binding\LookupTests.vb (7)
42r1.SetFrom(SingleLookupResult.Empty) 50_r2.SetFrom(r2) 58r3.SetFrom(SingleLookupResult.Ambiguous(ImmutableArray.Create(Of Symbol)(sym1, sym2, sym3), AddressOf GenerateAmbiguity)) 70r4.SetFrom(SingleLookupResult.Inaccessible(sym2, New BadSymbolDiagnostic(sym2, ERRID.ERR_InaccessibleSymbol2, sym2))) 81r5.SetFrom(SingleLookupResult.WrongArity(sym3, ERRID.ERR_IndexedNotArrayOrProc)) 108r8.SetFrom(SingleLookupResult.Good(sym4)) 110r9.SetFrom(r2)