Binding\Binder_Conversions.vb (48)
73targetType As TypeSymbol,
180targetType As TypeSymbol,
301targetType As TypeSymbol,
314targetType As TypeSymbol,
377Dim intermediateTargetType As TypeSymbol
383Construct(ImmutableArray.Create(Of TypeSymbol)(targetType))
409Private Shared Function ApplyNullableIsTrueOperator(argument As BoundExpression, booleanType As TypeSymbol) As BoundNullableIsTrueOperator
422targetType As TypeSymbol,
573Dim errorTargetType As TypeSymbol
605Private _derivedArgument As TypeSymbol
606Private _baseArgument As TypeSymbol
608Public Sub [Set](parameter As TypeParameterSymbol, derived As TypeSymbol, base As TypeSymbol)
627Public ReadOnly Property DerivedArgument As TypeSymbol
633Public ReadOnly Property BaseArgument As TypeSymbol
654sourceType As TypeSymbol,
655targetType As TypeSymbol,
668sourceType As TypeSymbol,
669targetType As TypeSymbol,
711Dim sourceTypeArgument As TypeSymbol = Nothing
720Dim typeToCheck As TypeSymbol = sourceType
813Dim sourceArguments As ImmutableArray(Of TypeSymbol) = source.TypeArgumentsNoUseSiteDiagnostics
814Dim destinationArguments As ImmutableArray(Of TypeSymbol) = destination.TypeArgumentsNoUseSiteDiagnostics
818Dim sourceArg As TypeSymbol = sourceArguments(i)
819Dim destinationArg As TypeSymbol = destinationArguments(i)
974targetType As TypeSymbol,
1050sourceType As TypeSymbol,
1051targetType As TypeSymbol,
1080targetType As TypeSymbol,
1092Dim originalArgumentType As TypeSymbol = argument.Type
1093Dim inType As TypeSymbol = convKind.Value.Parameters(0).Type
1094Dim outType As TypeSymbol = convKind.Value.ReturnType
1185targetType As TypeSymbol,
1294targetType As TypeSymbol,
1496targetType As TypeSymbol,
1557Dim restrictedType As TypeSymbol = Nothing
1565Dim delegateReturnType As TypeSymbol = delegateInvoke.ReturnType
1568Dim restrictedType As TypeSymbol = Nothing
1604Private Function ReclassifyInterpolatedStringExpression(conversionSemantics As SyntaxKind, tree As SyntaxNode, convKind As ConversionKind, isExplicit As Boolean, node As BoundInterpolatedStringExpression, targetType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression
1620destination As TypeSymbol,
1650Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = targetType.GetElementTypesOfTupleOrCompatible()
1666If Not TypeSymbol.Equals(sourceTuple.Type, destination, TypeCompareKind.ConsiderEverything) AndAlso convKind <> Nothing Then
1689sourceType As TypeSymbol,
1690targetType As TypeSymbol,
1694Dim interfaceType As TypeSymbol = Nothing
1726Private Function IsIEnumerableOfXElement(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
1732sourceType As TypeSymbol,
1733targetType As TypeSymbol,
Binding\Binder_Expressions.vb (53)
267Protected Shared Function BadExpression(node As SyntaxNode, resultType As TypeSymbol) As BoundBadExpression
275Private Shared Function BadExpression(node As SyntaxNode, expr As BoundExpression, resultType As TypeSymbol) As BoundBadExpression
283Private Shared Function BadExpression(node As SyntaxNode, expr As BoundExpression, resultKind As LookupResultKind, resultType As TypeSymbol) As BoundBadExpression
291Private Shared Function BadExpression(node As SyntaxNode, exprs As ImmutableArray(Of BoundExpression), resultType As TypeSymbol) As BoundBadExpression
326Dim elementTypes = ArrayBuilder(Of TypeSymbol).GetInstance(arguments.Count)
508ByRef hasNaturalType As Boolean) As TypeSymbol
509Dim expressionType As TypeSymbol = expression.Type
587Dim [type] = TryCast(symbol, TypeSymbol)
668Dim typeSym As TypeSymbol = DirectCast(If(aliasSym IsNot Nothing, aliasSym.Target, typeOrAlias), TypeSymbol)
755Dim targetType = DirectCast(If(TryCast(targetSymbol, TypeSymbol), DirectCast(targetSymbol, AliasSymbol).Target), TypeSymbol)
757Dim resultType As TypeSymbol = GetSpecialType(SpecialType.System_Boolean, node, diagnostics)
946Dim resultType As TypeSymbol = access.Type
1045Dim type As TypeSymbol = typeExpr.Type
1186Private Shared Function GetTypeNotExpressionErrorId(type As TypeSymbol) As ERRID
1293Private Function GetAccessThroughType(receiverOpt As BoundExpression) As TypeSymbol
1468destination As TypeSymbol,
1506Dim targetElementType As TypeSymbol = Nothing
1611Private Function ReclassifyArrayInitialization(arrayInitialization As BoundArrayInitialization, elementType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundArrayInitialization
1916Dim dominantType As TypeSymbol
1982Dim dominantType As TypeSymbol
2123type As TypeSymbol,
2161Private Function GenerateDiagnosticsForDominantTypeInferenceInIfExpression(dominantType As TypeSymbol, numCandidates As Integer,
2694Dim leftType As TypeSymbol
2718If TypeSymbol.Equals(boundType.Type, leftType, TypeCompareKind.ConsiderEverything) Then
2771Dim leftTypeSymbol As TypeSymbol = left.Type
2831Dim type As TypeSymbol
2985Private Function GetLocalSymbolType(localSymbol As LocalSymbol, node As VisualBasicSyntaxNode, Optional diagnostics As BindingDiagnosticBag = Nothing) As TypeSymbol
2986Dim localType As TypeSymbol = Nothing
3229Dim localAccessType As TypeSymbol = GetLocalSymbolType(localSymbol, node, diagnostics)
3303Dim type As TypeSymbol = DirectCast(lookupResult.SingleSymbol, TypeSymbol)
3316Return New BoundTypeExpression(node, DirectCast(lookupResult.SingleSymbol, TypeSymbol), hasErrors:=hasError)
3336Return New BoundTypeExpression(node, Nothing, [alias], DirectCast(symbol, TypeSymbol), hasErrors:=hasError)
3486Dim memberType As TypeSymbol
3596Dim boundArguments(arguments.Count - 1) As TypeSymbol
3843Private Shared Sub VerifyTypeCharacterConsistency(nodeOrToken As SyntaxNodeOrToken, type As TypeSymbol, typeChar As TypeCharacter, diagnostics As BindingDiagnosticBag)
3861Private Shared Sub VerifyTypeCharacterConsistency(name As SimpleNameSyntax, type As TypeSymbol, diagnostics As BindingDiagnosticBag)
3933) As TypeSymbol
3934Dim commonType As TypeSymbol = Nothing
3943Dim expressionType As TypeSymbol = GetExpressionType(symbolReference, symbols(i), constantFieldsInProgress, discardedDiagnostics)
3977) As TypeSymbol
3994Dim type = TryCast(s, TypeSymbol)
4085Dim inferredElementType As TypeSymbol = Nothing
4174<Out> ByRef inferredElementType As TypeSymbol,
4208Dim arrayInitType As TypeSymbol
4227Dim elemType As TypeSymbol = If(type IsNot Nothing, type.ElementType, Nothing)
4426Dim type As TypeSymbol = Nothing
4454) As TypeSymbol
4499Dim expressionType As TypeSymbol = expression.Type
4558Dim dominantType As TypeSymbol
4895Dim resultType As TypeSymbol
Binding\Binder_Invocation.vb (22)
272Dim targetType As TypeSymbol = target.Type
541Dim controlVariableType As TypeSymbol = Nothing
1029targetType As TypeSymbol,
1197Optional overrideCommonReturnType As TypeSymbol = Nothing,
1228Optional overrideCommonReturnType As TypeSymbol = Nothing,
1238Dim commonReturnType As TypeSymbol = GetSetOfTheBestCandidates(results, bestCandidates, bestSymbols)
1271commonReturnType As TypeSymbol,
1346commonReturnType As TypeSymbol,
1452Dim typeArguments = If(mg.TypeArgumentsOpt IsNot Nothing, mg.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty)
1455typeArguments = ImmutableArray(Of TypeSymbol).Empty
1677) As TypeSymbol
1722Dim commonReturnType As TypeSymbol = Nothing
1779If Not TypeSymbol.Equals(bestSymbols(i).ContainingType, container, TypeCompareKind.ConsiderEverything) Then
2302Dim targetType As TypeSymbol = param.Type
2478targetType As TypeSymbol,
2547targetType As TypeSymbol,
2702Dim targetType As TypeSymbol = param.Type
2804targetType As TypeSymbol,
2826targetType As TypeSymbol,
2963targetType As TypeSymbol,
3211Dim defaultArgumentType As TypeSymbol = Nothing
3214Dim paramNullableUnderlyingTypeOrSelf As TypeSymbol = param.Type.GetNullableUnderlyingTypeOrSelf()
Binding\Binder_Lambda.vb (25)
39Dim returnType As TypeSymbol = Nothing
100Dim unboundType As TypeSymbol = unboundParam.Type
101Dim delegateType As TypeSymbol = targetSignature.ParameterTypes(i)
125Dim objectType As TypeSymbol = Nothing
129Dim unboundType As TypeSymbol = unboundParam.Type
157Dim targetReturnType As TypeSymbol
181If Not TypeSymbol.Equals(targetReturnType.OriginalDefinition, Compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T), TypeCompareKind.ConsiderEverything) Then
209Dim typeInfo As KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol)) = source.InferReturnType(targetForInference)
268Dim restrictedType As TypeSymbol = Nothing
284Dim restrictedType As TypeSymbol = Nothing
444Dim retType As TypeSymbol = lambdaSymbol.ReturnType
776Dim returnTypeInfo As KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))
778Dim returnType As TypeSymbol = returnTypeInfo.Key
790returnType As TypeSymbol,
820Dim commonReturnType As TypeSymbol = Nothing
821Dim commonParameterTypes(source.Parameters.Length - 1) As TypeSymbol
875Private Shared Sub BindLambdaForErrorRecoveryInferCommonType(ByRef result As TypeSymbol, candidate As TypeSymbol)
888) As KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))
895Return New KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))(LambdaSymbol.ReturnTypeIsUnknown, ImmutableBindingDiagnostic(Of AssemblySymbol).Empty)
907Return New KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))(LambdaSymbol.ReturnTypeIsUnknown, diagnostics.ToReadOnlyAndFree())
912Dim lambdaReturnType As TypeSymbol
947Dim restrictedType As TypeSymbol = Nothing
957Dim restrictedType As TypeSymbol = Nothing
1004Return New KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))(lambdaReturnType, diagnostics.ToReadOnlyAndFree())
Binding\Binder_Lookup.vb (42)
35container As TypeSymbol,
74container As TypeSymbol,
120accessThroughType As TypeSymbol,
279accessThroughType As TypeSymbol) As Boolean
344Lookup(lookupResult, DirectCast(container, TypeSymbol), name, arity, options, binder, tempResult, useSiteInfo)
358AddLookupSymbolsInfo(nameSet, DirectCast(container, TypeSymbol), options, binder)
570type As TypeSymbol,
602container As TypeSymbol,
637container As TypeSymbol,
641accessThroughType As TypeSymbol,
835TypeSymbol.Equals(iFaceOriginal, idictSymbol, TypeCompareKind.ConsiderEverything) OrElse
838TypeSymbol.Equals(iFaceOriginal, iroDictSymbol, TypeCompareKind.ConsiderEverything) OrElse
840TypeSymbol.Equals(iFaceOriginal, iListSymbol, TypeCompareKind.ConsiderEverything) OrElse
841TypeSymbol.Equals(iFaceOriginal, iCollectionSymbol, TypeCompareKind.ConsiderEverything) OrElse
842TypeSymbol.Equals(iFaceOriginal, inccSymbol, TypeCompareKind.ConsiderEverything) OrElse
843TypeSymbol.Equals(iFaceOriginal, inpcSymbol, TypeCompareKind.ConsiderEverything)
859submissionClass As TypeSymbol,
929Public Shared Sub LookupDefaultProperty(result As LookupResult, container As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol))
1081accessThroughType As TypeSymbol,
1145container As TypeSymbol,
1165Private Shared Function ShouldLookupExtensionMethods(options As LookupOptions, container As TypeSymbol) As Boolean
1174container As TypeSymbol,
1252container As TypeSymbol,
1285container As TypeSymbol,
1308container As TypeSymbol,
1356If TypeSymbol.Equals(derived.OriginalDefinition, base.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then
1363If TypeSymbol.Equals(i, base, TypeCompareKind.ConsiderEverything) Then
1383Debug.Assert(Not TypeSymbol.Equals(base, derived, TypeCompareKind.ConsiderEverything), "should already be verified for equality")
1394If TypeSymbol.Equals(i, base, TypeCompareKind.ConsiderEverything) Then
1492container As TypeSymbol,
1770Debug.Assert(TypeSymbol.Equals(newSymbolContainer, newSymbol.ContainingType, TypeCompareKind.ConsiderEverything))
1805If otherKnown IsNot Nothing AndAlso TypeSymbol.Equals(otherKnown.ContainingType, knownSymbolContainer, TypeCompareKind.ConsiderEverything) Then
1923container As TypeSymbol,
1965(TypeSymbol.Equals(containingMethod.ContainingType, container, TypeCompareKind.ConsiderEverything) OrElse TypeSymbol.Equals(containingMethod.ContainingType.BaseTypeNoUseSiteDiagnostics, container, TypeCompareKind.ConsiderEverything)) Then
1971submissionClass As TypeSymbol,
2014container As TypeSymbol,
2084container As TypeSymbol,
2088accessThroughType As TypeSymbol,
2119container As TypeSymbol,
2121accessThroughType As TypeSymbol,
2149accessThroughType As TypeSymbol,
Binding\Binder_ObjectInitializer.vb (14)
19Dim type As TypeSymbol = Me.BindTypeSyntax(node.Type, diagnostics)
30type = DirectCast(extendedErrorType.CandidateSymbols(0), TypeSymbol)
73type0 As TypeSymbol,
159type As TypeSymbol,
190type0 As TypeSymbol,
203Debug.Assert(objectInitializerExpressionOpt Is Nothing OrElse TypeSymbol.Equals(objectInitializerExpressionOpt.Type, type0, TypeCompareKind.ConsiderEverything))
216Dim coClass As TypeSymbol = DirectCast(type0, NamedTypeSymbol).CoClassType
475Debug.Assert(TypeSymbol.Equals(type, type0, TypeCompareKind.ConsiderEverything))
513[interface] As TypeSymbol,
551initializedObjectType As TypeSymbol,
579initializedObjectType As TypeSymbol,
737Debug.Assert(TypeSymbol.Equals(DirectCast(memberAssignments.Last, BoundAssignmentOperator).Right.Type, DirectCast(memberAssignments.Last, BoundAssignmentOperator).Left.Type, TypeCompareKind.ConsiderEverything))
760initializedObjectType As TypeSymbol,
767Dim unusedType As TypeSymbol = Nothing
Binding\Binder_Operators.vb (26)
70Dim targetArgumentType As TypeSymbol = targetArgument.Type
230Dim leftType As TypeSymbol = left.Type
231Dim rightType As TypeSymbol = right.Type
301Dim operandType As TypeSymbol
321Dim operatorResultType As TypeSymbol = operandType
323Dim forceToBooleanType As TypeSymbol = Nothing
342Dim booleanType As TypeSymbol = GetSpecialTypeForBinaryOperator(node, leftType, rightType, SpecialType.System_Boolean,
454Dim rightTargetType As TypeSymbol = GetSpecialTypeForBinaryOperator(node, leftType, rightType, SpecialType.System_Int32,
540Private Function ForceLiftToEmptyString(left As BoundExpression, stringType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression
634Dim operatorType As TypeSymbol
783otherOperandType As TypeSymbol,
785) As TypeSymbol
786Dim stringType As TypeSymbol
807leftType As TypeSymbol,
808rightType As TypeSymbol,
812) As TypeSymbol
816Dim resultType As TypeSymbol
872leftType As TypeSymbol,
873rightType As TypeSymbol,
874ofType As TypeSymbol
875) As TypeSymbol
907Dim resultType As TypeSymbol = Nothing
983Dim rightType As TypeSymbol
984Dim leftType As TypeSymbol
1155Dim operandType As TypeSymbol = operand.Type
1156Dim resultType As TypeSymbol = Nothing
Binding\Binder_Query.vb (38)
384firstSelectCompoundVariableType As TypeSymbol,
719Dim bodyType As TypeSymbol = lambda.Expression.Type
1686Dim groupType As TypeSymbol = InferGroupType(outer, inner, groupJoin, outerKeyLambda, innerKeyLambda, methodGroup, diagnostics)
1770Dim groupType As TypeSymbol = InferGroupType(source, groupBy, itemsLambda, keysLambda, keysRangeVariables, methodGroup, diagnostics)
1774Dim groupCompoundVariableType As TypeSymbol
1950) As TypeSymbol
1953Dim groupType As TypeSymbol = ErrorTypeSymbol.UnknownResultType
1995Dim resultSelector As TypeSymbol = method.Parameters(groupByArguments.Length - 1).Type
2026) As TypeSymbol
2029Dim groupType As TypeSymbol = ErrorTypeSymbol.UnknownResultType
2069Dim resultSelector As TypeSymbol = method.Parameters(groupJoinArguments.Length - 1).Type
2093keysCompoundVariableType As TypeSymbol,
2096groupType As TypeSymbol,
2098groupCompoundVariableType As TypeSymbol,
2180type As TypeSymbol,
2192type As TypeSymbol,
2334Dim predicateType As TypeSymbol = predicate.Type
2823Dim targetVariableType As TypeSymbol = Nothing
3469Dim targetType As TypeSymbol = Nothing
3736Private ReadOnly _groupCompoundVariableType As TypeSymbol
3743groupCompoundVariableType As TypeSymbol,
4105groupCompoundVariableType As TypeSymbol,
4131Dim variableType As TypeSymbol = Nothing
4148Dim targetVariableType As TypeSymbol = Nothing
4249variableType As TypeSymbol,
4250targetVariableType As TypeSymbol,
4322<Out()> ByRef controlVariableType As TypeSymbol
4342Dim inferredType As TypeSymbol = InferControlVariableType(source, diagnostics)
4394ImmutableArray.Create(Of TypeSymbol)(inferredType)),
4417Private Function InferControlVariableType(source As BoundExpression, diagnostics As BindingDiagnosticBag) As TypeSymbol
4420Dim result As TypeSymbol = Nothing
4468) As TypeSymbol
4469Dim result As TypeSymbol = Nothing
4473Dim inferredType As TypeSymbol = InferControlVariableType(method)
4498Private Function InferControlVariableType(method As MethodSymbol) As TypeSymbol
4515Dim parameterType As TypeSymbol = selectParameter.Type
4540Dim controlVariableType As TypeSymbol = invokeParameter.Type
4680Dim delegateReturnType As TypeSymbol = DirectCast(boundCall, BoundCall).Method.Parameters(i).Type.DelegateOrExpressionDelegate(Me).DelegateInvokeMethod.ReturnType
Binding\Binder_Statements.vb (57)
1092Dim declType As TypeSymbol = Nothing
1110Dim type As TypeSymbol = ComputeVariableType(symbol,
1126Dim restrictedType As TypeSymbol = Nothing
1270<Out()> ByRef asClauseType As TypeSymbol,
1271diagnostics As BindingDiagnosticBag) As TypeSymbol
1294Dim type As TypeSymbol
1361Dim inferredType As TypeSymbol = Nothing
1435diagnostics As BindingDiagnosticBag) As TypeSymbol
1507<Out()> ByRef currentType As TypeSymbol,
1508<Out()> ByRef elementType As TypeSymbol,
1517diagnostics As BindingDiagnosticBag) As TypeSymbol
1580Private Function InferVariableType(defaultType As TypeSymbol,
1583valueType As TypeSymbol,
1586diagnostics As BindingDiagnosticBag) As TypeSymbol
1641Dim rhsElementType As TypeSymbol = DirectCast(valueType, ArrayTypeSymbol).ElementType
1677Dim lhsType As TypeSymbol = defaultType
1678Dim rhsType As TypeSymbol = valueType
1723Dim type As TypeSymbol = BindTypeSyntax(asClause.Type, diagnostics)
1733type As TypeSymbol,
1981Dim targetType As TypeSymbol = op1.Type
2018Dim targetType As TypeSymbol = assignmentTarget.Type
2205Dim targetType As TypeSymbol = assignmentTarget.Type
2468Debug.Assert(TypeSymbol.Equals(targetAsEvent.Type, eventField.Type, TypeCompareKind.ConsiderEverything) OrElse eventSym.IsWindowsRuntimeEvent, "non-WinRT event should have the same type as its backing field")
2525If Not TypeSymbol.Equals(fireMethod.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything) Then
2669Private Function IsOrInheritsFromOrImplementsInterface(derivedType As TypeSymbol, interfaceType As WellKnownType, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
3295targetType As TypeSymbol,
3334Dim currentType As TypeSymbol = Nothing
3335Dim elementType As TypeSymbol = Nothing
3680<Out()> ByRef currentType As TypeSymbol,
3681<Out()> ByRef elementType As TypeSymbol,
3708Dim collectionType As TypeSymbol = collection.Type
3786Debug.Assert(collection.IsNothingLiteral OrElse collectionType.IsObjectType OrElse (TypeSymbol.Equals(matchingInterfaces.First, ienumerable, TypeCompareKind.ConsiderEverything) AndAlso matchingInterfaces.Count = 1))
4029collectionType As TypeSymbol,
4031<Out()> ByRef currentType As TypeSymbol,
4103Dim enumeratorType As TypeSymbol = boundGetEnumeratorCall.Type
4239container As TypeSymbol,
4308derivedType As TypeSymbol,
4340If TypeSymbol.Equals(derivedType.OriginalDefinition, interfaceType, TypeCompareKind.ConsiderEverything) Then
4350If TypeSymbol.Equals(interfaceOfDerived.OriginalDefinition, interfaceType, TypeCompareKind.ConsiderEverything) Then
4421Dim placeholderInfo = New Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression))()
4530iDisposable As TypeSymbol,
4531placeholderInfo As Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression)),
4534Dim declarationType As TypeSymbol = localSymbol.Type
4565resourceType As TypeSymbol,
4566placeholderInfo As Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression)),
4567iDisposable As TypeSymbol,
4611Private Sub ReportMutableStructureConstraintsInUsing(type As TypeSymbol, symbolName As String, syntaxNode As SyntaxNode, diagnostics As BindingDiagnosticBag)
4664Private Shared Function ShouldReportMutableStructureInUsing(structureType As TypeSymbol) As Boolean
4758Dim exceptionType As TypeSymbol
4836Dim previousType As TypeSymbol
4845If TypeSymbol.Equals(previousType, exceptionType, TypeCompareKind.ConsiderEverything) Then
4929<Out()> ByRef methodReturnType As TypeSymbol) As TypeSymbol
4977Dim methodReturnType As TypeSymbol = Nothing
4978Dim retType As TypeSymbol = Me.GetCurrentReturnType(isAsync, isIterator, methodReturnType)
5062diagnostics As BindingDiagnosticBag) As TypeSymbol
5114Dim retType As TypeSymbol = Me.GetCurrentYieldType(originalSyntax, diagnostics)
Binding\Binder_Symbols.vb (23)
33Optional resolvingBaseType As Boolean = False) As TypeSymbol
55Dim type = TryCast(sym, TypeSymbol)
63Private Shared Sub ReportUseOfModuleOrVoidType(typeSyntax As TypeSyntax, type As TypeSymbol, diagBag As BindingDiagnosticBag)
102typeArguments As ImmutableArray(Of TypeSymbol),
122Dim newTypeArguments(0 To genericType.Arity - 1) As TypeSymbol
227resolvingBaseType As Boolean) As TypeSymbol
229Debug.Assert(symbol Is Nothing OrElse TypeOf symbol Is TypeSymbol OrElse TypeOf symbol Is AliasSymbol, "unexpected symbol from BindTypeOrAliasSyntax")
235Return DirectCast(symbol, TypeSymbol)
276Dim typeSymbol As TypeSymbol = Nothing
279typeSymbol = TryCast(DirectCast(sym, AliasSymbol).Target, TypeSymbol)
281typeSymbol = TryCast(sym, TypeSymbol)
609resolvingBaseType As Boolean) As TypeSymbol
612Dim types = ArrayBuilder(Of TypeSymbol).GetInstance(numElements)
623Dim argumentType As TypeSymbol = Nothing
667Dim typesArray As ImmutableArray(Of TypeSymbol) = types.ToImmutableAndFree()
815Dim elementType As TypeSymbol = binder.BindTypeSyntax(arrayTypeSyntax.ElementType,
829Dim elementType As TypeSymbol = binder.BindTypeSyntax(nullableTypeSyntax.ElementType, diagBag, suppressUseSiteError)
891Dim typeArguments As ImmutableArray(Of TypeSymbol) = BindTypeArguments(typeArgumentsSyntax, binder, diagBag, suppressUseSiteError)
1006StaticCast(Of TypeSymbol).From(namedType.OriginalDefinition.TypeParameters)))
1043Dim typeArguments As ImmutableArray(Of TypeSymbol) = BindTypeArguments(typeArgumentsSyntax, binder, diagBag, suppressUseSiteError)
1119suppressUseSiteError As Boolean) As ImmutableArray(Of TypeSymbol)
1121Dim types As TypeSymbol() = New TypeSymbol(0 To arity - 1) {}
Binding\Binder_Utils.vb (27)
290Public Function CreateNullableOf(typeArgument As TypeSymbol,
326Public Function ApplyArrayRankSpecifiersToType(elementType As TypeSymbol,
328diagnostics As BindingDiagnosticBag) As TypeSymbol
330Dim currentType As TypeSymbol = elementType
350Public Function ApplyArrayRankSpecifiersAndBoundsToType(elementType As TypeSymbol,
353diagnostics As BindingDiagnosticBag) As TypeSymbol
355Dim currentType As TypeSymbol = elementType
382Public Function CreateArrayOf(elementType As TypeSymbol,
483asClauseOrValueType As TypeSymbol,
489) As TypeSymbol
490Dim baseType As TypeSymbol = DecodeIdentifierType(modifiedIdentifier.Identifier, asClauseOrValueType, getRequireTypeDiagnosticInfoFunc, diagBag, decoderContext)
576<Out()> ByRef asClauseType As TypeSymbol,
579) As TypeSymbol
611) As TypeSymbol
613Dim asClauseType As TypeSymbol = Nothing
629ByRef asClauseType As TypeSymbol,
630diagBag As BindingDiagnosticBag) As TypeSymbol
652diagBag As BindingDiagnosticBag) As TypeSymbol
653Dim asClauseType As TypeSymbol = Nothing
666asClauseType As TypeSymbol,
670) As TypeSymbol
671Dim typeCharacterType As TypeSymbol = Nothing
1090Dim paramType As TypeSymbol = newParam.Type
1094Dim restrictedType As TypeSymbol = Nothing
1364Private Shared Function IsNothingLiteralAllowedForAType(type As TypeSymbol) As Boolean
1396Dim conversionType As TypeSymbol = conv.Type
1397Dim operandType As TypeSymbol = operand.Type
Binding\DocumentationCommentCrefBinder.vb (15)
101Dim returnType As TypeSymbol = Nothing
381Dim type As TypeSymbol = Nothing
439Public ReadOnly Type As TypeSymbol
442Public Sub New(type As TypeSymbol, isByRef As Boolean)
451<Out> ByRef returnType As TypeSymbol,
684CollectOperatorsAndConversionsInType(node.Right, argCount, TryCast(singleSymbol, TypeSymbol), symbols, useSiteInfo)
769LookupMember(lookupResult, DirectCast(containingSymbol, TypeSymbol), name, arity, options, useSiteInfo)
775Dim propertyType As TypeSymbol = [property].Type
786Dim fieldType As TypeSymbol = field.Type
798Dim returnType As TypeSymbol = method.ReturnType
825Dim typeParameterSymbols(arguments.Count - 1) As TypeSymbol
853symbols(i) = method.Construct(typeParameterSymbols.AsImmutableOrNull.As(Of TypeSymbol))
858symbols(i) = type.Construct(typeParameterSymbols.AsImmutableOrNull.As(Of TypeSymbol))
890Private Shared Sub CollectOperatorsAndConversionsInType(crefOperator As CrefOperatorReferenceSyntax, argCount As Integer, type As TypeSymbol, symbols As ArrayBuilder(Of Symbol),
1074Private Shared Sub CollectOperatorsAndConversionsInType(type As TypeSymbol,
BoundTree\BoundArrayCreation.vb (4)
13Public Sub New(syntax As SyntaxNode, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, type As TypeSymbol, Optional hasErrors As Boolean = False)
17Public Sub New(syntax As SyntaxNode, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol, Optional hasErrors As Boolean = False)
23Dim elementType As TypeSymbol = ErrorTypeSymbol.UnknownResultType
34Private Sub ValidateInitializer(initializer As BoundArrayInitialization, elementType As TypeSymbol)
BoundTree\BoundParameter.vb (4)
11Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
15Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, type As TypeSymbol)
19Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, type As TypeSymbol, hasErrors As Boolean)
23Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, type As TypeSymbol)
BoundTree\UnboundLambda.vb (13)
60Public Function InferReturnType(target As TargetSignature) As KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))
64Dim result = New KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))(If(Me.IsFunctionLambda AndAlso Me.ReturnType.IsVoidType(),
95Private Function DoInferFunctionLambdaReturnType(target As TargetSignature) As KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol))
132Public ReadOnly ParameterTypes As ImmutableArray(Of TypeSymbol)
133Public ReadOnly ReturnType As TypeSymbol
137Public Sub New(parameterTypes As ImmutableArray(Of TypeSymbol), parameterIsByRef As BitVector, returnType As TypeSymbol, returnsByRef As Boolean)
147Public Sub New(params As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, returnsByRef As Boolean)
154Me.ParameterTypes = ImmutableArray(Of TypeSymbol).Empty
156Dim types(params.Length - 1) As TypeSymbol
202If Not TypeSymbol.Equals(Me.ParameterTypes(i), other.ParameterTypes(i), TypeCompareKind.ConsiderEverything) OrElse
208Return Me.ReturnsByRef = other.ReturnsByRef AndAlso TypeSymbol.Equals(Me.ReturnType, other.ReturnType, TypeCompareKind.ConsiderEverything)
220Public ReadOnly InferredReturnType As New ConcurrentDictionary(Of TargetSignature, KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol)))()
CodeGen\EmitExpression.vb (29)
289Dim receiverType As TypeSymbol = receiver.Type
444Private Sub EmitDelegateCreation(receiver As BoundExpression, method As MethodSymbol, delegateType As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
810Private Sub EmitLoadIndirect(type As TypeSymbol, syntaxNode As SyntaxNode)
1014Debug.Assert(TypeSymbol.Equals(receiverType, method.ContainingType, TypeCompareKind.ConsiderEverything))
1278Dim mergeTypeOfAlternative As TypeSymbol = StackMergeType(expr.WhenFalse)
1296Dim mergeTypeOfConsequence As TypeSymbol = StackMergeType(expr.WhenTrue)
1301ElseIf (expr.Type.IsInterfaceType() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfAlternative, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfConsequence, TypeCompareKind.ConsiderEverything)) Then
1323Debug.Assert(TypeSymbol.Equals(expr.Type, expr.ElseExpression.Type, TypeCompareKind.ConsiderEverything))
1329Dim mergeTypeOfLeftValue As TypeSymbol = StackMergeType(expr.TestExpression)
1352Dim mergeTypeOfRightValue As TypeSymbol = StackMergeType(expr.ElseExpression)
1356ElseIf (expr.Type.IsInterfaceType() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfLeftValue, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfRightValue, TypeCompareKind.ConsiderEverything)) Then
1379Private Function StackMergeType(expr As BoundExpression) As TypeSymbol
1439Private Shared Function IsVarianceCast(toType As TypeSymbol, fromType As TypeSymbol) As Boolean
1440If (TypeSymbol.Equals(toType, fromType, TypeCompareKind.ConsiderEverything)) Then
1455Return (toType.IsDelegateType() AndAlso Not TypeSymbol.Equals(toType, fromType, TypeCompareKind.ConsiderEverything)) OrElse
1461Private Sub EmitStaticCast(toType As TypeSymbol, syntax As SyntaxNode)
1529Private Sub EmitInitObj(type As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
1554Private Sub EmitLoadDefaultValueOfTypeParameter(type As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
1559Private Sub EmitLoadDefaultValueOfTypeFromNothingLiteral(type As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
1586Private Sub EmitConstantExpression(type As TypeSymbol, constantValue As ConstantValue, used As Boolean, syntaxNode As SyntaxNode)
2046Private Sub EmitStoreIndirect(type As TypeSymbol, syntaxNode As SyntaxNode)
2101Dim type As TypeSymbol = boundTypeOfOperator.SourceType.Type
2131If Not TypeSymbol.Equals(node.Type, getField.ReturnType, TypeCompareKind.ConsiderEverything) Then
2161If Not TypeSymbol.Equals(node.Type, getMethod.ReturnType, TypeCompareKind.ConsiderEverything) Then
2169Private Sub EmitBox(type As TypeSymbol, syntaxNode As SyntaxNode)
2174Private Sub EmitUnboxAny(type As TypeSymbol, syntaxNode As SyntaxNode)
Compilation\ClsComplianceChecker.vb (14)
414Dim type As TypeSymbol
582Private Function ShouldReportNonCompliantType(type As TypeSymbol, context As NamedTypeSymbol, Optional diagnosticSymbol As Symbol = Nothing) As Boolean
589Private Sub ReportNonCompliantTypeArguments(type As TypeSymbol, context As NamedTypeSymbol, diagnosticSymbol As Symbol)
615Private Function IsCompliantType(type As TypeSymbol, context As NamedTypeSymbol) As Boolean
657Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse Not (TypeOf symbol Is TypeSymbol), "Type kinds without declarations are handled elsewhere.")
875Dim xParameterTypes As ImmutableArray(Of TypeSymbol) = GetParameterTypes(x)
876Dim yParameterTypes As ImmutableArray(Of TypeSymbol) = GetParameterTypes(y)
890Dim xType As TypeSymbol = xParameterTypes(i)
891Dim yType As TypeSymbol = yParameterTypes(i)
901Dim elementTypesDiffer As Boolean = Not TypeSymbol.Equals(xArrayType.ElementType, yArrayType.ElementType, TypeCompareKind.ConsiderEverything)
907ElseIf Not TypeSymbol.Equals(xType, yType, TypeCompareKind.ConsiderEverything) Then
919Private Shared Function GetParameterTypes(symbol As Symbol) As ImmutableArray(Of TypeSymbol)
931Return ImmutableArray(Of TypeSymbol).Empty
934Dim builder = ArrayBuilder(Of TypeSymbol).GetInstance(parameters.Length)
Compilation\SemanticModel.vb (18)
351Dim type As TypeSymbol = Nothing
352Dim convertedType As TypeSymbol = Nothing
913ByRef convertedType As TypeSymbol,
914ByRef conversion As Conversion) As TypeSymbol
933Dim type As TypeSymbol
1048Dim typeSymbol As TypeSymbol = boundType.Type
1195Private Shared Function GetMeParameter(referenceType As TypeSymbol,
1196containingType As TypeSymbol,
1216If TypeSymbol.Equals(referenceType, ErrorTypeSymbol.UnknownResultType, TypeCompareKind.ConsiderEverything) Then
1432If unwrappedSymbols.Length = 1 AndAlso TypeOf unwrappedSymbols(0) Is TypeSymbol Then
1433Dim typeSymbol As TypeSymbol = DirectCast(unwrappedSymbols(0), TypeSymbol)
1441Debug.Assert(resultKind <> LookupResultKind.Good OrElse TypeSymbol.Equals(namedTypeSymbol, boundAttribute.Type, TypeCompareKind.ConsiderEverything))
1514Dim type = TryCast(UnwrapAlias(symbol), TypeSymbol)
1552Dim type = TryCast(UnwrapAlias(symbol), TypeSymbol)
2351Dim vbdestination = destination.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(destination))
3598Friend Function GetMessage(expression As ExpressionSyntax, type As TypeSymbol) As String
3603Friend Function GetMessage(expression As ExpressionSyntax, type As TypeSymbol, position As Integer) As String
Emit\AttributeDataAdapter.vb (4)
109Return New MetadataTypeOf(moduleBeingBuilt.Translate(DirectCast(argument.ValueInternal, TypeSymbol), syntaxNodeOpt, diagnostics),
110moduleBeingBuilt.Translate(DirectCast(argument.TypeInternal, TypeSymbol), syntaxNodeOpt, diagnostics))
115Return moduleBeingBuilt.CreateConstant(DirectCast(type, TypeSymbol), value, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics)
121Dim type As TypeSymbol
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (13)
287Dim otherElementType As TypeSymbol = DirectCast(Me.Visit(symbol.ElementType), TypeSymbol)
407Dim newType = DirectCast(v.Visit(t.Type), TypeSymbol)
578Return method.Construct(ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(IndexedTypeParameterSymbol.Take(i)))
622Private Function AreTypesEqual(type As TypeSymbol, other As TypeSymbol) As Boolean
681Public Overloads Function Equals(source As TypeSymbol, other As TypeSymbol) As Boolean
686Dim visitedSource = DirectCast(_matcher.Visit(source), TypeSymbol)
687Dim visitedOther = If(_deepTranslatorOpt IsNot Nothing, DirectCast(_deepTranslatorOpt.Visit(other), TypeSymbol), other)
716Dim translatedElementType As TypeSymbol = DirectCast(Me.Visit(symbol.ElementType), TypeSymbol)
734Dim translatedTypeArguments = type.GetAllTypeArgumentsWithModifiers().SelectAsArray(Function(t, v) New TypeWithModifiers(DirectCast(v.Visit(t.Type), TypeSymbol),
Generated\BoundNodes.xml.Generated.vb (423)
216Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
221Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
227Private ReadOnly _Type As TypeSymbol
228Public ReadOnly Property Type As TypeSymbol
238Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol), hasErrors As Boolean)
246Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol))
255Private ReadOnly _Arguments As ImmutableArray(Of TypeSymbol)
256Public ReadOnly Property Arguments As ImmutableArray(Of TypeSymbol)
267Public Function Update(arguments As ImmutableArray(Of TypeSymbol)) As BoundTypeArguments
280Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
284Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
294Public Function Update(type As TypeSymbol) As BoundOmittedArgument
307Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
314Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
326Public Sub New(syntax As SyntaxNode, underlyingLValue As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
353Public Function Update(underlyingLValue As BoundExpression, type As TypeSymbol) As BoundLValueToRValueWrapper
366Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
373Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
385Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
392Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
404Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
411Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
424Public Function Update(type As TypeSymbol) As BoundWithLValueExpressionPlaceholder
437Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
444Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
457Public Function Update(type As TypeSymbol) As BoundWithRValueExpressionPlaceholder
470Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
482Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
497Public Function Update(type As TypeSymbol) As BoundRValuePlaceholder
510Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
522Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
537Public Function Update(type As TypeSymbol) As BoundLValuePlaceholder
550Public Sub New(syntax As SyntaxNode, isReference As Boolean, type As TypeSymbol, hasErrors As Boolean)
555Public Sub New(syntax As SyntaxNode, isReference As Boolean, type As TypeSymbol)
573Public Function Update(isReference As Boolean, type As TypeSymbol) As BoundDup
586Public Sub New(syntax As SyntaxNode, resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
629Public Function Update(resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundBadExpression
676Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
702Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundParenthesized
715Public Sub New(syntax As SyntaxNode, expression As BoundExpression, isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
744Public Function Update(expression As BoundExpression, isLValue As Boolean, type As TypeSymbol) As BoundBadVariable
757Public Sub New(syntax As SyntaxNode, expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
801Public Function Update(expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol) As BoundArrayAccess
814Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
836Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundArrayLength
849Public Sub New(syntax As SyntaxNode, sourceType As BoundTypeExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
871Public Function Update(sourceType As BoundTypeExpression, type As TypeSymbol) As BoundGetType
884Public Sub New(syntax As SyntaxNode, field As FieldSymbol, type As TypeSymbol, hasErrors As Boolean)
893Public Sub New(syntax As SyntaxNode, field As FieldSymbol, type As TypeSymbol)
915Public Function Update(field As FieldSymbol, type As TypeSymbol) As BoundFieldInfo
928Public Sub New(syntax As SyntaxNode, method As MethodSymbol, type As TypeSymbol, hasErrors As Boolean)
937Public Sub New(syntax As SyntaxNode, method As MethodSymbol, type As TypeSymbol)
959Public Function Update(method As MethodSymbol, type As TypeSymbol) As BoundMethodInfo
972Public Sub New(syntax As SyntaxNode, unevaluatedReceiverOpt As BoundExpression, aliasOpt As AliasSymbol, type As TypeSymbol, Optional hasErrors As Boolean = False)
1001Public Function Update(unevaluatedReceiverOpt As BoundExpression, aliasOpt As AliasSymbol, type As TypeSymbol) As BoundTypeExpression
1014Public Sub New(syntax As SyntaxNode, data As BoundTypeOrValueData, type As TypeSymbol, hasErrors As Boolean)
1022Public Sub New(syntax As SyntaxNode, data As BoundTypeOrValueData, type As TypeSymbol)
1043Public Function Update(data As BoundTypeOrValueData, type As TypeSymbol) As BoundTypeOrValueExpression
1111Public Sub New(syntax As SyntaxNode, method As MethodSymbol, type As TypeSymbol, hasErrors As Boolean)
1120Public Sub New(syntax As SyntaxNode, method As MethodSymbol, type As TypeSymbol)
1142Public Function Update(method As MethodSymbol, type As TypeSymbol) As BoundMethodDefIndex
1155Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
1162Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
1175Public Function Update(type As TypeSymbol) As BoundMaximumMethodDefIndex
1188Public Sub New(syntax As SyntaxNode, analysisKind As Integer, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
1197Public Sub New(syntax As SyntaxNode, analysisKind As Integer, isLValue As Boolean, type As TypeSymbol)
1226Public Function Update(analysisKind As Integer, isLValue As Boolean, type As TypeSymbol) As BoundInstrumentationPayloadRoot
1239Public Sub New(syntax As SyntaxNode, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
1247Public Sub New(syntax As SyntaxNode, isLValue As Boolean, type As TypeSymbol)
1268Public Function Update(isLValue As Boolean, type As TypeSymbol) As BoundModuleVersionId
1281Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
1288Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
1301Public Function Update(type As TypeSymbol) As BoundModuleVersionIdString
1314Public Sub New(syntax As SyntaxNode, document As Cci.DebugSourceDocument, type As TypeSymbol, hasErrors As Boolean)
1323Public Sub New(syntax As SyntaxNode, document As Cci.DebugSourceDocument, type As TypeSymbol)
1345Public Function Update(document As Cci.DebugSourceDocument, type As TypeSymbol) As BoundSourceDocumentIndex
1358Public Sub New(syntax As SyntaxNode, operatorKind As UnaryOperatorKind, operand As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
1409Public Function Update(operatorKind As UnaryOperatorKind, operand As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundUnaryOperator
1422Public Sub New(syntax As SyntaxNode, operatorKind As UnaryOperatorKind, underlyingExpression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
1457Public Function Update(operatorKind As UnaryOperatorKind, underlyingExpression As BoundExpression, type As TypeSymbol) As BoundUserDefinedUnaryOperator
1470Public Sub New(syntax As SyntaxNode, operand As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
1497Public Function Update(operand As BoundExpression, type As TypeSymbol) As BoundNullableIsTrueOperator
1510Public Sub New(syntax As SyntaxNode, operatorKind As BinaryOperatorKind, left As BoundExpression, right As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
1570Public Function Update(operatorKind As BinaryOperatorKind, left As BoundExpression, right As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundBinaryOperator
1583Public Sub New(syntax As SyntaxNode, operatorKind As BinaryOperatorKind, underlyingExpression As BoundExpression, checked As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
1626Public Function Update(operatorKind As BinaryOperatorKind, underlyingExpression As BoundExpression, checked As Boolean, type As TypeSymbol) As BoundUserDefinedBinaryOperator
1639Public Sub New(syntax As SyntaxNode, leftOperand As BoundExpression, leftOperandPlaceholder As BoundRValuePlaceholder, leftTest As BoundExpression, bitwiseOperator As BoundUserDefinedBinaryOperator, type As TypeSymbol, Optional hasErrors As Boolean = False)
1690Public Function Update(leftOperand As BoundExpression, leftOperandPlaceholder As BoundRValuePlaceholder, leftTest As BoundExpression, bitwiseOperator As BoundUserDefinedBinaryOperator, type As TypeSymbol) As BoundUserDefinedShortCircuitingOperator
1703Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
1710Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
1723Public Function Update(type As TypeSymbol) As BoundCompoundAssignmentTargetPlaceholder
1736Public Sub New(syntax As SyntaxNode, left As BoundExpression, leftOnTheRightOpt As BoundCompoundAssignmentTargetPlaceholder, right As BoundExpression, suppressObjectClone As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
1788Public Function Update(left As BoundExpression, leftOnTheRightOpt As BoundCompoundAssignmentTargetPlaceholder, right As BoundExpression, suppressObjectClone As Boolean, type As TypeSymbol) As BoundAssignmentOperator
1801Public Sub New(syntax As SyntaxNode, byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
1844Public Function Update(byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol) As BoundReferenceAssignment
1908Public Sub New(syntax As SyntaxNode, condition As BoundExpression, whenTrue As BoundExpression, whenFalse As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
1961Public Function Update(condition As BoundExpression, whenTrue As BoundExpression, whenFalse As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundTernaryConditionalExpression
1974Public Sub New(syntax As SyntaxNode, testExpression As BoundExpression, convertedTestExpression As BoundExpression, testExpressionPlaceholder As BoundRValuePlaceholder, elseExpression As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
2034Public Function Update(testExpression As BoundExpression, convertedTestExpression As BoundExpression, testExpressionPlaceholder As BoundRValuePlaceholder, elseExpression As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundBinaryConditionalExpression
2047Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
2054Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
2066Public Sub New(syntax As SyntaxNode, operand As BoundExpression, conversionKind As ConversionKind, checked As Boolean, explicitCastInCode As Boolean, constantValueOpt As ConstantValue, extendedInfoOpt As BoundExtendedConversionInfo, type As TypeSymbol, Optional hasErrors As Boolean = False)
2133Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, checked As Boolean, explicitCastInCode As Boolean, constantValueOpt As ConstantValue, extendedInfoOpt As BoundExtendedConversionInfo, type As TypeSymbol) As BoundConversion
2249Public Sub New(syntax As SyntaxNode, underlyingExpression As BoundExpression, inOutConversionFlags As Byte, type As TypeSymbol, Optional hasErrors As Boolean = False)
2284Public Function Update(underlyingExpression As BoundExpression, inOutConversionFlags As Byte, type As TypeSymbol) As BoundUserDefinedConversion
2297Public Sub New(syntax As SyntaxNode, operand As BoundExpression, conversionKind As ConversionKind, suppressVirtualCalls As Boolean, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol, Optional hasErrors As Boolean = False)
2356Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, suppressVirtualCalls As Boolean, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol) As BoundDirectCast
2369Public Sub New(syntax As SyntaxNode, operand As BoundExpression, conversionKind As ConversionKind, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol, Optional hasErrors As Boolean = False)
2420Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol) As BoundTryCast
2433Public Sub New(syntax As SyntaxNode, operand As BoundExpression, isTypeOfIsNotExpression As Boolean, targetType As TypeSymbol, type As TypeSymbol, Optional hasErrors As Boolean = False)
2460Private ReadOnly _TargetType As TypeSymbol
2461Public ReadOnly Property TargetType As TypeSymbol
2472Public Function Update(operand As BoundExpression, isTypeOfIsNotExpression As Boolean, targetType As TypeSymbol, type As TypeSymbol) As BoundTypeOf
2529Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
2550Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundSequencePointExpression
3017Public Sub New(syntax As SyntaxNode, method As MethodSymbol, methodGroupOpt As BoundMethodGroup, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, constantValueOpt As ConstantValue, isLValue As Boolean, suppressObjectClone As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
3101Public Function Update(method As MethodSymbol, methodGroupOpt As BoundMethodGroup, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, constantValueOpt As ConstantValue, isLValue As Boolean, suppressObjectClone As Boolean, type As TypeSymbol) As BoundCall
3114Public Sub New(syntax As SyntaxNode, constructor As MethodSymbol, constructorArguments As ImmutableArray(Of BoundExpression), constructorDefaultArguments As BitVector, namedArguments As ImmutableArray(Of BoundExpression), resultKind As LookupResultKind, type As TypeSymbol, Optional hasErrors As Boolean = False)
3169Public Function Update(constructor As MethodSymbol, constructorArguments As ImmutableArray(Of BoundExpression), constructorDefaultArguments As BitVector, namedArguments As ImmutableArray(Of BoundExpression), resultKind As LookupResultKind, type As TypeSymbol) As BoundAttribute
3182Public Sub New(syntax As SyntaxNode, nameOpt As String, containerTypeOpt As TypeSymbol, receiverOpt As BoundExpression, typeArgumentsOpt As BoundTypeArguments, accessKind As LateBoundAccessKind, type As TypeSymbol, Optional hasErrors As Boolean = False)
3207Private ReadOnly _ContainerTypeOpt As TypeSymbol
3208Public ReadOnly Property ContainerTypeOpt As TypeSymbol
3240Public Function Update(nameOpt As String, containerTypeOpt As TypeSymbol, receiverOpt As BoundExpression, typeArgumentsOpt As BoundTypeArguments, accessKind As LateBoundAccessKind, type As TypeSymbol) As BoundLateMemberAccess
3253Public Sub New(syntax As SyntaxNode, member As BoundExpression, argumentsOpt As ImmutableArray(Of BoundExpression), argumentNamesOpt As ImmutableArray(Of string), accessKind As LateBoundAccessKind, methodOrPropertyGroupOpt As BoundMethodOrPropertyGroup, type As TypeSymbol, Optional hasErrors As Boolean = False)
3312Public Function Update(member As BoundExpression, argumentsOpt As ImmutableArray(Of BoundExpression), argumentNamesOpt As ImmutableArray(Of string), accessKind As LateBoundAccessKind, methodOrPropertyGroupOpt As BoundMethodOrPropertyGroup, type As TypeSymbol) As BoundLateInvocation
3325Public Sub New(syntax As SyntaxNode, binder As Binder, memberAccess As BoundLateMemberAccess, type As TypeSymbol, Optional hasErrors As Boolean = False)
3355Public Function Update(binder As Binder, memberAccess As BoundLateMemberAccess, type As TypeSymbol) As BoundLateAddressOfOperator
3368Protected Sub New(kind As BoundKind, syntax as SyntaxNode, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3388Public Sub New(syntax As SyntaxNode, inferredType As TupleTypeSymbol, argumentNamesOpt As ImmutableArray(Of String), inferredNamesOpt As ImmutableArray(Of Boolean), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3425Public Function Update(inferredType As TupleTypeSymbol, argumentNamesOpt As ImmutableArray(Of String), inferredNamesOpt As ImmutableArray(Of Boolean), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundTupleLiteral
3438Public Sub New(syntax As SyntaxNode, naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3448Private ReadOnly _NaturalTypeOpt As TypeSymbol
3449Public ReadOnly Property NaturalTypeOpt As TypeSymbol
3460Public Function Update(naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundConvertedTupleLiteral
3473Protected Sub New(kind As BoundKind, syntax as SyntaxNode, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
3498Public Sub New(syntax As SyntaxNode, constructorOpt As MethodSymbol, methodGroupOpt As BoundMethodGroup, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
3549Public Function Update(constructorOpt As MethodSymbol, methodGroupOpt As BoundMethodGroup, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundObjectCreationExpression
3562Public Sub New(syntax As SyntaxNode, guidString As string, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
3583Public Function Update(guidString As string, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundNoPiaObjectCreationExpression
3596Public Sub New(syntax As SyntaxNode, binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3634Public Function Update(binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundAnonymousTypeCreationExpression
3647Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol, hasErrors As Boolean)
3656Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol)
3685Public Function Update(binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol) As BoundAnonymousTypePropertyAccess
3698Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeFieldInitializerBinder, value As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
3728Public Function Update(binder As Binder.AnonymousTypeFieldInitializerBinder, value As BoundExpression, type As TypeSymbol) As BoundAnonymousTypeFieldInitializer
3741Protected Sub New(kind As BoundKind, syntax as SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3769Public Sub New(syntax As SyntaxNode, createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3795Public Function Update(createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundObjectInitializerExpression
3808Public Sub New(syntax As SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3826Public Function Update(placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundCollectionInitializerExpression
3839Public Sub New(syntax As SyntaxNode, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
3857Public Function Update(initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundNewT
3870Public Sub New(syntax As SyntaxNode, receiverOpt As BoundExpression, method As MethodSymbol, relaxationLambdaOpt As BoundLambda, relaxationReceiverPlaceholderOpt As BoundRValuePlaceholder, methodGroupOpt As BoundMethodGroup, type As TypeSymbol, Optional hasErrors As Boolean = False)
3924Public Function Update(receiverOpt As BoundExpression, method As MethodSymbol, relaxationLambdaOpt As BoundLambda, relaxationReceiverPlaceholderOpt As BoundRValuePlaceholder, methodGroupOpt As BoundMethodGroup, type As TypeSymbol) As BoundDelegateCreationExpression
3937Public Sub New(syntax As SyntaxNode, isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol, Optional hasErrors As Boolean = False)
3996Public Function Update(isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol) As BoundArrayCreation
4086Public Sub New(syntax As SyntaxNode, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
4107Public Function Update(initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundArrayInitialization
4120Public Sub New(syntax As SyntaxNode, receiverOpt As BoundExpression, fieldSymbol As FieldSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, constantsInProgressOpt As ConstantFieldsInProgress, type As TypeSymbol, Optional hasErrors As Boolean = False)
4179Public Function Update(receiverOpt As BoundExpression, fieldSymbol As FieldSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, constantsInProgressOpt As ConstantFieldsInProgress, type As TypeSymbol) As BoundFieldAccess
4192Public Sub New(syntax As SyntaxNode, propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, isLValue As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, type As TypeSymbol, Optional hasErrors As Boolean = False)
4276Public Function Update(propertySymbol As PropertySymbol, propertyGroupOpt As BoundPropertyGroup, accessKind As PropertyAccessKind, isWriteable As Boolean, isLValue As Boolean, receiverOpt As BoundExpression, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, type As TypeSymbol) As BoundPropertyAccess
4289Public Sub New(syntax As SyntaxNode, receiverOpt As BoundExpression, eventSymbol As EventSymbol, type As TypeSymbol, Optional hasErrors As Boolean = False)
4319Public Function Update(receiverOpt As BoundExpression, eventSymbol As EventSymbol, type As TypeSymbol) As BoundEventAccess
4805Public Sub New(syntax As SyntaxNode, locals As ImmutableArray(Of LocalSymbol), sideEffects As ImmutableArray(Of BoundExpression), valueOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
4849Public Function Update(locals As ImmutableArray(Of LocalSymbol), sideEffects As ImmutableArray(Of BoundExpression), valueOpt As BoundExpression, type As TypeSymbol) As BoundSequence
5881Public Sub New(syntax As SyntaxNode, value As ConstantValue, type As TypeSymbol, hasErrors As Boolean)
5894Public Sub New(syntax As SyntaxNode, value As ConstantValue, type As TypeSymbol)
5917Public Function Update(value As ConstantValue, type As TypeSymbol) As BoundLiteral
5930Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
5937Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
5950Public Function Update(type As TypeSymbol) As BoundMeReference
5963Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
5975Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
5990Public Function Update(type As TypeSymbol) As BoundValueTypeMeReference
6003Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6010Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
6023Public Function Update(type As TypeSymbol) As BoundMyBaseReference
6036Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6043Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
6056Public Function Update(type As TypeSymbol) As BoundMyClassReference
6069Public Sub New(syntax As SyntaxNode, sourceType As NamedTypeSymbol, type As TypeSymbol, hasErrors As Boolean)
6078Public Sub New(syntax As SyntaxNode, sourceType As NamedTypeSymbol, type As TypeSymbol)
6100Public Function Update(sourceType As NamedTypeSymbol, type As TypeSymbol) As BoundPreviousSubmissionReference
6113Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6120Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
6133Public Function Update(type As TypeSymbol) As BoundHostObjectMemberReference
6146Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
6161Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol)
6193Public Function Update(localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol) As BoundLocal
6206Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, emitExpressions As PseudoVariableExpressions, type As TypeSymbol, hasErrors As Boolean)
6218Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, emitExpressions As PseudoVariableExpressions, type As TypeSymbol)
6257Public Function Update(localSymbol As LocalSymbol, isLValue As Boolean, emitExpressions As PseudoVariableExpressions, type As TypeSymbol) As BoundPseudoVariable
6270Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, type As TypeSymbol, hasErrors As Boolean)
6281Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, type As TypeSymbol)
6319Public Function Update(parameterSymbol As ParameterSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, type As TypeSymbol) As BoundParameter
6332Public Sub New(syntax As SyntaxNode, isOut As Boolean, type As TypeSymbol, hasErrors As Boolean)
6340Public Sub New(syntax As SyntaxNode, isOut As Boolean, type As TypeSymbol)
6361Public Function Update(isOut As Boolean, type As TypeSymbol) As BoundByRefArgumentPlaceholder
6374Public Sub New(syntax As SyntaxNode, originalArgument As BoundExpression, inConversion As BoundExpression, inPlaceholder As BoundByRefArgumentPlaceholder, outConversion As BoundExpression, outPlaceholder As BoundRValuePlaceholder, type As TypeSymbol, Optional hasErrors As Boolean = False)
6436Public Function Update(originalArgument As BoundExpression, inConversion As BoundExpression, inPlaceholder As BoundByRefArgumentPlaceholder, outConversion As BoundExpression, outPlaceholder As BoundRValuePlaceholder, type As TypeSymbol) As BoundByRefArgumentWithCopyBack
6449Public Sub New(syntax As SyntaxNode, originalArgument As BoundExpression, localSymbol As SynthesizedLocal, type As TypeSymbol, Optional hasErrors As Boolean = False)
6484Public Function Update(originalArgument As BoundExpression, localSymbol As SynthesizedLocal, type As TypeSymbol) As BoundLateBoundArgumentSupportingAssignmentWithCapture
6539Public Sub New(syntax As SyntaxNode, label As LabelSymbol, type As TypeSymbol, hasErrors As Boolean)
6547Public Sub New(syntax As SyntaxNode, label As LabelSymbol, type As TypeSymbol)
6568Public Function Update(label As LabelSymbol, type As TypeSymbol) As BoundLabel
6760Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache, hasErrors As Boolean)
6779Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache)
6817Private ReadOnly _ReturnType As TypeSymbol
6818Public ReadOnly Property ReturnType As TypeSymbol
6836Public Function Update(binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) As UnboundLambda
6929Public Sub New(syntax As SyntaxNode, lastOperator As BoundQueryClauseBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
6951Public Function Update(lastOperator As BoundQueryClauseBase, type As TypeSymbol) As BoundQueryExpression
6964Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6971Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
6983Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7005Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundQuerySource
7018Public Sub New(syntax As SyntaxNode, conversionCall As BoundCall, type As TypeSymbol, Optional hasErrors As Boolean = False)
7040Public Function Update(conversionCall As BoundCall, type As TypeSymbol) As BoundToQueryableCollectionConversion
7053Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, hasErrors As Boolean)
7066Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol)
7087Private ReadOnly _CompoundVariableType As TypeSymbol
7088Public ReadOnly Property CompoundVariableType As TypeSymbol
7105Public Sub New(syntax As SyntaxNode, source As BoundQueryPart, rangeVariableOpt As RangeVariableSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False)
7143Public Function Update(source As BoundQueryPart, rangeVariableOpt As RangeVariableSymbol, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryableSource
7156Public Sub New(syntax As SyntaxNode, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False)
7181Public Function Update(underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryClause
7194Public Sub New(syntax As SyntaxNode, underlyingExpression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7216Public Function Update(underlyingExpression As BoundExpression, type As TypeSymbol) As BoundOrdering
7289Public Sub New(syntax As SyntaxNode, rangeVariable As RangeVariableSymbol, value As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7320Public Function Update(rangeVariable As RangeVariableSymbol, value As BoundExpression, type As TypeSymbol) As BoundRangeVariableAssignment
7397Public Sub New(syntax As SyntaxNode, capturedGroupOpt As BoundQueryClauseBase, groupPlaceholderOpt As BoundRValuePlaceholder, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol, Optional hasErrors As Boolean = False)
7438Public Function Update(capturedGroupOpt As BoundQueryClauseBase, groupPlaceholderOpt As BoundRValuePlaceholder, underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundAggregateClause
7451Public Sub New(syntax As SyntaxNode, group As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7473Public Function Update(group As BoundExpression, type As TypeSymbol) As BoundGroupAggregation
7486Public Sub New(syntax As SyntaxNode, rangeVariable As RangeVariableSymbol, type As TypeSymbol, hasErrors As Boolean)
7495Public Sub New(syntax As SyntaxNode, rangeVariable As RangeVariableSymbol, type As TypeSymbol)
7517Public Function Update(rangeVariable As RangeVariableSymbol, type As TypeSymbol) As BoundRangeVariable
7767Public Sub New(syntax As SyntaxNode, xmlNamespace As BoundExpression, localName As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7807Public Function Update(xmlNamespace As BoundExpression, localName As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlName
7820Public Sub New(syntax As SyntaxNode, xmlNamespace As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7851Public Function Update(xmlNamespace As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlNamespace
7864Public Sub New(syntax As SyntaxNode, declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False)
7904Public Function Update(declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlDocument
7917Public Sub New(syntax As SyntaxNode, version As BoundExpression, encoding As BoundExpression, standalone As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7963Public Function Update(version As BoundExpression, encoding As BoundExpression, standalone As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlDeclaration
7976Public Sub New(syntax As SyntaxNode, target As BoundExpression, data As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8016Public Function Update(target As BoundExpression, data As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlProcessingInstruction
8029Public Sub New(syntax As SyntaxNode, value As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8060Public Function Update(value As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlComment
8073Public Sub New(syntax As SyntaxNode, name As BoundExpression, value As BoundExpression, matchesImport As Boolean, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8126Public Function Update(name As BoundExpression, value As BoundExpression, matchesImport As Boolean, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlAttribute
8139Public Sub New(syntax As SyntaxNode, argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False)
8179Public Function Update(argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlElement
8192Public Sub New(syntax As SyntaxNode, memberAccess As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8214Public Function Update(memberAccess As BoundExpression, type As TypeSymbol) As BoundXmlMemberAccess
8227Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8249Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundXmlEmbeddedExpression
8262Public Sub New(syntax As SyntaxNode, value As BoundLiteral, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8293Public Function Update(value As BoundLiteral, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlCData
8481Public Sub New(syntax As SyntaxNode, activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol, Optional hasErrors As Boolean = False)
8517Public Function Update(activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol) As BoundUnstructuredExceptionHandlingCatchFilter
8644Public Sub New(syntax As SyntaxNode, operand As BoundExpression, awaitableInstancePlaceholder As BoundRValuePlaceholder, getAwaiter As BoundExpression, awaiterInstancePlaceholder As BoundLValuePlaceholder, isCompleted As BoundExpression, getResult As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8716Public Function Update(operand As BoundExpression, awaitableInstancePlaceholder As BoundRValuePlaceholder, getAwaiter As BoundExpression, awaiterInstancePlaceholder As BoundLValuePlaceholder, isCompleted As BoundExpression, getResult As BoundExpression, type As TypeSymbol) As BoundAwaitOperator
8729Public Sub New(syntax As SyntaxNode, locals As ImmutableArray(Of LocalSymbol), spillFields As ImmutableArray(Of FieldSymbol), statements As ImmutableArray(Of BoundStatement), valueOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8781Public Function Update(locals As ImmutableArray(Of LocalSymbol), spillFields As ImmutableArray(Of FieldSymbol), statements As ImmutableArray(Of BoundStatement), valueOpt As BoundExpression, type As TypeSymbol) As BoundSpillSequence
8830Public Sub New(syntax As SyntaxNode, original As BoundExpression, start As BoundExpression, lengthOpt As BoundExpression, source As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8883Public Function Update(original As BoundExpression, start As BoundExpression, lengthOpt As BoundExpression, source As BoundExpression, type As TypeSymbol) As BoundMidResult
8896Public Sub New(syntax As SyntaxNode, receiver As BoundExpression, placeholder As BoundRValuePlaceholder, accessExpression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8935Public Function Update(receiver As BoundExpression, placeholder As BoundRValuePlaceholder, accessExpression As BoundExpression, type As TypeSymbol) As BoundConditionalAccess
8948Public Sub New(syntax As SyntaxNode, placeholderId As Integer, type As TypeSymbol, hasErrors As Boolean)
8961Public Sub New(syntax As SyntaxNode, placeholderId As Integer, type As TypeSymbol)
8984Public Function Update(placeholderId As Integer, type As TypeSymbol) As BoundConditionalAccessReceiverPlaceholder
8997Public Sub New(syntax As SyntaxNode, receiverOrCondition As BoundExpression, captureReceiver As Boolean, placeholderId As Integer, whenNotNull As BoundExpression, whenNullOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
9057Public Function Update(receiverOrCondition As BoundExpression, captureReceiver As Boolean, placeholderId As Integer, whenNotNull As BoundExpression, whenNullOpt As BoundExpression, type As TypeSymbol) As BoundLoweredConditionalAccess
9070Public Sub New(syntax As SyntaxNode, valueTypeReceiver As BoundExpression, referenceTypeReceiver As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
9106Public Function Update(valueTypeReceiver As BoundExpression, referenceTypeReceiver As BoundExpression, type As TypeSymbol) As BoundComplexConditionalAccessReceiver
9119Public Sub New(syntax As SyntaxNode, argument As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
9154Public Function Update(argument As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundNameOfOperator
9167Public Sub New(syntax As SyntaxNode, expression As BoundTypeExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
9194Public Function Update(expression As BoundTypeExpression, type As TypeSymbol) As BoundTypeAsValueExpression
9207Public Sub New(syntax As SyntaxNode, contents As ImmutableArray(Of BoundNode), binder As Binder, type As TypeSymbol, Optional hasErrors As Boolean = False)
9243Public Function Update(contents As ImmutableArray(Of BoundNode), binder As Binder, type As TypeSymbol) As BoundInterpolatedStringExpression
12022Dim type as TypeSymbol = Me.VisitType(node.Type)
12027Dim type as TypeSymbol = Me.VisitType(node.Type)
12033Dim type as TypeSymbol = Me.VisitType(node.Type)
12038Dim type as TypeSymbol = Me.VisitType(node.Type)
12043Dim type as TypeSymbol = Me.VisitType(node.Type)
12048Dim type as TypeSymbol = Me.VisitType(node.Type)
12053Dim type as TypeSymbol = Me.VisitType(node.Type)
12058Dim type as TypeSymbol = Me.VisitType(node.Type)
12064Dim type as TypeSymbol = Me.VisitType(node.Type)
12075Dim type as TypeSymbol = Me.VisitType(node.Type)
12081Dim type as TypeSymbol = Me.VisitType(node.Type)
12088Dim type as TypeSymbol = Me.VisitType(node.Type)
12094Dim type as TypeSymbol = Me.VisitType(node.Type)
12100Dim type as TypeSymbol = Me.VisitType(node.Type)
12105Dim type as TypeSymbol = Me.VisitType(node.Type)
12110Dim type as TypeSymbol = Me.VisitType(node.Type)
12116Dim type as TypeSymbol = Me.VisitType(node.Type)
12121Dim type as TypeSymbol = Me.VisitType(node.Type)
12127Dim type as TypeSymbol = Me.VisitType(node.Type)
12132Dim type as TypeSymbol = Me.VisitType(node.Type)
12137Dim type as TypeSymbol = Me.VisitType(node.Type)
12142Dim type as TypeSymbol = Me.VisitType(node.Type)
12147Dim type as TypeSymbol = Me.VisitType(node.Type)
12152Dim type as TypeSymbol = Me.VisitType(node.Type)
12157Dim type as TypeSymbol = Me.VisitType(node.Type)
12163Dim type as TypeSymbol = Me.VisitType(node.Type)
12169Dim type as TypeSymbol = Me.VisitType(node.Type)
12175Dim type as TypeSymbol = Me.VisitType(node.Type)
12182Dim type as TypeSymbol = Me.VisitType(node.Type)
12188Dim type as TypeSymbol = Me.VisitType(node.Type)
12197Dim type as TypeSymbol = Me.VisitType(node.Type)
12202Dim type as TypeSymbol = Me.VisitType(node.Type)
12210Dim type as TypeSymbol = Me.VisitType(node.Type)
12217Dim type as TypeSymbol = Me.VisitType(node.Type)
12223Dim type as TypeSymbol = Me.VisitType(node.Type)
12231Dim type as TypeSymbol = Me.VisitType(node.Type)
12240Dim type as TypeSymbol = Me.VisitType(node.Type)
12247Dim type as TypeSymbol = Me.VisitType(node.Type)
12265Dim type as TypeSymbol = Me.VisitType(node.Type)
12272Dim type as TypeSymbol = Me.VisitType(node.Type)
12279Dim type as TypeSymbol = Me.VisitType(node.Type)
12285Dim targetType as TypeSymbol = Me.VisitType(node.TargetType)
12286Dim type as TypeSymbol = Me.VisitType(node.Type)
12297Dim type as TypeSymbol = Me.VisitType(node.Type)
12313Dim type as TypeSymbol = Me.VisitType(node.Type)
12319Dim type as TypeSymbol = Me.VisitType(node.Type)
12358Dim type as TypeSymbol = Me.VisitType(node.Type)
12365Dim type as TypeSymbol = Me.VisitType(node.Type)
12372Dim containerTypeOpt as TypeSymbol = Me.VisitType(node.ContainerTypeOpt)
12373Dim type as TypeSymbol = Me.VisitType(node.Type)
12381Dim type as TypeSymbol = Me.VisitType(node.Type)
12387Dim type as TypeSymbol = Me.VisitType(node.Type)
12393Dim type as TypeSymbol = Me.VisitType(node.Type)
12399Dim naturalTypeOpt as TypeSymbol = Me.VisitType(node.NaturalTypeOpt)
12400Dim type as TypeSymbol = Me.VisitType(node.Type)
12408Dim type as TypeSymbol = Me.VisitType(node.Type)
12414Dim type as TypeSymbol = Me.VisitType(node.Type)
12421Dim type as TypeSymbol = Me.VisitType(node.Type)
12426Dim type as TypeSymbol = Me.VisitType(node.Type)
12432Dim type as TypeSymbol = Me.VisitType(node.Type)
12439Dim type as TypeSymbol = Me.VisitType(node.Type)
12446Dim type as TypeSymbol = Me.VisitType(node.Type)
12452Dim type as TypeSymbol = Me.VisitType(node.Type)
12461Dim type as TypeSymbol = Me.VisitType(node.Type)
12469Dim type as TypeSymbol = Me.VisitType(node.Type)
12476Dim type as TypeSymbol = Me.VisitType(node.Type)
12482Dim type as TypeSymbol = Me.VisitType(node.Type)
12488Dim type as TypeSymbol = Me.VisitType(node.Type)
12496Dim type as TypeSymbol = Me.VisitType(node.Type)
12502Dim type as TypeSymbol = Me.VisitType(node.Type)
12563Dim type as TypeSymbol = Me.VisitType(node.Type)
12684Dim type as TypeSymbol = Me.VisitType(node.Type)
12689Dim type as TypeSymbol = Me.VisitType(node.Type)
12694Dim type as TypeSymbol = Me.VisitType(node.Type)
12699Dim type as TypeSymbol = Me.VisitType(node.Type)
12704Dim type as TypeSymbol = Me.VisitType(node.Type)
12709Dim type as TypeSymbol = Me.VisitType(node.Type)
12714Dim type as TypeSymbol = Me.VisitType(node.Type)
12719Dim type as TypeSymbol = Me.VisitType(node.Type)
12724Dim type as TypeSymbol = Me.VisitType(node.Type)
12729Dim type as TypeSymbol = Me.VisitType(node.Type)
12734Dim type as TypeSymbol = Me.VisitType(node.Type)
12744Dim type as TypeSymbol = Me.VisitType(node.Type)
12750Dim type as TypeSymbol = Me.VisitType(node.Type)
12759Dim type as TypeSymbol = Me.VisitType(node.Type)
12785Dim returnType as TypeSymbol = Me.VisitType(node.ReturnType)
12786Dim type as TypeSymbol = Me.VisitType(node.Type)
12792Dim type as TypeSymbol = Me.VisitType(node.Type)
12798Dim type as TypeSymbol = Me.VisitType(node.Type)
12804Dim type as TypeSymbol = Me.VisitType(node.Type)
12810Dim type as TypeSymbol = Me.VisitType(node.Type)
12816Dim compoundVariableType as TypeSymbol = Me.VisitType(node.CompoundVariableType)
12817Dim type as TypeSymbol = Me.VisitType(node.Type)
12823Dim compoundVariableType as TypeSymbol = Me.VisitType(node.CompoundVariableType)
12824Dim type as TypeSymbol = Me.VisitType(node.Type)
12830Dim type as TypeSymbol = Me.VisitType(node.Type)
12836Dim type as TypeSymbol = Me.VisitType(node.Type)
12842Dim type as TypeSymbol = Me.VisitType(node.Type)
12847Dim type as TypeSymbol = Me.VisitType(node.Type)
12855Dim compoundVariableType as TypeSymbol = Me.VisitType(node.CompoundVariableType)
12856Dim type as TypeSymbol = Me.VisitType(node.Type)
12862Dim type as TypeSymbol = Me.VisitType(node.Type)
12867Dim type as TypeSymbol = Me.VisitType(node.Type)
12905Dim type as TypeSymbol = Me.VisitType(node.Type)
12912Dim type as TypeSymbol = Me.VisitType(node.Type)
12919Dim type as TypeSymbol = Me.VisitType(node.Type)
12928Dim type as TypeSymbol = Me.VisitType(node.Type)
12936Dim type as TypeSymbol = Me.VisitType(node.Type)
12943Dim type as TypeSymbol = Me.VisitType(node.Type)
12951Dim type as TypeSymbol = Me.VisitType(node.Type)
12958Dim type as TypeSymbol = Me.VisitType(node.Type)
12964Dim type as TypeSymbol = Me.VisitType(node.Type)
12970Dim type as TypeSymbol = Me.VisitType(node.Type)
12977Dim type as TypeSymbol = Me.VisitType(node.Type)
12999Dim type as TypeSymbol = Me.VisitType(node.Type)
13024Dim type as TypeSymbol = Me.VisitType(node.Type)
13031Dim type as TypeSymbol = Me.VisitType(node.Type)
13048Dim type as TypeSymbol = Me.VisitType(node.Type)
13056Dim type as TypeSymbol = Me.VisitType(node.Type)
13061Dim type as TypeSymbol = Me.VisitType(node.Type)
13069Dim type as TypeSymbol = Me.VisitType(node.Type)
13076Dim type as TypeSymbol = Me.VisitType(node.Type)
13082Dim type as TypeSymbol = Me.VisitType(node.Type)
13088Dim type as TypeSymbol = Me.VisitType(node.Type)
13094Dim type as TypeSymbol = Me.VisitType(node.Type)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (9)
34Dim awaiterType As TypeSymbol = node.GetAwaiter.Type.InternalSubstituteTypeParameters(Me.TypeMap).Type
52Dim rewrittenType As TypeSymbol = VisitType(node.Type)
117Dim awaiterType As TypeSymbol = awaiterTemp.Type
118Dim awaiterFieldType As TypeSymbol = awaiterType
139If(TypeSymbol.Equals(awaiterField.Type, awaiterTemp.Type, TypeCompareKind.ConsiderEverything),
182ImmutableArray.Create(Of TypeSymbol)(asCriticalNotifyCompletion.Type, Me.F.Me().Type),
199ImmutableArray.Create(Of TypeSymbol)(asNotifyCompletion.Type, Me.F.Me().Type),
233ImmutableArray.Create(Of TypeSymbol)(awaiterType, Me.F.Me().Type),
264If(TypeSymbol.Equals(awaiterTemp.Type, awaiterField.Type, TypeCompareKind.ConsiderEverything),
Lowering\AsyncRewriter\AsyncRewriter.vb (14)
23Private ReadOnly _resultType As TypeSymbol
226Dim builderType As TypeSymbol = constructedBuilderField.Type
240ImmutableArray.Create(Of TypeSymbol)(frameType),
377Dim returnType As TypeSymbol = method.ReturnType
378If TypeSymbol.Equals(returnType, compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task), TypeCompareKind.ConsiderEverything) Then
383TypeSymbol.Equals(returnType.OriginalDefinition, compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T), TypeCompareKind.ConsiderEverything) Then
505type As TypeSymbol,
509Return GenerateMethodCall(receiver, type, methodName, ImmutableArray(Of TypeSymbol).Empty, arguments)
513type As TypeSymbol,
515typeArgs As ImmutableArray(Of TypeSymbol),
540type As TypeSymbol,
542typeArgs As ImmutableArray(Of TypeSymbol)) As BoundMethodGroup
575Private Function GeneratePropertyGet(receiver As BoundExpression, type As TypeSymbol, propertyName As String) As BoundExpression
602Private Function FindPropertyAndReturnPropertyGroup(receiver As BoundExpression, type As TypeSymbol, propertyName As String) As BoundPropertyGroup
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (33)
135Dim resultType As TypeSymbol = node.Type
137Dim resultNotNullableType As TypeSymbol = resultType.GetNullableUnderlyingTypeOrSelf
138Dim resultUnderlyingType As TypeSymbol = resultNotNullableType.GetEnumUnderlyingTypeOrSelf
150Dim operandType As TypeSymbol = originalLeft.Type
176Dim operandNotNullableType As TypeSymbol = operandType.GetNullableUnderlyingTypeOrSelf
177Dim operandUnderlyingType As TypeSymbol = operandNotNullableType.GetEnumUnderlyingTypeOrSelf
182Debug.Assert(TypeSymbol.Equals(operandType, originalLeft.Type, TypeCompareKind.ConsiderEverything))
187Debug.Assert(TypeSymbol.Equals(operandType, originalRight.Type, TypeCompareKind.ConsiderEverything))
240Dim operandActiveType As TypeSymbol = operandType
245Dim newType As TypeSymbol = If(operandIsNullable, Me._factory.NullableOf(operandUnderlyingType), operandUnderlyingType)
255Dim newType As TypeSymbol = If(operandIsNullable, Me._factory.NullableOf(Me.Int32Type), Me.Int32Type)
269Dim resultType As TypeSymbol = node.Type
271Dim resultUnderlyingType As TypeSymbol = GetUnderlyingType(resultType)
280Debug.Assert(TypeSymbol.Equals(resultType, originalLeft.Type, TypeCompareKind.ConsiderEverything))
284Debug.Assert(TypeSymbol.Equals(resultType, originalRight.Type, TypeCompareKind.ConsiderEverything))
287Dim systemBool As TypeSymbol = _factory.SpecialType(SpecialType.System_Boolean)
309Dim resultType As TypeSymbol = node.Type
311Dim resultNotNullableType As TypeSymbol = resultType.GetNullableUnderlyingTypeOrSelf
312Dim resultUnderlyingType As TypeSymbol = resultNotNullableType.GetEnumUnderlyingTypeOrSelf
391notNullableType As TypeSymbol,
397Dim underlyingType As TypeSymbol = notNullableType.GetEnumUnderlyingTypeOrSelf
409Private Function MaskShiftCountOperand(node As BoundBinaryOperator, resultType As TypeSymbol, isChecked As Boolean) As BoundExpression
421Dim shiftedType As TypeSymbol = resultType
426Dim operandType As TypeSymbol = operand.Type
436If Not TypeSymbol.Equals(operandType, Me.Int32Type, TypeCompareKind.ConsiderEverything) Then
463Private Function MaskShiftCountOperand(loweredOperand As BoundExpression, shiftedType As TypeSymbol, shiftMask As Integer, shiftConst As ConstantValue, isChecked As Boolean) As BoundExpression
473Dim int32Nullable As TypeSymbol = If(isNullable, Me._factory.NullableOf(Me.Int32Type), Nothing)
640Private Shared Function AdjustCallArgumentForLiftedOperator(oldArg As BoundExpression, parameterType As TypeSymbol) As BoundExpression
643Debug.Assert(TypeSymbol.Equals(oldArg.Type.GetNullableUnderlyingTypeOrSelf(), parameterType, TypeCompareKind.ConsiderEverything))
657Private Function AdjustCallForLiftedOperator(opKind As BinaryOperatorKind, [call] As BoundCall, resultType As TypeSymbol) As BoundExpression
664Private Function AdjustCallForLiftedOperator(opKind As UnaryOperatorKind, [call] As BoundCall, resultType As TypeSymbol) As BoundExpression
671Private Function AdjustCallForLiftedOperator_DoNotCallDirectly([call] As BoundCall, resultType As TypeSymbol) As BoundExpression
687Dim methodReturnType As TypeSymbol = [call].Method.ReturnType
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (16)
34Dim resultType As TypeSymbol = node.Type
35Dim testExpressionType As TypeSymbol = testExpression.Type
64Private Function CreateCoalesceLambdaParameterSymbol(paramType As TypeSymbol) As ParameterSymbol
72Private Function BuildLambdaForCoalesceCall(toType As TypeSymbol, lambdaParameter As ParameterSymbol, body As BoundExpression) As BoundExpression
73Dim parameterExpressionType As TypeSymbol = _factory.WellKnownType(WellKnownType.System_Linq_Expressions_ParameterExpression)
98Private Function BuildLambdaBodyForCoalesce(conversion As BoundConversion, toType As TypeSymbol, lambdaParameter As ParameterSymbol, isChecked As Boolean) As BoundExpression
105Dim parameterType As TypeSymbol = parameter.Type
122Private Function CreateUserDefinedNullableToUnderlyingConversion(expression As BoundExpression, nullableType As TypeSymbol, isChecked As Boolean) As BoundExpression
124Dim underlyingType As TypeSymbol = nullableType.GetNullableUnderlyingType
177toType As TypeSymbol,
185Dim callType As TypeSymbol = [call].Type
192Debug.Assert(TypeSymbol.Equals(method.ReturnType, callType, TypeCompareKind.ConsiderEverything))
193Debug.Assert(TypeSymbol.Equals(toType, conversion.Type, TypeCompareKind.ConsiderEverything))
195Dim expectedParameterType As TypeSymbol = method.Parameters(0).Type
196Dim realParameterType As TypeSymbol = parameter.Type
197Debug.Assert(TypeSymbol.Equals(expectedParameterType.GetNullableUnderlyingTypeOrSelf, realParameterType.GetNullableUnderlyingTypeOrSelf, TypeCompareKind.ConsiderEverything))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (36)
53Private Function ConvertExpression(operand As BoundExpression, conversion As ConversionKind, typeFrom As TypeSymbol, typeTo As TypeSymbol,
61Dim notNullableTo As TypeSymbol = typeTo.GetNullableUnderlyingTypeOrSelf
111Private Function ConvertLambda(node As BoundLambda, type As TypeSymbol) As BoundExpression
124Private Function CreateBuiltInConversion(typeFrom As TypeSymbol,
125typeTo As TypeSymbol,
135Dim notNullableTo As TypeSymbol = typeTo.GetNullableUnderlyingTypeOrSelf()
136Dim underlyingTo As TypeSymbol = notNullableTo.GetEnumUnderlyingTypeOrSelf()
138Dim notNullableFrom As TypeSymbol = typeFrom.GetNullableUnderlyingTypeOrSelf()
139Dim underlyingFrom As TypeSymbol = notNullableFrom.GetEnumUnderlyingTypeOrSelf()
148ElseIf TypeSymbol.Equals(notNullableFrom, notNullableTo, TypeCompareKind.ConsiderEverything) Then
161Dim interimType As TypeSymbol = notNullableFrom
162Debug.Assert(Not TypeSymbol.Equals(interimType, typeTo, TypeCompareKind.ConsiderEverything))
176ElseIf TypeSymbol.Equals(notNullableFrom, notNullableTo, TypeCompareKind.ConsiderEverything) Then
189Dim interimType As TypeSymbol = notNullableTo
190Debug.Assert(Not TypeSymbol.Equals(interimType, typeTo, TypeCompareKind.ConsiderEverything))
210Dim helperOperandType As TypeSymbol = specialHelper.Parameters(0).Type
215Dim helperReturnType As TypeSymbol = specialHelper.ReturnType
255Dim argumentType As TypeSymbol
272Dim typeBeforeNegation As TypeSymbol = GetSignedVersionOfNumericType(underlyingTo)
309Private Function GetSignedVersionOfNumericType(type As TypeSymbol) As TypeSymbol
324Private Function ConvertUnderlyingToNullable(operand As BoundExpression, nullableType As TypeSymbol, isChecked As Boolean) As BoundExpression
341Private Function ConvertNullableToUnderlying(operand As BoundExpression, nullableType As TypeSymbol, isChecked As Boolean) As BoundExpression
342Dim underlyingType As TypeSymbol = nullableType.GetNullableUnderlyingType
361Private Function CreateUserDefinedConversion(node As BoundUserDefinedConversion, resultType As TypeSymbol, isLifted As Boolean, isChecked As Boolean) As BoundExpression
366Dim methodCallType As TypeSymbol = methodCall.Type
401Private Function CreateTypeAs(expr As BoundExpression, type As TypeSymbol) As BoundExpression
405Private Function CreateTypeAsIfNeeded(operand As BoundExpression, oldType As TypeSymbol, newType As TypeSymbol) As BoundExpression
406Return If((TypeSymbol.Equals(oldType, newType, TypeCompareKind.ConsiderEverything)), operand, CreateTypeAs(operand, newType))
410Private Function Convert(expr As BoundExpression, type As TypeSymbol, isChecked As Boolean) As BoundExpression
415Private Function Convert(expr As BoundExpression, type As TypeSymbol, helper As MethodSymbol, isChecked As Boolean) As BoundExpression
420Private Function ConvertIfNeeded(operand As BoundExpression, oldType As TypeSymbol, newType As TypeSymbol, isChecked As Boolean) As BoundExpression
421Return If((TypeSymbol.Equals(oldType, newType, TypeCompareKind.ConsiderEverything)), operand, Convert(operand, newType, isChecked))
Lowering\LambdaRewriter\LambdaRewriter.vb (9)
361Debug.Assert(TypeSymbol.Equals(result.Type, frameType, TypeCompareKind.ConsiderEverything))
375If _currentFrameThis IsNot Nothing AndAlso TypeSymbol.Equals(_currentFrameThis.Type, frameClass, TypeCompareKind.ConsiderEverything) Then
482Friend Shared Function ConstructFrameType(Of T As TypeSymbol)(type As LambdaFrame, typeArguments As ImmutableArray(Of T)) As NamedTypeSymbol
484Return type.Construct(StaticCast(Of TypeSymbol).From(typeArguments))
507Debug.Assert(TypeSymbol.Equals(frameType, constructor.ContainingType, TypeCompareKind.ConsiderEverything))
809If TypeSymbol.Equals(newType, origLocal.Type, TypeCompareKind.ConsiderEverything) Then
1019Private Function RewriteLambda(node As BoundLambda, type As TypeSymbol, convertToExpressionTree As Boolean) As BoundExpression
1140referencedMethod = referencedMethod.Construct(StaticCast(Of TypeSymbol).From(_currentTypeParameters))
1170Dim cachedFieldType As TypeSymbol = If(containerAsFrame Is Nothing,
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (21)
175Private Function MakeTupleConversion(syntax As SyntaxNode, rewrittenOperand As BoundExpression, destinationType As TypeSymbol, convertedElements As BoundConvertedTupleElements) As BoundExpression
186Dim srcType As TypeSymbol = rewrittenOperand.Type
522resultType As TypeSymbol,
708Dim resultType As TypeSymbol = outConversion.Type
873Private Function RewriteReferenceTypeToCharArrayRankOneConversion(node As BoundConversion, typeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression
888Dim objectType As TypeSymbol = memberSymbol.Parameters(0).Type
918Private Function RewriteFromObjectConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
996Private Function RewriteToStringConversion(node As BoundConversion, underlyingTypeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression
1083Private Function RewriteFromStringConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
1141Private Function RewriteNumericOrBooleanToDecimalConversion(node As BoundConversion, underlyingTypeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression
1222Private Function RewriteDecimalToNumericOrBooleanConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
1277Private Function RewriteFloatingToIntegralConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
1418Dim typeFrom As TypeSymbol = operand.Type
1419Dim typeTo As TypeSymbol = node.Type
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (10)
17Private Function WrapInNullable(expr As BoundExpression, nullableType As TypeSymbol) As BoundExpression
266Private Shared Function NullableNull(syntax As SyntaxNode, nullableType As TypeSymbol) As BoundExpression
282type As TypeSymbol) As BoundExpression
297Private Function NullableFalse(syntax As SyntaxNode, nullableOfBoolean As TypeSymbol) As BoundExpression
303Private Function NullableTrue(syntax As SyntaxNode, nullableOfBoolean As TypeSymbol) As BoundExpression
309Private Function GetNullableMethod(syntax As SyntaxNode, nullableType As TypeSymbol, member As SpecialMember) As MethodSymbol
320Private Function NullableOfBooleanValue(syntax As SyntaxNode, isTrue As Boolean, nullableOfBoolean As TypeSymbol) As BoundExpression
376resultType As TypeSymbol) As BoundExpression
477Debug.Assert(TypeSymbol.Equals(left.Type, right.Type, TypeCompareKind.ConsiderEverything))
483Private Shared Function MakeNullLiteral(syntax As SyntaxNode, type As TypeSymbol) As BoundLiteral
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (6)
148Private Function CreateTempLocal(syntax As SyntaxNode, type As TypeSymbol, expr As BoundExpression, sideEffects As ArrayBuilder(Of BoundExpression)) As BoundLocal
187Debug.Assert(TypeSymbol.Equals(objCreation.ConstructorOpt.ContainingType, Me.Compilation.GetWellKnownType(WellKnownType.System_Xml_Linq_XElement), TypeCompareKind.ConsiderEverything))
201Debug.Assert(TypeSymbol.Equals(constructor.ContainingType, Me.Compilation.GetWellKnownType(WellKnownType.System_Xml_Linq_XDocument), TypeCompareKind.ConsiderEverything))
250Dim secondArgumentType As TypeSymbol = constructor.Parameters(1).Type
280Private Function CreateTempLocalInExpressionLambda(syntax As SyntaxNode, type As TypeSymbol, expr As BoundExpression) As BoundLocal
343arrayType As TypeSymbol,
Lowering\SyntheticBoundNodeFactory.vb (21)
115Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
121Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, synthesizedKind As SynthesizedLocalKind, slotIndex As Integer, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
127Public Function StateMachineField(type As TypeSymbol, implicitlyDefinedBy As Symbol, name As String, slotDebugInfo As LocalSlotDebugInfo, slotIndex As Integer, Optional accessibility As Accessibility = Accessibility.Private) As SynthesizedFieldSymbol
230Public Function NullableOf(type As TypeSymbol) As NamedTypeSymbol
303Debug.Assert(TypeSymbol.Equals(byRefLocal.Type, lValue.Type, TypeCompareKind.ConsiderEverything))
400Public Function SynthesizedLocal(type As TypeSymbol, Optional kind As SynthesizedLocalKind = SynthesizedLocalKind.LoweringTemp, Optional syntax As SyntaxNode = Nothing) As LocalSymbol
404Public Function SynthesizedParameter(type As TypeSymbol, name As String, Optional container As MethodSymbol = Nothing, Optional ordinal As Integer = 0) As ParameterSymbol
619Public Function [TryCast](expression As BoundExpression, type As TypeSymbol) As BoundTryCast
630Public Function [DirectCast](expression As BoundExpression, type As TypeSymbol) As BoundDirectCast
819Public Function Null(type As TypeSymbol) As BoundExpression
832Public Function Type(typeSym As TypeSymbol) As BoundTypeExpression
842Public Function [Typeof](typeSym As TypeSymbol) As BoundExpression
848Public Function TypeArguments(typeArgs As ImmutableArray(Of TypeSymbol)) As BoundTypeArguments
965Public Function InstrumentationPayloadRoot(analysisKind As Integer, payloadType As TypeSymbol, isLValue As Boolean) As BoundExpression
980Public Function Convert(type As TypeSymbol, arg As BoundExpression, Optional isChecked As Boolean = False) As BoundConversion
990Public Function Convert(type As TypeSymbol, arg As BoundExpression, convKind As ConversionKind, Optional isChecked As Boolean = False) As BoundConversion
997Public Function Array(elementType As TypeSymbol, ParamArray elements As BoundExpression()) As BoundExpression
1001Public Function Array(elementType As TypeSymbol, elements As ImmutableArray(Of BoundExpression)) As BoundExpression
1008Public Function Array(elementType As TypeSymbol, bounds As ImmutableArray(Of BoundExpression), elements As ImmutableArray(Of BoundExpression)) As BoundExpression
1017Public Function Conditional(condition As BoundExpression, consequence As BoundExpression, alternative As BoundExpression, type As TypeSymbol) As BoundTernaryConditionalExpression
1025Public Function Binary(kind As BinaryOperatorKind, type As TypeSymbol, left As BoundExpression, right As BoundExpression) As BoundBinaryOperator
Semantics\AccessCheck.vb (20)
64throughTypeOpt As TypeSymbol,
77throughTypeOpt As TypeSymbol,
92throughTypeOpt As TypeSymbol,
204throughTypeOpt As TypeSymbol,
278throughTypeOpt As TypeSymbol,
409Private Shared Function InheritsFromOrImplementsIgnoringConstruction(derivedType As TypeSymbol,
410baseType As TypeSymbol,
426Dim current As TypeSymbol = derivedType
487Private Shared Sub AddBaseInterfaces(derived As TypeSymbol, baseInterfaces As ArrayBuilder(Of NamedTypeSymbol), interfacesLookedAt As PooledHashSet(Of NamedTypeSymbol), basesBeingResolved As BasesBeingResolved)
493Dim candidates As ImmutableArray(Of TypeSymbol)
499candidates = ImmutableArray(Of TypeSymbol).CastUp(DirectCast(derived, NamedTypeSymbol).GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved))
501candidates = ImmutableArray(Of TypeSymbol).CastUp(derived.InterfacesNoUseSiteDiagnostics)
562Public ExposedType As TypeSymbol
588exposedType As TypeSymbol,
1033base As TypeSymbol,
1052Dim exposedType As TypeSymbol = accessExposure.ExposedType.DigThroughArrayType()
1109TypeBehindParam As TypeSymbol,
1124Dim exposedType As TypeSymbol = accessExposure.ExposedType.DigThroughArrayType()
1155typeBehindMember As TypeSymbol,
1185Dim exposedType As TypeSymbol = accessExposure.ExposedType.DigThroughArrayType()
Semantics\Conversions.vb (123)
512Public Shared Function ClassifyPredefinedConversion(source As TypeSymbol, target As TypeSymbol) As ConversionKind?
681Private Shared Function FastClassifyPredefinedConversion(source As TypeSymbol, target As TypeSymbol) As ConversionKind?
698destination As TypeSymbol,
795sourceType As TypeSymbol,
796targetType As TypeSymbol,
867targetType As TypeSymbol
882targetType As TypeSymbol
906Public Shared Function ClassifyConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
926Public Shared Function ClassifyPredefinedConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
932destination As TypeSymbol,
983Dim sourceType As TypeSymbol = If(source.Kind = BoundKind.TupleLiteral,
1012Public Shared Function ClassifyConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
1042Private Shared Function ClassifyExpressionReclassification(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1076Private Shared Function ClassifyUnboundLambdaConversion(source As UnboundLambda, destination As TypeSymbol) As ConversionKind
1136Public Shared Function ClassifyArrayLiteralConversion(source As BoundArrayLiteral, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1172Dim targetElementType As TypeSymbol = Nothing
1222Public Shared Function ClassifyInterpolatedStringConversion(source As BoundInterpolatedStringExpression, destination As TypeSymbol, binder As Binder) As ConversionKind
1235Public Shared Function ClassifyTupleConversion(source As BoundTupleLiteral, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1236If TypeSymbol.Equals(source.Type, destination, TypeCompareKind.ConsiderEverything) Then
1264Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = destination.GetElementTypesOfTupleOrCompatible()
1308Private Shared Function ClassifyArrayInitialization(source As BoundArrayInitialization, targetElementType As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1361Private Shared Function ClassifyAddressOfConversion(source As BoundAddressOfOperator, destination As TypeSymbol) As ConversionKind
1365Private Shared Function ClassifyQueryLambdaConversion(source As BoundQueryLambda, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1429booleanType As TypeSymbol,
1469Dim nullableOfBoolean As TypeSymbol = Nothing
1481nullableOfBoolean = nullableOfT.Construct(ImmutableArray.Create(Of TypeSymbol)(booleanType))
1526Private Shared Function ClassifyGroupTypeInferenceLambdaConversion(source As GroupTypeInferenceLambda, destination As TypeSymbol) As ConversionKind
1581Private Shared Function ClassifyNumericConstantConversion(constantExpression As BoundExpression, destination As TypeSymbol, binder As Binder) As ConversionKind
1588Dim targetDestinationType As TypeSymbol = destination.GetNullableUnderlyingTypeOrSelf()
1603Dim sourceType As TypeSymbol = constantExpression.Type
1695Private Shared Function ClassifyNothingLiteralConversion(constantExpression As BoundExpression, destination As TypeSymbol) As ConversionKind
1715source As TypeSymbol,
1716destination As TypeSymbol,
1783Public Shared Function ClassifyDirectCastConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1808Dim sourceType As TypeSymbol = source.Type
1822Public Shared Function ClassifyTryCastConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1839Public Shared Function ClassifyTryCastConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1864Dim sourceType As TypeSymbol = source.Type
1878Private Shared Function ClassifyTryCastConversionForTypeParameters(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2026Private Shared Function ClassOrBasesSatisfyConstraints([class] As TypeSymbol, typeParam As TypeParameterSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
2027Dim candidate As TypeSymbol = [class]
2045Private Shared Function GetNonInterfaceTypeConstraintOrSelf(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
2079Private Shared Function ClassifyUserDefinedConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
2103Private Shared Function ClassifyUserDefinedConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
2108Dim sourceType As TypeSymbol = source.Type
2188Public Shared Function ClassifyPredefinedConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2204Private Shared Function ClassifyPredefinedConversionSlow(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2262Private Shared Function AddDelegateRelaxationInformationForADelegate(source As TypeSymbol, destination As TypeSymbol, convKind As ConversionKind) As ConversionKind
2289Private Shared Function ClassifyIdentityConversion(source As TypeSymbol, destination As TypeSymbol) As ConversionKind
2305source As TypeSymbol,
2306destination As TypeSymbol,
2435source As TypeSymbol,
2436destination As TypeSymbol,
2510Public Shared Function HasWideningDirectCastConversionButNotEnumTypeConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
2760Dim sourceArguments As ImmutableArray(Of TypeSymbol) = source.TypeArgumentsWithDefinitionUseSiteDiagnostics(useSiteInfo)
2761Dim destinationArguments As ImmutableArray(Of TypeSymbol) = destination.TypeArgumentsWithDefinitionUseSiteDiagnostics(useSiteInfo)
2765Dim sourceArg As TypeSymbol = sourceArguments(i)
2766Dim destinationArg As TypeSymbol = destinationArguments(i)
2853candidate As TypeSymbol,
2896Private Shared Function IsClassType(type As TypeSymbol) As Boolean
2901Private Shared Function IsValueType(type As TypeSymbol) As Boolean
2906Private Shared Function IsDelegateType(type As TypeSymbol) As Boolean
2910Private Shared Function IsArrayType(type As TypeSymbol) As Boolean
2914Private Shared Function IsInterfaceType(type As TypeSymbol) As Boolean
2930Public Shared Function IsDerivedFrom(derivedType As TypeSymbol, baseType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
2938Private Shared Function ClassifyAnonymousDelegateConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2985source As TypeSymbol,
2986destination As TypeSymbol,
3032Public Shared Function ClassifyArrayElementConversion(srcElem As TypeSymbol, dstElem As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3046srcElem As TypeSymbol,
3047dstElem As TypeSymbol,
3070srcElem As TypeSymbol,
3071dstElem As TypeSymbol,
3204Dim srcValueType As TypeSymbol = srcElem
3205Dim dstValueType As TypeSymbol = dstElem
3333Private Shared Function ArrayElementBitSize(type As TypeSymbol) As Integer
3348Private Shared Function GetValueTypeConstraint(typeParam As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
3359Private Shared Function GetNonErrorEnumUnderlyingType(type As TypeSymbol) As NamedTypeSymbol
3371Private Shared Function ClassifyValueTypeConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3452Private Shared Function ClassifyNullableConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3471Dim srcUnderlying As TypeSymbol = Nothing
3472Dim dstUnderlying As TypeSymbol = Nothing
3563Private Shared Function ClassifyTupleConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3576Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = destination.GetElementTypesOfTupleOrCompatible()
3611Public Shared Function ClassifyStringConversion(source As TypeSymbol, destination As TypeSymbol) As ConversionKind
3617Dim shouldBeArray As TypeSymbol
3643source As TypeSymbol,
3644destination As TypeSymbol,
3699destination As TypeSymbol,
3721destination As TypeSymbol,
3769For Each constraint As TypeSymbol In typeParameter.ConstraintTypesWithDefinitionUseSiteDiagnostics(useSiteInfo)
3895source As TypeSymbol,
3934For Each constraint As TypeSymbol In typeParameter.ConstraintTypesWithDefinitionUseSiteDiagnostics(useSiteInfo)
4024returnTypeOfConvertFromMethod As TypeSymbol,
4026returnTypeOfConvertToMethod As TypeSymbol,
4038returnTypeOfConvertFromMethod As TypeSymbol,
4039returnTypeOfConvertToMethod As TypeSymbol,
4121delegateParameterType As TypeSymbol
4200Dim toParameterType As TypeSymbol = toMethodSignature.ParameterTypes(parameterIndex)
4201Dim lambdaParameterType As TypeSymbol = parameters(parameterIndex).Type
4246Dim operandType As TypeSymbol = conversion.Operand.Type
4550Public Overrides ReadOnly Property ElementType As TypeSymbol
4560Friend Overrides Function WithElementType(elementType As TypeSymbol) As ArrayTypeSymbol
Semantics\Operators.vb (64)
398Dim sourceType As TypeSymbol = method.Parameters(0).Type
399Dim targetType As TypeSymbol = method.ReturnType
469Private Shared Function OverloadedOperatorTargetsContainingType(containingType As NamedTypeSymbol, typeFromSignature As TypeSymbol) As Boolean
473Return TypeSymbol.Equals(typeFromSignature.GetNullableUnderlyingTypeOrSelf().GetTupleUnderlyingTypeOrSelf(), containingType.GetTupleUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything)
705resultType As TypeSymbol,
869Dim leftType As TypeSymbol = left.Type
870Dim rightType As TypeSymbol = right.Type
986Public Shared Function UseUserDefinedBinaryOperators(opCode As BinaryOperatorKind, leftType As TypeSymbol, rightType As TypeSymbol) As Boolean
1023resultType As TypeSymbol,
1123operandType As TypeSymbol,
1124resultType As TypeSymbol,
1298operandType As TypeSymbol,
1299resultType As TypeSymbol
1421resultType As TypeSymbol,
1927source As TypeSymbol,
1928destination As TypeSymbol,
1993Dim sourceUnderlying As TypeSymbol = source.GetNullableUnderlyingType()
1994Dim destinationUnderlying As TypeSymbol = destination.GetNullableUnderlyingType()
2032source As TypeSymbol,
2033destination As TypeSymbol,
2052Dim mostSpecificSourceType As TypeSymbol = Nothing
2053Dim mostSpecificTargetType As TypeSymbol = Nothing
2189Dim typeSet As ArrayBuilder(Of TypeSymbol) = Nothing
2192typeSet = ArrayBuilder(Of TypeSymbol).GetInstance()
2209typeSet = ArrayBuilder(Of TypeSymbol).GetInstance()
2259mostSpecificSourceType As TypeSymbol,
2260mostSpecificTargetType As TypeSymbol,
2299source As TypeSymbol,
2300destination As TypeSymbol,
2307Dim inputType As TypeSymbol = method.Parameters(0).Type
2308Dim outputType As TypeSymbol = method.ReturnType
2339inputType As TypeSymbol,
2340outputType As TypeSymbol,
2369source As TypeSymbol,
2370destination As TypeSymbol,
2388Dim mostSpecificSourceType As TypeSymbol = Nothing
2389Dim mostSpecificTargetType As TypeSymbol = Nothing
2582Dim typeSet As ArrayBuilder(Of TypeSymbol) = Nothing
2585typeSet = ArrayBuilder(Of TypeSymbol).GetInstance()
2614typeSet = ArrayBuilder(Of TypeSymbol).GetInstance()
2678Private Shared Function MostEncompassed(typeSet As ArrayBuilder(Of TypeSymbol), <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
2679Dim best As TypeSymbol = Nothing
2682Dim type As TypeSymbol = typeSet(i)
2723Private Shared Function MostEncompassing(typeSet As ArrayBuilder(Of TypeSymbol), <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
2724Dim best As TypeSymbol = Nothing
2727Dim type As TypeSymbol = typeSet(i)
2831source As TypeSymbol,
2832destination As TypeSymbol,
2848type1 As TypeSymbol,
2849type2 As TypeSymbol,
2909type As TypeSymbol,
2942Private Shared Function GetTypeToLookForOperatorsIn(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
3196Dim type1 As TypeSymbol = param1.Type
3201Dim type2 As TypeSymbol = Nothing
3222Dim returnType As TypeSymbol = method.ReturnType
3254Friend Shared Function CanLiftType(type As TypeSymbol) As Boolean
3258Friend Shared Function IsValidInLiftedSignature(type As TypeSymbol) As Boolean
3278Private ReadOnly _type As TypeSymbol
3280Public Sub New(parameter As ParameterSymbol, type As TypeSymbol)
3429Public Overrides ReadOnly Property Type As TypeSymbol
Semantics\OverloadResolution.vb (89)
35Friend MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
86Public MustOverride ReadOnly Property ReturnType As TypeSymbol
132Public MustOverride ReadOnly Property ReceiverType As TypeSymbol
138Public MustOverride ReadOnly Property ReceiverTypeDefinition As TypeSymbol
157Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
177Public Overrides ReadOnly Property ReturnType As TypeSymbol
183Public Overrides ReadOnly Property ReceiverType As TypeSymbol
189Public Overrides ReadOnly Property ReceiverTypeDefinition As TypeSymbol
249For Each fixed As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In method.FixedTypeParameters
284Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
288Public Overrides ReadOnly Property ReceiverType As TypeSymbol
294Public Overrides ReadOnly Property ReceiverTypeDefinition As TypeSymbol
329Private ReadOnly _returnType As TypeSymbol
331Public Sub New(method As MethodSymbol, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol)
348Public Overrides ReadOnly Property ReturnType As TypeSymbol
374Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
394Public Overrides ReadOnly Property ReturnType As TypeSymbol
400Public Overrides ReadOnly Property ReceiverType As TypeSymbol
406Public Overrides ReadOnly Property ReceiverTypeDefinition As TypeSymbol
876Optional delegateReturnType As TypeSymbol = Nothing,
884Dim typeArguments = If(methodGroup.TypeArgumentsOpt IsNot Nothing, methodGroup.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty)
888typeArguments = ImmutableArray(Of TypeSymbol).Empty
1025CollectOverloadedCandidates(binder, results, candidates, ImmutableArray(Of TypeSymbol).Empty,
1067delegateReturnType As TypeSymbol,
1229delegateReturnType As TypeSymbol,
1321delegateReturnType As TypeSymbol,
1434delegateReturnType As TypeSymbol,
1486delegateReturnType As TypeSymbol,
1584delegateReturnType As TypeSymbol,
1710delegateReturnType As TypeSymbol,
1796Dim leftParamType As TypeSymbol = GetParameterTypeFromVirtualSignature(left, left.ArgsToParamsOpt(k))
1797Dim rightParamType As TypeSymbol = GetParameterTypeFromVirtualSignature(right, right.ArgsToParamsOpt(k))
1818Dim leftType As TypeSymbol = left.Candidate.Parameters(k).Type
1819Dim rightType As TypeSymbol = right.Candidate.Parameters(k).Type
1936Dim leftParamType As TypeSymbol
1947Dim rightParamType As TypeSymbol
2013left As TypeSymbol,
2014right As TypeSymbol,
2148Dim argType As TypeSymbol = If(argument.Kind <> BoundKind.ArrayLiteral, argument.Type, DirectCast(argument, BoundArrayLiteral).InferredType)
2239Dim leftParamType As TypeSymbol
2250Dim rightParamType As TypeSymbol
2271leftParamType As TypeSymbol,
2272rightParamType As TypeSymbol,
2330delegateReturnType As TypeSymbol,
2536sourceType As TypeSymbol,
2537targetType As TypeSymbol
2547sourceType As TypeSymbol,
2548targetType As TypeSymbol,
2930Dim targetType As TypeSymbol = param.Type
3203targetType As TypeSymbol,
3282targetType As TypeSymbol,
3432targetType As TypeSymbol,
3490typeArguments As ImmutableArray(Of TypeSymbol),
3493delegateReturnType As TypeSymbol,
3692typeArguments As ImmutableArray(Of TypeSymbol),
3780typeArguments As ImmutableArray(Of TypeSymbol),
3783delegateReturnType As TypeSymbol,
3877typeArguments As ImmutableArray(Of TypeSymbol),
3880delegateReturnType As TypeSymbol,
3990Dim existingType As TypeSymbol = GetParameterTypeFromVirtualSignature(existingCandidate, existingParamIndex)
3991Dim newType As TypeSymbol = GetParameterTypeFromVirtualSignature(newCandidate, newParamIndex)
4034Dim existingType As TypeSymbol = existingCandidate.Candidate.Parameters(j).Type
4035Dim newType As TypeSymbol = newCandidate.Candidate.Parameters(j).Type
4255Dim leftParamType As TypeSymbol
4256Dim leftParamTypeForGenericityCheck As TypeSymbol = Nothing
4267Dim rightParamType As TypeSymbol
4268Dim rightParamTypeForGenericityCheck As TypeSymbol = Nothing
4357leftParamType As TypeSymbol,
4358rightParamType As TypeSymbol,
4435Dim leftParamType As TypeSymbol
4436Dim leftParamTypeForGenericityCheck As TypeSymbol = Nothing
4447Dim rightParamType As TypeSymbol
4448Dim rightParamTypeForGenericityCheck As TypeSymbol = Nothing
4499Private Shared Function CompareParameterTypeGenericDepth(leftType As TypeSymbol, rightType As TypeSymbol,
4551Dim leftTypeArguments As ImmutableArray(Of TypeSymbol) = leftNamedType.TypeArgumentsNoUseSiteDiagnostics
4552Dim rightTypeArguments As ImmutableArray(Of TypeSymbol) = rightNamedType.TypeArgumentsNoUseSiteDiagnostics
4659For Each argument As TypeSymbol In symbol.TypeArgumentsNoUseSiteDiagnostics
4701this As TypeSymbol,
4763Public Shared Function DoesReceiverMatchInstance(instanceType As TypeSymbol, receiverType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
4802) As TypeSymbol
4803Dim paramType As TypeSymbol = candidate.Candidate.Parameters(paramIndex).Type
4817ByRef typeForGenericityCheck As TypeSymbol
4818) As TypeSymbol
4829Dim paramType As TypeSymbol = param.Type
4856delegateReturnType As TypeSymbol,
4870Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing
4961Private Shared Function ConstructIfNeedTo(candidate As Candidate, typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
Semantics\TypeInference\TypeArgumentInference.vb (65)
23delegateReturnType As TypeSymbol,
25ByRef typeArguments As ImmutableArray(Of TypeSymbol),
132Private _inferredType As TypeSymbol
139Private _candidateInferredType As TypeSymbol
151Public ReadOnly Property InferredType As TypeSymbol
157Public ReadOnly Property CandidateInferredType As TypeSymbol
175Public Sub RegisterInferredType(inferredType As TypeSymbol, inferredFromLocation As SyntaxNodeOrToken, inferredTypeByAssumption As Boolean)
294Dim firstInferredType As TypeSymbol = Nothing
356type As TypeSymbol,
413Public ReadOnly ParameterType As TypeSymbol
417Public Sub New(graph As InferenceGraph, expression As BoundExpression, parameterType As TypeSymbol, parameter As ParameterSymbol)
501Dim argumentType As TypeSymbol = Nothing
567Dim expressionType As TypeSymbol
615Public ReadOnly DelegateReturnType As TypeSymbol
633delegateReturnType As TypeSymbol,
705delegateReturnType As TypeSymbol,
707ByRef typeArguments As ImmutableArray(Of TypeSymbol),
876Dim inferredTypes(arity - 1) As TypeSymbol
885Dim inferredType As TypeSymbol = typeParameterNode.InferredType
929Dim targetType As TypeSymbol = param.Type
1025targetType As TypeSymbol,
1067parameterType As TypeSymbol,
1101Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1125parameterType As TypeSymbol,
1150parameterType As TypeSymbol,
1174ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, binder.Compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
1185parameterType As TypeSymbol,
1238ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, binder.Compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
1244Private Shared Function ArgumentTypePossiblyMatchesParamarrayShape(argument As BoundExpression, paramType As TypeSymbol) As Boolean
1245Dim argumentType As TypeSymbol = argument.Type
1282inferredType As TypeSymbol,
1297parameterType As TypeSymbol
1323Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1361argumentType As TypeSymbol,
1363parameterType As TypeSymbol,
1397Dim parameterElementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1398Dim argumentElementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1612argumentType As TypeSymbol,
1614parameterType As TypeSymbol,
1772ByRef baseSearchType As TypeSymbol,
1773ByRef fixedType As TypeSymbol
1808Dim matchingBase As TypeSymbol = Nothing
1827Private Shared Function SetMatchIfNothingOrEqual(type As TypeSymbol, ByRef match As TypeSymbol) As Boolean
1842Private Function FindMatchingBaseInterface(derivedType As TypeSymbol, baseInterface As TypeSymbol, ByRef match As TypeSymbol) As Boolean
1875Private Function FindMatchingBaseClass(derivedType As TypeSymbol, baseClass As TypeSymbol, ByRef match As TypeSymbol) As Boolean
1914parameterType As TypeSymbol,
1929Dim returnType As TypeSymbol = invokeMethod.ReturnType
1959Dim targetReturnType As TypeSymbol = fromMethod.ReturnType
1985parameterType As TypeSymbol,
1994Dim anonymousLambdaType As TypeSymbol = Nothing
2058Dim returnType As TypeSymbol = invokeMethod.ReturnType
2116Dim lambdaReturnType As TypeSymbol
2144Dim returnTypeInfo As KeyValuePair(Of TypeSymbol, ImmutableBindingDiagnostic(Of AssemblySymbol)) = unboundLambda.InferReturnType(inferenceSignature)
2210Debug.Assert(TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T), TypeCompareKind.ConsiderEverything) OrElse
2211TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T), TypeCompareKind.ConsiderEverything) OrElse
2212TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T), TypeCompareKind.ConsiderEverything))
2260ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
2268Public Function ConstructParameterTypeIfNeeded(parameterType As TypeSymbol) As TypeSymbol
2277Dim newType As TypeSymbol
Symbols\ArrayTypeSymbol.vb (21)
25Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, compilation As VisualBasicCompilation) As ArrayTypeSymbol
32Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, declaringAssembly As AssemblySymbol) As ArrayTypeSymbol
41elementType As TypeSymbol,
66Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), compilation As VisualBasicCompilation) As ArrayTypeSymbol
70Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), declaringAssembly As AssemblySymbol) As ArrayTypeSymbol
77Private Shared Function GetSZArrayInterfaces(elementType As TypeSymbol, declaringAssembly As AssemblySymbol) As ImmutableArray(Of NamedTypeSymbol)
166Public MustOverride ReadOnly Property ElementType As TypeSymbol
318Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
354Dim current As TypeSymbol = Me
364Friend MustOverride Function WithElementType(elementType As TypeSymbol) As ArrayTypeSymbol
383Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
466Private ReadOnly _elementType As TypeSymbol
470Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol)
485Public NotOverridable Overrides ReadOnly Property ElementType As TypeSymbol
540Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol, interfaces As ImmutableArray(Of NamedTypeSymbol))
571Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
589Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol)
619Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol)
623Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
642elementType As TypeSymbol,
675Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
Symbols\ConstraintsHelper.vb (19)
385type As TypeSymbol,
411type As TypeSymbol,
431Private ReadOnly s_checkConstraintsSingleTypeFunc As Func(Of TypeSymbol, CheckConstraintsDiagnosticsBuilders, Boolean) = AddressOf CheckConstraintsSingleType
433Private Function CheckConstraintsSingleType(type As TypeSymbol, diagnostics As CheckConstraintsDiagnosticsBuilders) As Boolean
604typeArguments As ImmutableArray(Of TypeSymbol),
633typeArgument As TypeSymbol,
729Public Function GetNonInterfaceConstraint(typeParameter As TypeParameterSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
730Dim result As TypeSymbol = Nothing
734Dim candidate As TypeSymbol = Nothing
764Dim result As TypeSymbol = Nothing
886typeArgument As TypeSymbol,
887constraintType As TypeSymbol,
901typeArgument As TypeSymbol,
951typeArgument As TypeSymbol,
971typeArgument As TypeSymbol,
978Dim containingType = TryCast(constructedSymbol, TypeSymbol)
1080Private Function IsNullableTypeOrTypeParameter(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
1140Private Function ContainsTypeConstraint(constraints As ArrayBuilder(Of TypeParameterConstraint), constraintType As TypeSymbol) As Boolean
1165Debug.Assert(Not TypeSymbol.Equals(type.ConstructedFrom, type, TypeCompareKind.ConsiderEverything))
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (22)
26Private ReadOnly _containingType As TypeSymbol
28Public Sub New(moduleSymbol As PEModuleSymbol, containingType As TypeSymbol)
41Protected Overrides Function GetGenericMethodTypeParamSymbol(position As Integer) As TypeSymbol
48Protected Overrides Function GetGenericTypeParamSymbol(position As Integer) As TypeSymbol
124Dim targetParamInfo As ParamInfo(Of TypeSymbol)() = Me.DecodeSignatureParametersOrThrow(signaturePointer, signatureHeader, typeParamCount)
133Dim fieldInfo As FieldInfo(Of TypeSymbol) = Me.DecodeFieldSignature(signaturePointer)
145Private Shared Function FindFieldBySignature(targetTypeSymbol As TypeSymbol, targetMemberName As String, fieldInfo As FieldInfo(Of TypeSymbol)) As FieldSymbol
147Dim type As TypeSymbol = Nothing
148Dim customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing
154TypeSymbol.Equals(field.Type, type, TypeCompareKind.AllIgnoreOptionsForVB) AndAlso
166Private Shared Function FindMethodBySignature(targetTypeSymbol As TypeSymbol, targetMemberName As String, targetMemberSignatureHeader As SignatureHeader, targetMemberTypeParamCount As Integer, targetParamInfo As ParamInfo(Of TypeSymbol)()) As MethodSymbol
184Private Shared Function MethodSymbolMatchesParamInfo(candidateMethod As MethodSymbol, targetParamInfo As ParamInfo(Of TypeSymbol)()) As Boolean
194candidateMethod = candidateMethod.Construct(StaticCast(Of TypeSymbol).From(IndexedTypeParameterSymbol.Take(candidateMethod.Arity)))
210Private Shared Function ParametersMatch(candidateParam As ParameterSymbol, ByRef targetParam As ParamInfo(Of TypeSymbol)) As Boolean
219If Not TypeSymbol.Equals(candidateParam.Type, targetParam.Type, TypeCompareKind.AllIgnoreOptionsForVB) Then
231Private Shared Function ReturnTypesMatch(candidateMethod As MethodSymbol, ByRef targetReturnParam As ParamInfo(Of TypeSymbol)) As Boolean
232Dim candidateReturnType As TypeSymbol = candidateMethod.ReturnType
233Dim targetReturnType As TypeSymbol = targetReturnParam.Type
236If Not TypeSymbol.Equals(candidateReturnType, targetReturnType, TypeCompareKind.AllIgnoreOptionsForVB) OrElse candidateMethod.ReturnsByRef <> targetReturnParam.IsByRef Then
248Private Shared Function CustomModifiersMatch(candidateReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier), targetReturnTypeCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As Boolean
Symbols\Metadata\PE\MetadataDecoder.vb (26)
19Inherits MetadataDecoder(Of PEModuleSymbol, TypeSymbol, MethodSymbol, FieldSymbol, Symbol)
72Protected Overrides Function GetGenericMethodTypeParamSymbol(position As Integer) As TypeSymbol
87Protected Overrides Function GetGenericTypeParamSymbol(position As Integer) As TypeSymbol
105Protected Overrides Function GetTypeHandleToTypeMap() As ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol)
109Protected Overrides Function GetTypeRefHandleToTypeMap() As ConcurrentDictionary(Of TypeReferenceHandle, TypeSymbol)
114container As TypeSymbol,
116) As TypeSymbol
129) As TypeSymbol
145Protected Overrides Function LookupTopLevelTypeDefSymbol(moduleName As String, ByRef emittedName As MetadataTypeName, <Out> ByRef isNoPiaLocalType As Boolean) As TypeSymbol
171Protected Overloads Overrides Function LookupTopLevelTypeDefSymbol(ByRef emittedName As MetadataTypeName, <Out> ByRef isNoPiaLocalType As Boolean) As TypeSymbol
192Public Shared Function IsOrClosedOverATypeFromAssemblies(this As TypeSymbol, assemblies As ImmutableArray(Of AssemblySymbol)) As Boolean
242) As TypeSymbol
244Dim result As TypeSymbol
248Dim baseType As TypeSymbol = Nothing
273Dim cache As ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol) = GetTypeHandleToTypeMap()
276Dim newresult As TypeSymbol = cache.GetOrAdd(typeDef, result)
290baseType As TypeSymbol,
421Protected Overrides Function FindMethodSymbolInType(typeSymbol As TypeSymbol, targetMethodDef As MethodDefinitionHandle) As MethodSymbol
446Protected Overrides Function FindFieldSymbolInType(typeSymbol As TypeSymbol, fieldDef As FieldDefinitionHandle) As FieldSymbol
459Friend Overrides Function GetSymbolForMemberRef(memberRef As MemberReferenceHandle, Optional scope As TypeSymbol = Nothing, Optional methodsOnly As Boolean = False) As Symbol
460Dim targetTypeSymbol As TypeSymbol = GetMemberRefTypeSymbol(memberRef)
468If scope IsNot Nothing AndAlso Not TypeSymbol.Equals(targetTypeSymbol, scope, TypeCompareKind.ConsiderEverything) AndAlso Not targetTypeSymbol.IsBaseTypeOrInterfaceOf(scope, CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
489Protected Overrides Sub EnqueueTypeSymbolInterfacesAndBaseTypes(typeDefsToSearch As Queue(Of TypeDefinitionHandle), typeSymbolsToSearch As Queue(Of TypeSymbol), typeSymbol As TypeSymbol)
497Protected Overrides Sub EnqueueTypeSymbol(typeDefsToSearch As Queue(Of TypeDefinitionHandle), typeSymbolsToSearch As Queue(Of TypeSymbol), typeSymbol As TypeSymbol)
Symbols\Metadata\PE\PEParameterSymbol.vb (13)
26Private ReadOnly _type As TypeSymbol
71ByRef parameter As ParamInfo(Of TypeSymbol),
82type As TypeSymbol,
103type As TypeSymbol,
138refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
139type As TypeSymbol,
141customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
157type As TypeSymbol,
215type As TypeSymbol,
237refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
238type As TypeSymbol,
240customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
466Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Metadata\PE\SymbolFactory.vb (25)
11Inherits SymbolFactory(Of PEModuleSymbol, TypeSymbol)
18elementType As TypeSymbol,
19customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
22) As TypeSymbol
33Friend Overrides Function GetSpecialType(moduleSymbol As PEModuleSymbol, specialType As SpecialType) As TypeSymbol
37Friend Overrides Function GetSystemTypeSymbol(moduleSymbol As PEModuleSymbol) As TypeSymbol
41Friend Overrides Function GetEnumUnderlyingType(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As TypeSymbol
45Friend Overrides Function GetPrimitiveTypeCode(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As Microsoft.Cci.PrimitiveTypeCode
49Friend Overrides Function GetSZArrayTypeSymbol(moduleSymbol As PEModuleSymbol, elementType As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol
60Friend Overrides Function GetUnsupportedMetadataTypeSymbol(moduleSymbol As PEModuleSymbol, exception As BadImageFormatException) As TypeSymbol
64Friend Overrides Function MakePointerTypeSymbol(moduleSymbol As PEModuleSymbol, type As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol
70genericTypeDef As TypeSymbol,
71arguments As ImmutableArray(Of KeyValuePair(Of TypeSymbol, ImmutableArray(Of ModifierInfo(Of TypeSymbol)))),
73) As TypeSymbol
140Return DirectCast(constructedType, TypeSymbol)
143Friend Overrides Function MakeUnboundIfGeneric(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As TypeSymbol
148Friend Overrides Function MakeFunctionPointerTypeSymbol(moduleSymbol As PEModuleSymbol, callingConvention As Cci.CallingConvention, retAndParamTypes As ImmutableArray(Of ParamInfo(Of TypeSymbol))) As TypeSymbol
Symbols\ReducedExtensionMethodSymbol.vb (32)
22Private ReadOnly _receiverType As TypeSymbol
24Private ReadOnly _fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol))
28Private _lazyReturnType As TypeSymbol
35Public Shared Function Create(instanceType As TypeSymbol, possiblyExtensionMethod As MethodSymbol, proximity As Integer, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As MethodSymbol
56Dim receiverType As TypeSymbol = possiblyExtensionMethod.Parameters(0).Type
62Dim fixWithArray As ImmutableArray(Of TypeSymbol) = Nothing
71Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing
119Dim fixWith = ArrayBuilder(Of TypeSymbol).GetInstance(toFixCount)
181Dim fixedTypeParameters = ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty
184Dim fixed = ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).GetInstance(typeParametersToFixArray.Length)
187fixed.Add(New KeyValuePair(Of TypeParameterSymbol, TypeSymbol)(typeParametersToFixArray(i), fixWithArray(i)))
199receiverType As TypeSymbol,
201fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)),
222Dim curryTypeArguments(curriedFromMethod.Arity - 1) As TypeSymbol
228Dim fixed As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) = fixedTypeParameters(i)
256Public Overrides ReadOnly Property ReceiverType As TypeSymbol
262Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol))
268Public Overrides Function GetTypeInferredDuringReduction(reducedFromTypeParameter As TypeParameterSymbol) As TypeSymbol
277For Each pair As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In _fixedTypeParameters
278If TypeSymbol.Equals(pair.Key, reducedFromTypeParameter, TypeCompareKind.ConsiderEverything) Then
302Dim resultTypeArguments(_curriedFromMethod.Arity - 1) As TypeSymbol
304For Each pair As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In _fixedTypeParameters
369Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol)
371Return StaticCast(Of TypeSymbol).From(_curriedTypeParameters)
381Public Overrides ReadOnly Property ReturnType As TypeSymbol
384Dim type As TypeSymbol = _curriedFromMethod.ReturnType
713Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
798Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
820Private _lazyType As TypeSymbol
833Public Overrides ReadOnly Property Type As TypeSymbol
837Dim paramType As TypeSymbol = m_CurriedFromParameter.Type
863Public MustOverride Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingSymbolTranslator.vb (20)
139Return marshallingInfo.WithTranslatedTypes(Of TypeSymbol, RetargetingSymbolTranslator)(
140Function(type, translator) translator.Retarget(DirectCast(type, TypeSymbol), RetargetOptions.RetargetPrimitiveTypesByTypeCode), Me)
143Public Function Retarget(symbol As TypeSymbol, options As RetargetOptions) As TypeSymbol
144Return DirectCast(symbol.Accept(Me, options), TypeSymbol)
320Dim cached As TypeSymbol = Nothing
454Dim newArg = New TypeWithModifiers(DirectCast(arg.Type.Accept(Me, RetargetOptions.RetargetPrimitiveTypesByTypeCode), TypeSymbol),
457If Not anythingRetargeted AndAlso (modifiersHaveChanged OrElse Not TypeSymbol.Equals(newArg.Type, arg.Type, TypeCompareKind.ConsiderEverything)) Then
545Private Function IsOrClosedOverAnExplicitLocalType(symbol As TypeSymbol) As Boolean
589Dim oldElement As TypeSymbol = type.ElementType
590Dim newElement As TypeSymbol = Retarget(oldElement, RetargetOptions.RetargetPrimitiveTypesByTypeCode)
731Dim oldConstantType As TypeSymbol = DirectCast(oldConstant.TypeInternal, TypeSymbol)
732Dim newConstantType As TypeSymbol = If(oldConstantType Is Nothing,
749newConstantValue = Retarget(DirectCast(oldConstantValue, TypeSymbol), RetargetOptions.RetargetPrimitiveTypesByTypeCode)
862Public Function Retarget(sequence As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol)
863Dim result = ArrayBuilder(Of TypeSymbol).GetInstance(sequence.Length)
865For Each ts As TypeSymbol In sequence
1065If TypeSymbol.Equals(retargetedEvent.Type, retargetedEventType, TypeCompareKind.ConsiderEverything) Then
Symbols\SignatureOnlyMethodSymbol.vb (6)
22Private ReadOnly _containingType As TypeSymbol
28Private ReadOnly _returnType As TypeSymbol
34Public Sub New(ByVal name As String, ByVal m_containingType As TypeSymbol, ByVal methodKind As MethodKind, ByVal callingConvention As CallingConvention, ByVal typeParameters As ImmutableArray(Of TypeParameterSymbol), ByVal parameters As ImmutableArray(Of ParameterSymbol),
35ByVal returnsByRef As Boolean, ByVal returnType As TypeSymbol, ByVal returnTypeCustomModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier),
88Public Overrides ReadOnly Property ReturnType() As TypeSymbol
180Public Overrides ReadOnly Property TypeArguments() As ImmutableArray(Of TypeSymbol)
Symbols\Source\LocalSymbol.vb (23)
25Private _lazyType As TypeSymbol
48type As TypeSymbol) As LocalSymbol
61type As TypeSymbol,
70Friend Shared Function Create(originalVariable As LocalSymbol, type As TypeSymbol) As LocalSymbol
102Friend Sub New(container As Symbol, type As TypeSymbol)
123Public Overridable ReadOnly Property Type As TypeSymbol
152Public Sub SetType(type As TypeSymbol)
162Friend Overridable Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
493type As TypeSymbol)
604Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
606Dim type As TypeSymbol = ComputeTypeInternal(If(containingBinder, _binder))
610Friend Overridable Function ComputeTypeInternal(containingBinder As Binder) As TypeSymbol
650type As TypeSymbol,
694Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol
696Dim type As TypeSymbol = Nothing
762Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
768Dim type As TypeSymbol = Nothing
812Public Sub New(value As ConstantValue, type As TypeSymbol, expression As BoundExpression, diagnostics As BindingDiagnosticBag)
845Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol
847Dim declType As TypeSymbol = Nothing
848Dim type As TypeSymbol = Nothing
915Private Sub SetConstantExpression(type As TypeSymbol, constantValue As ConstantValue, expression As BoundExpression, diagnostics As BindingDiagnosticBag)
950Public Sub New(originalVariable As LocalSymbol, type As TypeSymbol)
Symbols\Source\SourceDelegateMethodSymbol.vb (13)
26Private ReadOnly _returnType As TypeSymbol
32returnType As TypeSymbol)
47Public Overrides ReadOnly Property ReturnType As TypeSymbol
78Dim returnType As TypeSymbol = BindReturnType(syntax, binder, diagnostics)
108Private Shared Function BindReturnType(syntax As VisualBasicSyntaxNode, binder As Binder, diagnostics As BindingDiagnosticBag) As TypeSymbol
215voidType As TypeSymbol,
216objectType As TypeSymbol,
217intPtrType As TypeSymbol,
248returnType As TypeSymbol,
275iAsyncResultType As TypeSymbol,
276objectType As TypeSymbol,
277asyncCallbackType As TypeSymbol,
323iAsyncResultType As TypeSymbol,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (29)
494If TypeSymbol.Equals(iface, implementedInterface, TypeCompareKind.ConsiderEverything) Then
582type As TypeSymbol,
619type As TypeSymbol,
1051For Each constraint As TypeSymbol In param.ConstraintTypesNoUseSiteDiagnostics
1117Dim type As TypeSymbol = [event].Type
2989If Not Equals(TryCast(sym, TypeSymbol), type, TypeCompareKind.ConsiderEverything) Then
3034Dim asType = TryCast(firstAssociatedSymbol, TypeSymbol)
3784Debug.Assert(Not TypeSymbol.Equals([interface], other, TypeCompareKind.ConsiderEverything))
3810Debug.Assert(interface2.IsGenericType AndAlso TypeSymbol.Equals(interface1.OriginalDefinition, interface2.OriginalDefinition, TypeCompareKind.ConsiderEverything))
3901If (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3905ElseIf (Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3910ElseIf (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3916Debug.Assert(Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything))
3982If (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3986ElseIf (Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3991ElseIf (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3997Debug.Assert(Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything))
4048Inherits EqualityComparer(Of TypeSymbol)
4062Public Overrides Function Equals(type1 As TypeSymbol, type2 As TypeSymbol) As Boolean
4068Public Overrides Function GetHashCode(obj As TypeSymbol) As Integer
Symbols\Source\SourceNamedTypeSymbol.vb (11)
64Private _lazyCoClassType As TypeSymbol = ErrorTypeSymbol.UnknownResultType
880Dim constraintTypes1 = New HashSet(Of TypeSymbol)
1220Dim interfacesInThisPartial As New HashSet(Of TypeSymbol)()
1340If TypeSymbol.Equals(bt, base, TypeCompareKind.ConsiderEverything) Then
1761Debug.Assert(TypeSymbol.Equals(underlyingType, Me._lazyEnumUnderlyingType, TypeCompareKind.ConsiderEverything))
1924Friend Overrides ReadOnly Property CoClassType As TypeSymbol
1928Interlocked.CompareExchange(_lazyCoClassType, Nothing, DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
1935DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
2212Debug.Assert(DirectCast(argument.TypeInternal, TypeSymbol).Equals(DeclaringCompilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything))
2219DirectCast(argument.ValueInternal, TypeSymbol),
2220DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
Symbols\Symbol.vb (12)
917Friend Function DeriveUseSiteInfoFromType(type As TypeSymbol) As UseSiteInfo(Of AssemblySymbol)
1053Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(Of T As TypeSymbol)(types As ImmutableArray(Of T), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1064Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(modifiers As ImmutableArray(Of CustomModifier), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1066Dim info = DirectCast(modifier.Modifier, TypeSymbol).GetUnificationUseSiteDiagnosticRecursive(owner, checkedTypes)
1075Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(parameters As ImmutableArray(Of ParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1089Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(typeParameters As ImmutableArray(Of TypeParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1292Protected Shared Function ConstructTypeArguments(ParamArray typeArguments() As ITypeSymbol) As ImmutableArray(Of TypeSymbol)
1293Dim builder = ArrayBuilder(Of TypeSymbol).GetInstance(typeArguments.Length)
1295builder.Add(typeArg.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(typeArguments)))
1300Protected Shared Function ConstructTypeArguments(typeArguments As ImmutableArray(Of ITypeSymbol), typeArgumentNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As ImmutableArray(Of TypeSymbol)
1310Return typeArguments.SelectAsArray(Function(typeArg) typeArg.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(typeArguments)))
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (9)
13Private ReadOnly _returnType As TypeSymbol
15Public Sub New(container As NamedTypeSymbol, name As String, rightType As TypeSymbol, returnType As TypeSymbol)
24Public Sub New(container As NamedTypeSymbol, name As String, returnType As TypeSymbol)
60Public Overrides ReadOnly Property ReturnType As TypeSymbol
79TypeSymbol.Equals(m_containingType, other.m_containingType, TypeCompareKind.ConsiderEverything) AndAlso
80TypeSymbol.Equals(_returnType, other._returnType, TypeCompareKind.ConsiderEverything) Then
83If Not TypeSymbol.Equals(_parameters(i).Type, other._parameters(i).Type, TypeCompareKind.ConsiderEverything) Then
191Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String)
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (9)
21Protected ReadOnly _type As TypeSymbol
32Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String)
232Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
274Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, Optional name As String = "")
286Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, isOptional As Boolean, defaultValue As ConstantValue)
294Public Shared Function Create(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String,
306Dim valueParameterType As TypeSymbol = propertySymbol.Type
392Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String,
427Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, location As Location)
Symbols\Tuples\TupleTypeSymbol.vb (24)
44Private ReadOnly _elementTypes As ImmutableArray(Of TypeSymbol)
84Public Overrides ReadOnly Property TupleElementTypes As ImmutableArray(Of TypeSymbol)
216Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
218Return ImmutableArray(Of TypeSymbol).Empty
333elementNames As ImmutableArray(Of String), elementTypes As ImmutableArray(Of TypeSymbol),
342elementTypes As ImmutableArray(Of TypeSymbol), errorPositions As ImmutableArray(Of Boolean))
361elementTypes As ImmutableArray(Of TypeSymbol),
413Dim elementTypes As ImmutableArray(Of TypeSymbol)
416Dim tupleElementTypes As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleElementTypes
417Dim instance As ArrayBuilder(Of TypeSymbol) = ArrayBuilder(Of TypeSymbol).GetInstance(TupleTypeSymbol.RestPosition - 1 + tupleElementTypes.Length)
461Dim typeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics
512Friend Shared Sub AddElementTypes(underlyingTupleType As NamedTypeSymbol, tupleElementTypes As ArrayBuilder(Of TypeSymbol))
543Private Shared Function GetTupleUnderlyingType(elementTypes As ImmutableArray(Of TypeSymbol), syntax As SyntaxNode, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol
554Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.Construct(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder))
563Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol)
970Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
1021Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1057Public Shared Function TransformToTupleIfCompatible(target As TypeSymbol) As TypeSymbol
1058Dim result As TypeSymbol
1067Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
1105Friend Shared Sub ReportNamesMismatchesIfAny(destination As TypeSymbol, literal As BoundTupleLiteral, diagnostics As BindingDiagnosticBag)
Symbols\TypeSubstitution.vb (10)
154Public Function GetTypeArgumentsFor(originalDefinition As NamedTypeSymbol, <Out> ByRef hasTypeArgumentsCustomModifiers As Boolean) As ImmutableArray(Of TypeSymbol)
160Dim result = ArrayBuilder(Of TypeSymbol).GetInstance(originalDefinition.Arity, fillWithValue:=Nothing)
244Dim value As TypeSymbol = pair.Value.Type
379args() As TypeSymbol,
480Private Shared ReadOnly s_withoutModifiers As Func(Of TypeSymbol, TypeWithModifiers) = Function(arg) New TypeWithModifiers(arg)
485args As ImmutableArray(Of TypeSymbol),
497args As ImmutableArray(Of TypeSymbol),
861Public Function SubstituteCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier)
879If Not TypeSymbol.Equals(modifier, substituted, TypeCompareKind.ConsiderEverything) Then
888If Not TypeSymbol.Equals(modifier, substituted, TypeCompareKind.ConsiderEverything) Then
Symbols\TypeSymbol.vb (20)
34Private Shared ReadOnly s_EmptyTypeSymbols() As TypeSymbol = Array.Empty(Of TypeSymbol)
59Public Shared ReadOnly Property EmptyTypeSymbolsList As IList(Of TypeSymbol)
70Public Shadows ReadOnly Property OriginalDefinition As TypeSymbol
76Protected Overridable ReadOnly Property OriginalTypeSymbolDefinition As TypeSymbol
305Public Overloads Shared Operator =(left As TypeSymbol, right As TypeSymbol) As Boolean
310Public Overloads Shared Operator <>(left As TypeSymbol, right As TypeSymbol) As Boolean
315Public Overloads Shared Operator =(left As Symbol, right As TypeSymbol) As Boolean
320Public Overloads Shared Operator <>(left As Symbol, right As TypeSymbol) As Boolean
325Public Overloads Shared Operator =(left As TypeSymbol, right As Symbol) As Boolean
330Public Overloads Shared Operator <>(left As TypeSymbol, right As Symbol) As Boolean
334Public Overloads Shared Function Equals(left As TypeSymbol, right As TypeSymbol, comparison As TypeCompareKind) As Boolean
339Return Equals(TryCast(obj, TypeSymbol), TypeCompareKind.ConsiderEverything)
343Return Equals(TryCast(other, TypeSymbol), compareKind)
348Public MustOverride Overloads Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
463Public Overridable ReadOnly Property TupleElementTypes() As ImmutableArray(Of TypeSymbol)
523Friend MustOverride Overloads Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\TypeSymbolExtensions.vb (145)
14Public Function IsNullableType(this As TypeSymbol) As Boolean
19Public Function IsNullableOfBoolean(this As TypeSymbol) As Boolean
24Public Function GetNullableUnderlyingType(type As TypeSymbol) As TypeSymbol
30Public Function GetNullableUnderlyingTypeOrSelf(type As TypeSymbol) As TypeSymbol
41Public Function GetEnumUnderlyingType(type As TypeSymbol) As TypeSymbol
48Public Function GetEnumUnderlyingTypeOrSelf(type As TypeSymbol) As TypeSymbol
53Public Function GetTupleUnderlyingType(type As TypeSymbol) As TypeSymbol
60Public Function GetTupleUnderlyingTypeOrSelf(type As TypeSymbol) As TypeSymbol
65Public Function TryGetElementTypesIfTupleOrCompatible(type As TypeSymbol, <Out> ByRef elementTypes As ImmutableArray(Of TypeSymbol)) As Boolean
85Dim elementTypesBuilder = ArrayBuilder(Of TypeSymbol).GetInstance(cardinality)
95Public Function GetElementTypesOfTupleOrCompatible(Type As TypeSymbol) As ImmutableArray(Of TypeSymbol)
109Dim elementTypesBuilder = ArrayBuilder(Of TypeSymbol).GetInstance()
116Friend Function IsEnumType(type As TypeSymbol) As Boolean
122Friend Function IsValidEnumUnderlyingType(type As TypeSymbol) As Boolean
127Friend Function IsClassOrInterfaceType(type As TypeSymbol) As Boolean
132Friend Function IsInterfaceType(type As TypeSymbol) As Boolean
138Friend Function IsClassType(type As TypeSymbol) As Boolean
144Friend Function IsStructureType(type As TypeSymbol) As Boolean
150Friend Function IsModuleType(type As TypeSymbol) As Boolean
156Friend Function IsErrorType(type As TypeSymbol) As Boolean
162Friend Function IsArrayType(type As TypeSymbol) As Boolean
168Friend Function IsCharSZArray(type As TypeSymbol) As Boolean
181Friend Function IsDBNullType(type As TypeSymbol) As Boolean
204Friend Function IsMicrosoftVisualBasicCollection(type As TypeSymbol) As Boolean
225Friend Function IsTypeParameter(type As TypeSymbol) As Boolean
231Friend Function IsDelegateType(type As TypeSymbol) As Boolean
237Friend Function IsSameTypeIgnoringAll(t1 As TypeSymbol, t2 As TypeSymbol) As Boolean
245Friend Function IsSameType(t1 As TypeSymbol, t2 As TypeSymbol, compareKind As TypeCompareKind) As Boolean
246Return TypeSymbol.Equals(t1, t2, compareKind)
285Public Function GetSpecialTypeSafe(this As TypeSymbol) As SpecialType
290Public Function IsNumericType(this As TypeSymbol) As Boolean
295Public Function IsIntegralType(this As TypeSymbol) As Boolean
300Public Function IsUnsignedIntegralType(this As TypeSymbol) As Boolean
305Public Function IsSignedIntegralType(this As TypeSymbol) As Boolean
310Public Function IsFloatingType(this As TypeSymbol) As Boolean
315Public Function IsSingleType(this As TypeSymbol) As Boolean
320Public Function IsDoubleType(this As TypeSymbol) As Boolean
325Public Function IsBooleanType(this As TypeSymbol) As Boolean
330Public Function IsCharType(this As TypeSymbol) As Boolean
335Public Function IsStringType(this As TypeSymbol) As Boolean
340Public Function IsObjectType(this As TypeSymbol) As Boolean
345Public Function IsStrictSupertypeOfConcreteDelegate(this As TypeSymbol) As Boolean
350Public Function IsVoidType(this As TypeSymbol) As Boolean
355Public Function IsDecimalType(this As TypeSymbol) As Boolean
360Public Function IsDateTimeType(this As TypeSymbol) As Boolean
365Public Function IsRestrictedType(this As TypeSymbol) As Boolean
370Public Function IsRestrictedArrayType(this As TypeSymbol, <Out> ByRef restrictedType As TypeSymbol) As Boolean
380Public Function IsRestrictedTypeOrArrayType(this As TypeSymbol, <Out> ByRef restrictedType As TypeSymbol) As Boolean
395Public Function IsIntrinsicType(this As TypeSymbol) As Boolean
400Public Function IsIntrinsicValueType(this As TypeSymbol) As Boolean
408Public Function IsNotInheritable(this As TypeSymbol) As Boolean
422Public Function GetConstantValueTypeDiscriminator(this As TypeSymbol) As ConstantValueTypeDiscriminator
470Public Function IsValidForConstantValue(this As TypeSymbol, value As ConstantValue) As Boolean
478Public Function AllowsCompileTimeConversions(this As TypeSymbol) As Boolean
483Public Function AllowsCompileTimeOperations(this As TypeSymbol) As Boolean
488Public Function CanContainUserDefinedOperators(this As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
502Dim underlyingType As TypeSymbol = this.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf()
513Public Function TypeToIndex(type As TypeSymbol) As Integer?
521Public Function DigThroughArrayType(possiblyArrayType As TypeSymbol) As TypeSymbol
536If TypeSymbol.Equals(inner, outer, TypeCompareKind.ConsiderEverything) Then
547Public Function ImplementsInterface(subType As TypeSymbol, superInterface As TypeSymbol, comparer As EqualityComparer(Of TypeSymbol), <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
549comparer = EqualityComparer(Of TypeSymbol).Default
566type As TypeSymbol,
578source As TypeSymbol,
581Dim current As TypeSymbol = source
597Public Function IsBaseTypeOf(superType As TypeSymbol, subType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
598Dim current As TypeSymbol = subType
616Public Function IsOrDerivedFrom(derivedType As NamedTypeSymbol, baseType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
630Public Function IsOrDerivedFrom(derivedType As TypeSymbol, baseType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
650Public Function IsOrDerivedFromWellKnownClass(derivedType As TypeSymbol, wellKnownBaseType As WellKnownType, compilation As VisualBasicCompilation, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
662Public Function IsCompatibleWithGenericIEnumerableOfType(type As TypeSymbol, typeArgument As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
710Public Function IsOrImplementsIEnumerableOfXElement(type As TypeSymbol, compilation As VisualBasicCompilation, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
716Public Function IsBaseTypeOrInterfaceOf(superType As TypeSymbol, subType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
732Friend Function IsValidTypeForConstField(fieldType As TypeSymbol) As Boolean
739Friend Sub CollectReferencedTypeParameters(this As TypeSymbol, typeParameters As HashSet(Of TypeParameterSymbol))
743Private ReadOnly s_addIfTypeParameterFunc As Func(Of TypeSymbol, HashSet(Of TypeParameterSymbol), Boolean) = AddressOf AddIfTypeParameter
745Private Function AddIfTypeParameter(type As TypeSymbol, typeParameters As HashSet(Of TypeParameterSymbol)) As Boolean
753Friend Function ReferencesTypeParameterNotInTheSet(this As TypeSymbol, typeParameters As HashSet(Of TypeParameterSymbol)) As Boolean
758Private ReadOnly s_isTypeParameterNotInSetFunc As Func(Of TypeSymbol, HashSet(Of TypeParameterSymbol), Boolean) = AddressOf IsTypeParameterNotInSet
760Private Function IsTypeParameterNotInSet(type As TypeSymbol, typeParameters As HashSet(Of TypeParameterSymbol)) As Boolean
766Friend Function ReferencesMethodsTypeParameter(this As TypeSymbol, method As MethodSymbol) As Boolean
771Private ReadOnly s_isMethodTypeParameterFunc As Func(Of TypeSymbol, MethodSymbol, Boolean) = AddressOf IsMethodTypeParameter
773Private Function IsMethodTypeParameter(type As TypeSymbol, method As MethodSymbol) As Boolean
779Public Function IsUnboundGenericType(this As TypeSymbol) As Boolean
785Friend Function IsOrRefersToTypeParameter(this As TypeSymbol) As Boolean
790Private ReadOnly s_isTypeParameterFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) (type.TypeKind = TypeKind.TypeParameter)
796Friend Function ContainsTuple(type As TypeSymbol) As Boolean
800Private ReadOnly s_isTupleTypeFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) type.IsTupleType
806Friend Function ContainsTupleNames(type As TypeSymbol) As Boolean
810Private ReadOnly s_hasTupleNamesFunc As Func(Of TypeSymbol, Object, Boolean) = Function(type, arg) Not type.TupleElementNames.IsDefault
820Friend Function VisitType(Of T)(type As TypeSymbol, predicate As Func(Of TypeSymbol, T, Boolean), arg As T) As TypeSymbol
824Dim current As TypeSymbol = type
906Public Function IsValidTypeForAttributeArgument(type As TypeSymbol, compilation As VisualBasicCompilation) As Boolean
920TypeSymbol.Equals(type, compilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything) ' don't call the version with diagnostics
924Public Function IsValidTypeForSwitchTable(type As TypeSymbol) As Boolean
934Public Function IsIntrinsicOrEnumType(type As TypeSymbol) As Boolean
943Public Function MarkCheckedIfNecessary(type As TypeSymbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As Boolean
945checkedTypes = New HashSet(Of TypeSymbol)()
953Friend Sub CheckTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol), expectedCount As Integer)
974typeArguments As ImmutableArray(Of TypeSymbol),
976) As ImmutableArray(Of TypeSymbol)
985typeArguments As ImmutableArray(Of TypeSymbol),
987) As ImmutableArray(Of TypeSymbol)
992typeArguments As ImmutableArray(Of TypeSymbol),
995) As ImmutableArray(Of TypeSymbol)
1000Dim newTypeArguments As TypeSymbol() = Nothing
1002Dim typeArgument As TypeSymbol
1059Public Function ExpressionTargetDelegate(type As TypeSymbol, compilation As VisualBasicCompilation) As NamedTypeSymbol
1064If namedType.Arity = 1 AndAlso TypeSymbol.Equals(namedType.OriginalDefinition, compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
1081Public Function DelegateOrExpressionDelegate(type As TypeSymbol, binder As Binder) As NamedTypeSymbol
1095Public Function DelegateOrExpressionDelegate(type As TypeSymbol, binder As Binder, ByRef wasExpression As Boolean) As NamedTypeSymbol
1110Public Function IsExpressionTree(type As TypeSymbol, binder As Binder) As Boolean
1115Public Function IsExtensibleInterfaceNoUseSiteDiagnostics(type As TypeSymbol) As Boolean
1120Public Function GetNativeCompilerVType(type As TypeSymbol) As String
1129Public Function IsVerifierReference(type As TypeSymbol) As Boolean
1138Public Function IsVerifierValue(type As TypeSymbol) As Boolean
1146Public Function IsPrimitiveType(t As TypeSymbol) As Boolean
1190Public Function GetAllTypeArguments(type As NamedTypeSymbol) As ImmutableArray(Of TypeSymbol)
1282Friend Function GetTypeRefWithAttributes(type As TypeSymbol, declaringCompilation As VisualBasicCompilation, typeRef As Cci.ITypeReference) As Cci.TypeReferenceWithAttributes
1296Friend Function IsWellKnownTypeIsExternalInit(typeSymbol As TypeSymbol) As Boolean
1301Private Function IsWellKnownCompilerServicesTopLevelType(typeSymbol As TypeSymbol, name As String) As Boolean
1310Friend Function IsCompilerServicesTopLevelType(typeSymbol As TypeSymbol) As Boolean
1315Private Function IsContainedInNamespace(typeSymbol As TypeSymbol, outerNS As String, midNS As String, innerNS As String) As Boolean
Symbols\WellKnownMembers.vb (30)
343Return TypeSymbol.Equals(DirectCast(type, TypeSymbol), GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything)
422ByVal comparer As SignatureComparer(Of MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol),
522Inherits SignatureComparer(Of MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol)
529Protected Overrides Function GetMDArrayElementType(type As TypeSymbol) As TypeSymbol
543Protected Overrides Function MatchArrayRank(type As TypeSymbol, countOfDimensions As Integer) As Boolean
557Protected Overrides Function GetSZArrayElementType(type As TypeSymbol) As TypeSymbol
571Protected Overrides Function GetFieldType(field As FieldSymbol) As TypeSymbol
575Protected Overrides Function GetPropertyType(prop As PropertySymbol) As TypeSymbol
579Protected Overrides Function GetGenericTypeArgument(ByVal type As TypeSymbol, ByVal argumentIndex As Integer) As TypeSymbol
598Protected Overrides Function GetGenericTypeDefinition(type As TypeSymbol) As TypeSymbol
625Protected Overrides Function GetParamType(ByVal parameter As ParameterSymbol) As TypeSymbol
629Protected Overrides Function GetPointedToType(type As TypeSymbol) As TypeSymbol
633Protected Overrides Function GetReturnType(method As MethodSymbol) As TypeSymbol
649Protected Overrides Function IsGenericMethodTypeParam(type As TypeSymbol, paramPosition As Integer) As Boolean
663Protected Overrides Function IsGenericTypeParam(type As TypeSymbol, paramPosition As Integer) As Boolean
677Protected Overrides Function MatchTypeToTypeId(type As TypeSymbol, typeId As Integer) As Boolean
691Protected Overrides Function MatchTypeToTypeId(type As TypeSymbol, typeId As Integer) As Boolean
701Friend Function SynthesizeTupleNamesAttribute(type As TypeSymbol) As SynthesizedAttributeData
717Public Shared Function Encode(type As TypeSymbol) As ImmutableArray(Of String)
728Public Shared Function Encode(type As TypeSymbol, stringType As TypeSymbol) As ImmutableArray(Of TypedConstant)
745Friend Shared Function TryGetNames(type As TypeSymbol, namesBuilder As ArrayBuilder(Of String)) As Boolean
746type.VisitType(Function(t As TypeSymbol, builder As ArrayBuilder(Of String)) AddNames(t, builder), namesBuilder)
750Private Shared Function AddNames(type As TypeSymbol, namesBuilder As ArrayBuilder(Of String)) As Boolean
Utilities\TypeUnification.vb (7)
17Public Shared Function CanUnify(containingGenericType As NamedTypeSymbol, t1 As TypeSymbol, t2 As TypeSymbol) As Boolean
22If TypeSymbol.Equals(t1, t2, TypeCompareKind.ConsiderEverything) Then
122Return Not nt2.IsGenericType AndAlso TypeSymbol.Equals(nt1, nt2, TypeCompareKind.ConsiderEverything)
128If nt2.Arity <> arity OrElse Not TypeSymbol.Equals(nt2.OriginalDefinition, nt1.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then
239Private Shared Function Contains(type As TypeSymbol, typeParam As TypeParameterSymbol) As Boolean
258Return TypeSymbol.Equals(type, typeParam, TypeCompareKind.ConsiderEverything)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (5)