3 types derived from TypeSymbol
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\ArrayTypeSymbol.vb (1)
19Inherits TypeSymbol
Symbols\NamedTypeSymbol.vb (1)
23Inherits TypeSymbol
Symbols\TypeParameterSymbol.vb (1)
21Inherits TypeSymbol
3281 references to TypeSymbol
Microsoft.CodeAnalysis.VisualBasic (2884)
Analysis\FlowAnalysis\AbstractFlowPass.vb (2)
279Protected ReadOnly Property MethodReturnType As TypeSymbol 336Protected Shared Function IsNonPrimitiveValueType(type As TypeSymbol) As Boolean
Analysis\FlowAnalysis\DataFlowPass.Symbols.vb (1)
23Private Sub New(container As Symbol, type As TypeSymbol, locals As ImmutableArray(Of LocalSymbol))
Analysis\FlowAnalysis\DataFlowPass.vb (17)
501Dim variableType As TypeSymbol = GetVariableType(symbol) 532Dim containingType As TypeSymbol = DirectCast(symbol.ContainingType, TupleTypeSymbol).UnderlyingNamedType 539While Not TypeSymbol.Equals(containingType, symbol.ContainingType, TypeCompareKind.ConsiderEverything) 569Protected Overridable Function IsEmptyStructType(type As TypeSymbol) As Boolean 598Private Shared Function IsTrackableStructType(symbol As TypeSymbol) As Boolean 608Private Function IsSlotAlreadyReported(symbolType As TypeSymbol, slot As Integer) As Boolean 644Private Sub MarkSlotAsReported(symbolType As TypeSymbol, slot As Integer) 688Dim type As TypeSymbol = GetVariableType(id.Symbol) 736Dim type As TypeSymbol = GetVariableType(id.Symbol) 797Private _typeToMembersCache As Dictionary(Of TypeSymbol, ImmutableArray(Of FieldSymbol)) = Nothing 809Dim fieldType As TypeSymbol = field.Type 851Private Function GetStructInstanceFields(type As TypeSymbol) As ImmutableArray(Of FieldSymbol) 881_typeToMembersCache = New Dictionary(Of TypeSymbol, ImmutableArray(Of FieldSymbol)) 889Private Shared Function GetVariableType(symbol As Symbol) As TypeSymbol 1163Dim localOrFieldType As TypeSymbol 1219Dim type As TypeSymbol = local.Type 1234Dim type As TypeSymbol = Nothing
Analysis\InitializerRewriter.vb (3)
121If TypeSymbol.Equals(addHandlerMethod.ContainingType, containingType, TypeCompareKind.ConsiderEverything) Then 250Friend Function HasExplicitMeConstructorCall(block As BoundBlock, container As TypeSymbol, <Out()> ByRef isMyBaseConstructorCall As Boolean) As Boolean 275Return TypeSymbol.Equals(methodSymbol.ContainingType, container, TypeCompareKind.ConsiderEverything)
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (3)
69Dim type As TypeSymbol = If(variable.Kind = SymbolKind.Local, TryCast(variable, LocalSymbol).Type, TryCast(variable, ParameterSymbol).Type) 132Dim type As TypeSymbol = If(variable.Kind = SymbolKind.Local, TryCast(variable, LocalSymbol).Type, TryCast(variable, ParameterSymbol).Type) 185Protected Overrides Function IsEmptyStructType(type As TypeSymbol) As Boolean
Binding\BackstopBinder.vb (1)
33Optional accessThroughType As TypeSymbol = Nothing,
Binding\BasesBeingResolvedBinder.vb (11)
31Optional accessThroughType As TypeSymbol = Nothing, 39For Each inheritsBeingResolved In If(basesBeingResolved.InheritsBeingResolvedOpt, ConsList(Of TypeSymbol).Empty) 42For Each implementsBeingResolved In If(basesBeingResolved.ImplementsBeingResolvedOpt, ConsList(Of TypeSymbol).Empty) 51Public ReadOnly InheritsBeingResolvedOpt As ConsList(Of TypeSymbol) 52Public ReadOnly ImplementsBeingResolvedOpt As ConsList(Of TypeSymbol) 60Public Sub New(inheritsBeingResolved As ConsList(Of TypeSymbol), implementsBeingResolved As ConsList(Of TypeSymbol)) 65Public Function PrependInheritsBeingResolved(symbol As TypeSymbol) As BasesBeingResolved 66Return New BasesBeingResolved(If(InheritsBeingResolvedOpt, ConsList(Of TypeSymbol).Empty).Prepend(symbol), ImplementsBeingResolvedOpt) 69Public Function PrependImplementsBeingResolved(symbol As TypeSymbol) As BasesBeingResolved 70Return New BasesBeingResolved(InheritsBeingResolvedOpt, If(ImplementsBeingResolvedOpt, ConsList(Of TypeSymbol).Empty).Prepend(symbol))
Binding\Binder.vb (6)
292Optional accessThroughType As TypeSymbol = Nothing, 304Optional accessThroughType As TypeSymbol = Nothing, 454Friend Shared Function GetUseSiteInfoForSpecialType(type As TypeSymbol, Optional suppressUseSiteInfo As Boolean = False) As UseSiteInfo(Of AssemblySymbol) 483Friend Shared Function GetUseSiteInfoForWellKnownType(type As TypeSymbol) As UseSiteInfo(Of AssemblySymbol) 537Not TypeSymbol.Equals(DirectCast(parameterType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics(0), Me.Compilation.GetWellKnownType(WellKnownType.System_Xml_Linq_XElement), TypeCompareKind.ConsiderEverything) Then 965Not TypeOf symbol Is TypeSymbol AndAlso
Binding\Binder_AnonymousTypes.vb (4)
31Dim restrictedType As TypeSymbol = Nothing 128Dim objectType As TypeSymbol = GetSpecialType(SpecialType.System_Object, initializerSyntax, diagnostics) 248Dim fieldType As TypeSymbol = boundExpression.Type 251Dim restrictedType As TypeSymbol = Nothing
Binding\Binder_Attributes.vb (7)
430Private Function BindAttributeNamedArgument(container As TypeSymbol, 451Dim fieldOrPropType As TypeSymbol = Nothing 533Debug.Assert(TypeSymbol.Equals(lValue.Type, fieldOrPropType, TypeCompareKind.ConsiderEverything)) 586Dim sourceType As TypeSymbol = expression.SourceType.Type 653Private Function IsValidTypeForAttributeArgument(type As TypeSymbol) As Boolean 880Private Function CreateTypedConstant(type As TypeSymbol, value As Object) As TypedConstant 891Private Function CreateErrorTypedConstant(type As TypeSymbol) As TypedConstant
Binding\Binder_ConditionalAccess.vb (2)
49Dim type As TypeSymbol = boundExpression.Type 51Dim placeholderType As TypeSymbol = type
Binding\Binder_Constraints.vb (1)
86Dim constraintType = TryCast(typeOrAlias.UnwrapAlias(), TypeSymbol)
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_Delegates.vb (7)
84delegateType As TypeSymbol, 216targetType As TypeSymbol, 340delegateType As TypeSymbol, 472Dim delegateReturnType As TypeSymbol 547Dim commonReturnType As TypeSymbol = GetSetOfTheBestCandidates(resolutionResult, bestCandidates, bestSymbols) 907destination As TypeSymbol 967targetType 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_Imports.vb (2)
88Dim type = TryCast(aliasTarget, TypeSymbol) 170Dim type = TryCast(importedSymbol, TypeSymbol)
Binding\Binder_Initializers.vb (5)
351Debug.Assert(TypeSymbol.Equals(propertySymbol.Type, propertySymbol.AssociatedField.Type, TypeCompareKind.ConsiderEverything)) 393targetType As TypeSymbol, 538Dim targetType As TypeSymbol 589type As TypeSymbol, 645targetType 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_Latebound.vb (3)
22containerType As TypeSymbol, 33containerType As TypeSymbol, 90Dim containingType As TypeSymbol = group.ContainerOfFirstInGroup
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\Binder_WithBlock.vb (2)
273Dim type As TypeSymbol = node.Type 281Dim type As TypeSymbol = node.Type
Binding\Binder_XmlLiterals.vb (6)
373Private Function CreateArrayType(elementType As TypeSymbol) As ArrayTypeSymbol 1549Friend Overrides ReadOnly Property ReceiverType As TypeSymbol 1687Public Overrides ReadOnly Property Type As TypeSymbol 1941Public Overrides ReadOnly Property ReturnType As TypeSymbol 1965Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 2023Public Overrides ReadOnly Property Type As TypeSymbol
Binding\BinderFactory.vb (1)
157implicitType = DirectCast(containingBinder.ContainingNamespaceOrType.GetMembers(TypeSymbol.ImplicitTypeName).Single(), NamedTypeSymbol)
Binding\BindingDiagnosticBag.vb (1)
120AddDependencies(If(TryCast(symbol, TypeSymbol), symbol.ContainingType))
Binding\DocumentationCommentBinder.vb (2)
47Debug.Assert(TypeSymbol.Equals(DirectCast(binderContainingMember, TypeSymbol), commentedSymbol.ContainingType, TypeCompareKind.ConsiderEverything))
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,
Binding\DocumentationCommentCrefBinder_Compat.vb (6)
186LookupMember(lookupResult, DirectCast(containingSymbol, TypeSymbol), name, arity, options, useSiteInfo) 192Dim propertyType As TypeSymbol = [property].Type 203Dim fieldType As TypeSymbol = field.Type 215Dim returnType As TypeSymbol = method.ReturnType 414Private Function BingTypeArgumentsForCref(args As SeparatedSyntaxList(Of TypeSyntax)) As ImmutableArray(Of TypeSymbol) 415Dim result(args.Count - 1) As TypeSymbol
Binding\ForEachEnumeratorInfo.vb (2)
39Public ReadOnly ElementType As TypeSymbol 111elementType As TypeSymbol,
Binding\IgnoreAccessibilityBinder.vb (1)
20Public Overrides Function CheckAccessibility(sym As Symbol, <[In]> <Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), Optional accessThroughType As TypeSymbol = Nothing, Optional basesBeingResolved As BasesBeingResolved = Nothing) As AccessCheckResult
Binding\LookupResult.vb (2)
627Debug.Assert(Not Me.HasSymbol OrElse other.Symbol Is Nothing OrElse TypeSymbol.Equals(Me.Symbols(0).ContainingType, other.Symbol.ContainingType, TypeCompareKind.ConsiderEverything)) 739Debug.Assert(TypeSymbol.Equals(symbol1.ContainingType, symbol2.ContainingType, TypeCompareKind.ConsiderEverything))
Binding\MemberSemanticModel.vb (2)
115Dim vbDestination = destination.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(destination)) 777Dim elementType As TypeSymbol = enumeratorInfo.ElementType
Binding\NamedTypeBinder.vb (1)
153Optional accessThroughType As TypeSymbol = Nothing,
Binding\SourceModuleBinder.vb (1)
34Optional accessThroughType As TypeSymbol = Nothing,
Binding\SyntheticBoundTrees\AnonymousTypeSyntheticMethods.vb (14)
36Dim propertyType As TypeSymbol = [property].Type 92Dim objectType As TypeSymbol = Me.AnonymousType.Manager.System_Object 94Dim integerType As TypeSymbol = Me.AnonymousType.Manager.System_Int32 95Dim booleanType As TypeSymbol = Me.AnonymousType.Manager.System_Boolean 191Dim objectType As TypeSymbol = Me.AnonymousType.Manager.System_Object 192Dim booleanType As TypeSymbol = Me.AnonymousType.Manager.System_Boolean 230localMyFieldBoxed As LocalSymbol, localOtherFieldBoxed As LocalSymbol, booleanType As TypeSymbol) As BoundExpression 259booleanType As TypeSymbol) As BoundExpression 308Private Function BuildIsCheck(left As BoundExpression, right As BoundExpression, booleanType As TypeSymbol, Optional reverse As Boolean = False) As BoundExpression 314Private Function BuildAndAlso(left As BoundExpression, right As BoundExpression, booleanType As TypeSymbol) As BoundExpression 319Private Function BuildOrElse(left As BoundExpression, right As BoundExpression, booleanType As TypeSymbol) As BoundExpression 333Dim objectType As TypeSymbol = Me.AnonymousType.Manager.System_Object 334Dim stringType As TypeSymbol = Me.ReturnType 336Dim arrayOfObjectsType As TypeSymbol = Me.AnonymousType.Manager.Compilation.CreateArrayTypeSymbol(objectType)
Binding\UsingInfo.vb (2)
21Public ReadOnly PlaceholderInfo As Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression)) 36placeholderInfo As Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression))
BoundTree\BoundAddressOfOperator.vb (3)
14Private ReadOnly _delegateResolutionResultCache As New ConcurrentDictionary(Of TypeSymbol, Binder.DelegateResolutionResult)() 26Friend Function GetDelegateResolutionResult(targetType As TypeSymbol, ByRef delegateResolutionResult As Binder.DelegateResolutionResult) As Boolean 34Friend Function GetConversionClassification(targetType As TypeSymbol) As ConversionKind
BoundTree\BoundArrayAccess.vb (1)
15Public Sub New(syntax As SyntaxNode, expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
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\BoundAssignmentOperator.vb (1)
12Public Sub New(syntax As SyntaxNode, left As BoundExpression, right As BoundExpression, suppressObjectClone As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundBadVariable.vb (1)
12Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundBinaryOperator.vb (1)
19type As TypeSymbol,
BoundTree\BoundCall.vb (4)
19type As TypeSymbol, 40type As TypeSymbol, 110type As TypeSymbol, 111signatureType As TypeSymbol
BoundTree\BoundConversion.vb (2)
19type As TypeSymbol, 32type As TypeSymbol,
BoundTree\BoundDirectCast.vb (3)
17type As TypeSymbol, 28type As TypeSymbol, 34Public Sub New(syntax As SyntaxNode, operand As BoundExpression, conversionKind As ConversionKind, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundExpression.vb (1)
73Protected Shared Sub ValidateConstantValue(type As TypeSymbol, constValue As ConstantValue)
BoundTree\BoundExpressionExtensions.vb (1)
150Public Function GetTypeOfAssignmentTarget(node As BoundExpression) As TypeSymbol
BoundTree\BoundFieldAccess.vb (1)
14Public Sub New(syntax As SyntaxNode, receiverOpt As BoundExpression, fieldSymbol As FieldSymbol, isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundLocal.vb (2)
13Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, type As TypeSymbol, hasErrors As Boolean) 17Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, type As TypeSymbol)
BoundTree\BoundMethodOrPropertyGroup.vb (1)
41Friend ReadOnly Property ContainerOfFirstInGroup() As TypeSymbol
BoundTree\BoundObjectCreationExpression.vb (2)
14Public Sub New(syntax As SyntaxNode, constructorOpt As MethodSymbol, arguments As ImmutableArray(Of BoundExpression), initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, 19Public Function Update(constructorOpt As MethodSymbol, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundObjectCreationExpression
BoundTree\BoundObjectCreationExpressionBase.vb (1)
15Debug.Assert(InitializerOpt Is Nothing OrElse TypeSymbol.Equals(InitializerOpt.Type, Type, TypeCompareKind.ConsiderEverything))
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\BoundPropertyAccess.vb (2)
70Debug.Assert(TypeSymbol.Equals(Me.Type, expectedType, TypeCompareKind.ConsiderEverything)) 112Private Shared Function GetTypeFromAccessKind([property] As PropertySymbol, accessKind As PropertyAccessKind) As TypeSymbol
BoundTree\BoundReferenceAssignment.vb (1)
14Debug.Assert(ByRefLocal.LocalSymbol.IsByRef AndAlso LValue.IsLValue AndAlso TypeSymbol.Equals(Type, LValue.Type, TypeCompareKind.ConsiderEverything))
BoundTree\BoundTreeRewriter.vb (3)
15Public Overridable Function VisitType(type As TypeSymbol) As TypeSymbol 136Dim type As TypeSymbol = Me.VisitType(binary.Type)
BoundTree\BoundTryCast.vb (3)
16type As TypeSymbol, 27type As TypeSymbol, 33Public Sub New(syntax As SyntaxNode, operand As BoundExpression, conversionKind As ConversionKind, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundTypeExpression.vb (1)
13Public Sub New(syntax As SyntaxNode, type As TypeSymbol, Optional hasErrors As Boolean = False)
BoundTree\BoundUnaryOperator.vb (1)
18type As TypeSymbol,
BoundTree\BoundUserDefinedUnaryOperator.vb (1)
27Debug.Assert(TypeSymbol.Equals(Type, UnderlyingExpression.Type, TypeCompareKind.ConsiderEverything))
BoundTree\BoundXmlAttribute.vb (1)
14Debug.Assert(TypeSymbol.Equals(Type, ObjectCreation.Type, TypeCompareKind.ConsiderEverything))
BoundTree\GroupTypeInferenceLambda.vb (1)
15Public Function InferLambdaReturnType(delegateParams As ImmutableArray(Of ParameterSymbol)) 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\CodeGenerator.vb (1)
201Private Sub EmitSymbolToken(symbol As TypeSymbol, syntaxNode As SyntaxNode)
CodeGen\EmitAddress.vb (2)
274If Not TypeSymbol.Equals(field.ContainingType, Me._method.ContainingType, TypeCompareKind.ConsiderEverything) Then 409Dim elementType As TypeSymbol = arrayAccess.Type
CodeGen\EmitArrayInitializer.vb (2)
186Dim type As TypeSymbol = init.Type.GetEnumUnderlyingTypeOrSelf 190Private Function ShouldEmitBlockInitializer(elementType As TypeSymbol, inits As ImmutableArray(Of BoundExpression)) As ArrayInitializerStyle
CodeGen\EmitConversion.vb (2)
284Dim typeTo As TypeSymbol = conversion.Type 285Dim typeFrom As TypeSymbol = conversion.Operand.Type
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)
CodeGen\EmitOperators.vb (1)
369Public Shared Function GetShiftSizeMask(leftOperandType As TypeSymbol) As Integer
CodeGen\EmitStatement.vb (3)
472Private Function CanPassToBrfalse(ts As TypeSymbol) As Boolean 1105Dim UInt32Type = DirectCast(_module.GetSpecialType(SpecialType.System_UInt32, syntaxNode, _diagnostics).GetInternalSymbol(), TypeSymbol) 1385Private Function AllocateTemp(type As TypeSymbol, syntaxNode As SyntaxNode) As LocalDefinition
CodeGen\Optimizer\StackScheduler.Analyzer.vb (2)
577Dim leftType As TypeSymbol = left.Type 957Dim type As TypeSymbol = Me.VisitType(binary.Type)
CodeGen\Optimizer\StackScheduler.DummyLocal.vb (1)
19Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
CodeGen\Optimizer\StackScheduler.Rewriter.vb (1)
90Dim type As TypeSymbol = Me.VisitType(binary.Type)
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\NamespaceScopeBuilder.vb (1)
68Private Shared Function GetTypeReference(type As TypeSymbol, moduleBuilder As CommonPEModuleBuilder, diagnostics As DiagnosticBag) As Cci.ITypeReference
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
Compilation\SyntaxTreeSemanticModel.vb (2)
995Dim implicitType = DirectCast(namespaceToLookInForImplicitType.GetMembers(TypeSymbol.ImplicitTypeName).SingleOrDefault(), NamedTypeSymbol) 1394Dim vbdestination = destination.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(destination))
Compilation\TypeInfo.vb (10)
13Private ReadOnly _type As TypeSymbol 14Private ReadOnly _convertedType As TypeSymbol 25Public ReadOnly Property Type As TypeSymbol 35Public ReadOnly Property ConvertedType As TypeSymbol 55Friend Sub New(type As TypeSymbol, convertedType As TypeSymbol, implicitConversion As Conversion) 63TypeSymbol.Equals(_type, other._type, TypeCompareKind.ConsiderEverything) AndAlso 64TypeSymbol.Equals(_convertedType, other._convertedType, TypeCompareKind.ConsiderEverything) 81Private Shared Function GetPossibleGuessForErrorType(type As TypeSymbol) As TypeSymbol
Compilation\VisualBasicCompilation.vb (16)
1876Dim vbsource = source.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(source)) 1877Dim vbdest = destination.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(destination)) 1965Friend Function GetTypeByReflectionType(type As Type) As TypeSymbol 1989Friend Shadows Function CreateArrayTypeSymbol(elementType As TypeSymbol, Optional rank As Integer = 1) As ArrayTypeSymbol 2013Dim throughType0 = throughType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(throughType)) 2825Return CreateArrayTypeSymbol(elementType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(elementType)), rank) 2832Dim typesBuilder = ArrayBuilder(Of TypeSymbol).GetInstance(elementTypes.Length) 2834typesBuilder.Add(elementTypes(i).EnsureVbSymbolOrNothing(Of TypeSymbol)($"{NameOf(elementTypes)}[{i}]")) 2896t.EnsureVbSymbolOrNothing(Of TypeSymbol)($"{NameOf(memberTypes)}({i})") 2908fields.Add(New AnonymousTypeField(name, DirectCast(type, TypeSymbol), loc, isReadOnly)) 2922Dim vbReturnType = returnType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(returnType)) 2924Dim vbRightType = rightType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(rightType)) 2950returnType As TypeSymbol, 2952rightType As TypeSymbol, 3005Dim vbReturnType = returnType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(returnType)) 3022returnType As TypeSymbol,
Declarations\DeclarationTreeBuilder.vb (1)
120name:=TypeSymbol.ImplicitTypeName,
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (1)
146If Not _inParameterOrReturnType AndAlso TypeSymbol.Equals(symbol, symbol.ConstructedFrom, TypeCompareKind.ConsiderEverything) Then
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\PEDeltaAssemblyBuilder.vb (4)
84Friend Overrides Function EncTranslateLocalVariableType(type As TypeSymbol, diagnostics As DiagnosticBag) As ITypeReference 87Dim visited = DirectCast(_deepTranslator.Visit(type), TypeSymbol) 192Debug.Assert(TypeSymbol.Equals(DirectCast(typeParameter.ContainingSymbol, TypeSymbol), type, TypeCompareKind.ConsiderEverything))
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (2)
148For Each member In DirectCast(stateMachineType, TypeSymbol).GetMembers() 211slotMetadata As ImmutableArray(Of LocalInfo(Of TypeSymbol))) As ImmutableArray(Of EncLocalInfo)
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),
Emit\MethodReference.vb (1)
92Dim returnType As TypeSymbol = m_UnderlyingMethod.ReturnType
Emit\MethodSymbolAdapter.vb (1)
199Dim returnType As TypeSymbol = AdaptedMethodSymbol.ReturnType
Emit\NoPia\EmbeddedTypesManager.vb (1)
53If TypeSymbol.Equals(Interlocked.CompareExchange(Of NamedTypeSymbol)(_lazySystemStringType, type, ErrorTypeSymbol.UnknownResultType), ErrorTypeSymbol.UnknownResultType, TypeCompareKind.ConsiderEverything) Then
Emit\ParameterSymbolAdapter.vb (1)
41Dim paramType As TypeSymbol = AdaptedParameterSymbol.Type
Emit\ParameterTypeInformation.vb (1)
41Dim paramType As TypeSymbol = _underlyingParameter.Type
Emit\PEModuleBuilder.vb (1)
19Inherits PEModuleBuilder(Of VisualBasicCompilation, SourceModuleSymbol, AssemblySymbol, TypeSymbol, NamedTypeSymbol, MethodSymbol, SyntaxNode, NoPia.EmbeddedTypesManager, ModuleCompilationState)
Emit\SymbolTranslator.vb (2)
21Private ReadOnly _reportedErrorTypesMap As New ConcurrentSet(Of TypeSymbol)() 247typeSymbol As TypeSymbol,
Emit\SynthesizedPrivateImplementationDetailsSharedConstructor.vb (2)
18Private ReadOnly _voidType As TypeSymbol 44Public Overrides ReadOnly Property ReturnType As TypeSymbol
Emit\TypeParameterSymbolAdapter.vb (1)
297Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Errors\ErrorFactories.vb (3)
78Public Shared Function ErrorInfo(id As ERRID, ByRef syntaxToken As SyntaxToken, type As TypeSymbol) As DiagnosticInfo 82Public Shared Function ErrorInfo(id As ERRID, ByRef syntaxToken As SyntaxToken, type1 As TypeSymbol, type2 As TypeSymbol) As DiagnosticInfo
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.AsyncMethodToClassRewriter.Expressions.vb (6)
33Dim rewrittenType As TypeSymbol = VisitType(node.Type) 40Debug.Assert(TypeSymbol.Equals(rewrittenType, spillSeq.Type, TypeCompareKind.ConsiderEverything)) 253Dim rewrittenType As TypeSymbol = VisitType(node.Type) 487Dim type As TypeSymbol = Me.VisitType(node.Type) 713Dim rewrittenType As TypeSymbol = Me.VisitType(node.Type) 763Dim rewrittenType As TypeSymbol = VisitType(node.Type)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
435Private Function TypeNeedsClearing(type As TypeSymbol) As Boolean
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.vb (3)
53Private ReadOnly _awaiterFields As New Dictionary(Of TypeSymbol, FieldSymbol)() 61Private ReadOnly _typesNeedingClearingCache As New Dictionary(Of TypeSymbol, Boolean) 103Private Function GetAwaiterField(awaiterType As TypeSymbol) As FieldSymbol
Lowering\AsyncRewriter\AsyncRewriter.CapturedSymbolOrExpression.vb (3)
44Private ReadOnly _type As TypeSymbol 46Public Sub New(constValue As ConstantValue, type As TypeSymbol) 192Dim arrayElementType As TypeSymbol = DirectCast(arrayPointer.Type, ArrayTypeSymbol).ElementType
Lowering\AsyncRewriter\AsyncRewriter.SpillFieldAllocator.vb (2)
26Private ReadOnly _allocatedFields As New KeyedStack(Of TypeSymbol, FieldSymbol) 36Friend Function AllocateField(type As TypeSymbol) As FieldSymbol
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.vb (11)
352ImmutableArray.Create(Of TypeSymbol)(delegateType), 683Dim resultType As TypeSymbol = node.Type 739Private Function [Default](type As TypeSymbol) As BoundExpression 753Private Function InitWithParameterlessValueTypeConstructor(type As TypeSymbol) As BoundExpression 759Private Function IsIntegralType(type As TypeSymbol) As Boolean 763Private Function GetUnderlyingType(type As TypeSymbol) As TypeSymbol 771Private Function CreateLiteralExpression(node As BoundExpression, type As TypeSymbol) As BoundExpression 781Return ConvertRuntimeHelperToExpressionTree(helperMethodName, ImmutableArray(Of TypeSymbol).Empty, arguments) 788typeArgs As ImmutableArray(Of TypeSymbol), 822Private Function GetExprFactoryMethodGroup(methodName As String, typeArgs As ImmutableArray(Of TypeSymbol)) As BoundMethodGroup
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\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (6)
23Dim origArgType As TypeSymbol = origArg.Type 24Dim origArgNotNullableType As TypeSymbol = origArgType.GetNullableUnderlyingTypeOrSelf 25Dim origArgUnderlyingType As TypeSymbol = origArgNotNullableType.GetEnumUnderlyingTypeOrSelf 27Debug.Assert(TypeSymbol.Equals(origArgType, node.Type, TypeCompareKind.ConsiderEverything)) 122Dim udoOperandType As TypeSymbol = userDefinedOperator.Operand.Type 141Private Function BuildLambdaBodyForCoalesce(opKind As UnaryOperatorKind, [call] As BoundCall, resultType As TypeSymbol, lambdaParameter As ParameterSymbol) As BoundExpression
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
119Dim payloadElementType As TypeSymbol = methodBodyFactory.SpecialType(SpecialType.System_Boolean)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.vb (1)
79Debug.Assert(TypeSymbol.Equals(left.Type, right.Type, TypeCompareKind.ConsiderEverything))
Lowering\IteratorRewriter\IteratorRewriter.vb (3)
16Private ReadOnly _elementType As TypeSymbol 60Dim methodReturnType As TypeSymbol = method.ReturnType 66Dim elementType As TypeSymbol
Lowering\IteratorRewriter\IteratorStateMachine.vb (2)
22valueTypeSymbol As TypeSymbol, 44Private Shared Function GetIteratorInterfaces(elementType As TypeSymbol,
Lowering\LambdaRewriter\LambdaCapturedVariable.vb (3)
25Friend Sub New(frame As LambdaFrame, captured As Symbol, type As TypeSymbol, fieldName As String, isMeParameter As Boolean) 67Public Shared Function GetCapturedVariableFieldType(frame As LambdaFrame, captured As Symbol) As TypeSymbol 68Dim type As TypeSymbol
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
443Dim type As TypeSymbol
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\LambdaRewriter\SynthesizedLambdaCacheFieldSymbol.vb (1)
22type As TypeSymbol,
Lowering\LambdaRewriter\SynthesizedLambdaMethod.vb (4)
119Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 123Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 125Return ImmutableArray(Of TypeSymbol).Empty 142Public Overrides ReadOnly Property ReturnType As TypeSymbol
Lowering\LocalRewriter\LocalRewriter.vb (2)
488type As TypeSymbol 662Private Sub ReportBadType(node As BoundNode, typeSymbol As TypeSymbol)
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (3)
92Dim receiverType As TypeSymbol = rewrittenReceiverOpt.Type 102Dim eventType As TypeSymbol = eventSymbol.Type 303Private Function Convert(factory As SyntheticBoundNodeFactory, type As TypeSymbol, expr As BoundExpression) As BoundExpression
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (1)
198TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
1325Private Function RewriteNullableIsOrIsNotOperator(isIs As Boolean, operand As BoundExpression, resultType As TypeSymbol) As BoundExpression
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (2)
36Dim receiverType As TypeSymbol = rewrittenReceiver.Type 111Dim accessResultType As TypeSymbol = node.AccessExpression.Type
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (5)
57Dim rewrittenTestExpressionType As TypeSymbol = rewrittenTestExpression.Type 132Dim testExpressionType As TypeSymbol = testExpression.Type 134Debug.Assert(TypeSymbol.Equals(testExpressionType, rewrittenTestExpression.Type, TypeCompareKind.ConsiderEverything)) 149Debug.Assert(node.TestExpressionPlaceholder Is Nothing OrElse TypeSymbol.Equals(node.TestExpressionPlaceholder.Type, testExpressionType.GetNullableUnderlyingTypeOrSelf, TypeCompareKind.ConsiderEverything)) 192If testExpr.IsConstant AndAlso (TypeSymbol.Equals(testExpr.Type, elseExpr.Type, TypeCompareKind.ConsiderEverything)) Then
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_FieldAccess.vb (2)
48If Not TypeSymbol.Equals(underlyingField.ContainingType, currentLinkType, TypeCompareKind.ConsiderEverything) Then 63Loop While Not TypeSymbol.Equals(underlyingField.ContainingType, currentLinkType, TypeCompareKind.ConsiderEverything)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
29Dim collectionType As TypeSymbol 277Dim elementType As TypeSymbol
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
127Dim literalUnderlyingType As TypeSymbol = stepValue.Type.GetEnumUnderlyingTypeOrSelf
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (2)
89Private Function InvokeInterpolatedStringFactory(node As BoundInterpolatedStringExpression, factoryType As TypeSymbol, factoryMethodName As String, targetType As TypeSymbol, factory As SyntheticBoundNodeFactory) As BoundExpression
Lowering\LocalRewriter\LocalRewriter_LateBindingHelpers.vb (16)
20objectType As TypeSymbol) As BoundExpression 40containerType As TypeSymbol, 41typeType As TypeSymbol) As BoundExpression 51Private Function LateMakeTypeArgumentArrayArgument(node As SyntaxNode, arguments As BoundTypeArguments, typeArrayType As TypeSymbol) As BoundExpression 62booleanArrayType As TypeSymbol) As BoundExpression 91objectArrayType As TypeSymbol) As BoundExpression 163objectArrayType As TypeSymbol) As BoundExpression 252intType As TypeSymbol) As BoundExpression 266objectArrayType As TypeSymbol) As BoundExpression 305stringArrayType As TypeSymbol) As BoundExpression 924stringType As TypeSymbol) As BoundLiteral 935booleanType As TypeSymbol) As BoundLiteral 941type As TypeSymbol, 942typeType As TypeSymbol) As BoundGetType 949types As ImmutableArray(Of TypeSymbol), 950typeArrayType As TypeSymbol) As BoundArrayCreation
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_ObjectCreation.vb (2)
141method = method.Construct(ImmutableArray.Create(Of TypeSymbol)(typeParameter)) 302Dim sequenceType As TypeSymbol
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
122Debug.Assert(TypeSymbol.Equals(getOrCreateMethod.ReturnType, fieldType.OriginalDefinition, TypeCompareKind.ConsiderEverything), "Shape of well-known member")
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (1)
98Dim opType As TypeSymbol = node.Type
Lowering\LocalRewriter\LocalRewriter_With.vb (4)
26Dim type As TypeSymbol = rewrittenExpression.Type 106Dim localType As TypeSymbol = _local.Type 144Private ReadOnly _valueTypesCleanUpCache As New Dictionary(Of TypeSymbol, Boolean) 146Private Function LocalOrFieldNeedsToBeCleanedUp(currentType As TypeSymbol) As Boolean
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\MethodToClassRewriter\MethodToClassRewriter.MyBaseMyClassWrapper.vb (9)
33Dim callingMethodType As TypeSymbol = Me.CurrentMethod.ContainingType 34Dim topLevelMethodType As TypeSymbol = Me.TopLevelMethod.ContainingType 46Dim visitedTypeArgs(typeArgs.Length - 1) As TypeSymbol 157Private ReadOnly _returnType As TypeSymbol 184Dim typeArgs(Me._typeParameters.Length - 1) As TypeSymbol 237Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 241Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 243Return ImmutableArray(Of TypeSymbol).Empty 260Public Overrides ReadOnly Property ReturnType As TypeSymbol
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (10)
98Public NotOverridable Overrides Function VisitType(type As TypeSymbol) As TypeSymbol 138Dim type As TypeSymbol = VisitType(node.Type) 263Dim newContainer As TypeSymbol = method.ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly() 276Dim visitedTypeArgs(typeArgs.Length - 1) As TypeSymbol 298Dim newContainer As TypeSymbol = [property].ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly() 325Dim newContainer As TypeSymbol = field.ContainingType.InternalSubstituteTypeParameters(substitution).AsTypeSymbolOnly() 354If TypeSymbol.Equals(vType, v.Type, TypeCompareKind.ConsiderEverything) Then 435newType As TypeSymbol, 467If TypeSymbol.Equals(vType, v.Type, TypeCompareKind.ConsiderEverything) Then
Lowering\StateMachineRewriter\StateMachineFieldSymbol.vb (3)
25type As TypeSymbol, 44type As TypeSymbol, 65type As TypeSymbol,
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (2)
144Debug.Assert(TypeSymbol.Equals(frameClass, result.Type, TypeCompareKind.ConsiderEverything)) 424If TypeSymbol.Equals(newType, local.Type, TypeCompareKind.ConsiderEverything) Then
Lowering\StateMachineRewriter\StateMachineRewriter.vb (2)
238Dim paramType As TypeSymbol = parameter.Type.InternalSubstituteTypeParameters(typeMap).Type 340Protected Function MakeHoistedFieldForLocal(local As LocalSymbol, localType As TypeSymbol, slotIndex As Integer, id As LocalDebugId) As FieldSymbol
Lowering\StateMachineRewriter\SynthesizedContainer.vb (2)
57Dim typeArgs(Me._typeParameters.Length - 1) As TypeSymbol 172Friend NotOverridable Overrides ReadOnly Property CoClassType As TypeSymbol
Lowering\StateMachineRewriter\SynthesizedStateMachineMethod.vb (3)
72Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 74Return ImmutableArray(Of TypeSymbol).Empty 90Public Overrides ReadOnly Property ReturnType As TypeSymbol
Lowering\StateMachineRewriter\SynthesizedStateMachineProperty.vb (1)
106Public Overrides ReadOnly Property Type As TypeSymbol
Lowering\SynthesizedSubmissionFields.vb (1)
56Dim hostObjectTypeSymbol As TypeSymbol = Nothing
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
Lowering\UseTwiceRewriter.vb (2)
138type As TypeSymbol, 246Private Shared Function IsInvariantArray(type As TypeSymbol) As Boolean
Lowering\WithExpressionRewriter.vb (3)
86Dim type As TypeSymbol = value.Type 111Dim type As TypeSymbol = value.Type 273Dim type As TypeSymbol = value.Type
Operations\VisualBasicOperationFactory.vb (5)
314Dim type As TypeSymbol = Nothing 606If Not TypeSymbol.Equals(boundBinaryConditionalExpression.Type, boundBinaryConditionalExpression.TestExpression.Type, TypeCompareKind.ConsiderEverything) Then 728If boundOperand.Kind = BoundKind.ConvertedTupleLiteral AndAlso TypeSymbol.Equals(boundOperand.Type, boundConversionOrCast.Type, TypeCompareKind.ConsiderEverything) Then 981Not TypeSymbol.Equals(boundLateMemberAccess.ContainerTypeOpt, boundLateMemberAccess.ReceiverOpt.Type, TypeCompareKind.ConsiderEverything))) Then 1415DirectCast(_semanticModel.Compilation.GetSpecialType(SpecialType.System_Boolean), TypeSymbol),
Operations\VisualBasicOperationFactory_Methods.vb (4)
532Not TypeSymbol.Equals(nestedConversion.Type, nestedOperand.Type, TypeCompareKind.ConsiderEverything) AndAlso 534TypeSymbol.Equals(topLevelConversion.Type, nestedConversion.Type, TypeCompareKind.ConsiderEverything) Then 539TypeSymbol.Equals(topLevelConversion.Type, boundOperand.Type, TypeCompareKind.ConsiderEverything) AndAlso 588Private Shared Function IsDelegateCreation(conversionSyntax As SyntaxNode, operand As BoundNode, targetType As TypeSymbol) As Boolean
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\CompileTimeCalculations.vb (3)
275sourceType As TypeSymbol, 276resultType As TypeSymbol, 670Friend Function AdjustConstantValueFromMetadata(value As ConstantValue, targetType As TypeSymbol, isByRefParamValue As Boolean) As ConstantValue
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
Semantics\TypeInference\TypeInferenceCollection.vb (8)
25Public ResultType As TypeSymbol 304Dim inferredType As TypeSymbol = resultList(0).ResultType 426Dim candidate As TypeSymbol = candidateData.ResultType 427Dim hint As TypeSymbol = hintData.ResultType 559type As TypeSymbol, 611Friend Shared Function MergeTupleNames(first As TypeSymbol, second As TypeSymbol) As TypeSymbol
Symbols\AnonymousTypes\AnonymousTypeDescriptor.vb (4)
160Public ReadOnly Property Type As TypeSymbol 171Private _type As TypeSymbol 185Public Sub New(name As String, type As TypeSymbol, location As Location, Optional isKeyOrByRef As Boolean = False) 204Friend Sub AssignFieldType(newType As TypeSymbol)
Symbols\AnonymousTypes\AnonymousTypeManager_Templates.vb (2)
144Dim typeArguments() As TypeSymbol = New TypeSymbol(template.Arity - 1) {}
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (2)
32Dim returnType As TypeSymbol = If(parameterDescriptors.IsSubDescription(), DirectCast(manager.System_Void, TypeSymbol), parameterDescriptors.Last.Type)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (4)
14Private ReadOnly _returnType As TypeSymbol 16Public Sub New([property] As PropertySymbol, returnType As TypeSymbol) 27Public Overrides ReadOnly Property ReturnType As TypeSymbol 70Public Sub New([property] As PropertySymbol, voidTypeSymbol As TypeSymbol)
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicSymbol.vb (1)
53Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_TypePublicSymbol.vb (1)
74Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.Construct(ImmutableArray.Create(Of TypeSymbol)(Me))
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (2)
212Friend Overrides ReadOnly Property CoClassType As TypeSymbol 316Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (3)
39Dim returnType As TypeSymbol = If(parameterDescriptors.IsSubDescription(), DirectCast(manager.System_Void, TypeSymbol), Me.TypeParameters.Last) 220Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_EqualsMethodSymbol.vb (1)
80Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_GetHashCodeMethodSymbol.vb (1)
49Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_IEquatable_EqualsMethodSymbol.vb (1)
86Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (4)
18Private ReadOnly _returnType As TypeSymbol 20Public Sub New([property] As PropertySymbol, returnType As TypeSymbol) 35Public Overrides ReadOnly Property ReturnType As TypeSymbol 89Public Sub New([property] As PropertySymbol, voidTypeSymbol As TypeSymbol)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyBackingFieldSymbol.vb (1)
33Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertySymbol.vb (3)
16Private ReadOnly _type As TypeSymbol 26Public Sub New(container As AnonymousTypeTemplateSymbol, field As AnonymousTypeField, index As Integer, typeSymbol As TypeSymbol) 95Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
77Dim equatableInterface As NamedTypeSymbol = Me.Manager.System_IEquatable_T.Construct(ImmutableArray.Create(Of TypeSymbol)(Me))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_ToStringMethodSymbol.vb (1)
53Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegate_ParameterSymbol.vb (1)
23type As TypeSymbol, ordinal As Integer,
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
188Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (3)
39Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 41Return ImmutableArray(Of TypeSymbol).Empty 115Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
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\AssemblySymbol.vb (1)
646TypeSymbol.Equals(candidate, result, TypeCompareKind.ConsiderEverything) Then
Symbols\Attributes\AttributeData.vb (1)
237Dim firstArgType = DirectCast(firstArg.TypeInternal, TypeSymbol)
Symbols\Attributes\PEAttributeData.vb (1)
149Dim attributeClass As TypeSymbol = Nothing
Symbols\Attributes\RetargetingAttributeData.vb (2)
33Friend Overrides Function GetSystemType(ByVal targetSymbol As Symbol) As TypeSymbol 38Dim systemType As TypeSymbol = underlyingAssembly.DeclaringCompilation.GetWellKnownType(WellKnownType.System_Type)
Symbols\Attributes\SourceAttributeData.vb (4)
116Dim lazySystemType As TypeSymbol = Nothing 149Dim parameterType As TypeSymbol = parameters(k).Type 241foundMatch = TypeSymbol.Equals(parameterType, lazySystemType, TypeCompareKind.ConsiderEverything) 271Friend Overridable Function GetSystemType(targetSymbol As Symbol) As TypeSymbol
Symbols\BaseTypeAnalysis.vb (10)
25Public ReadOnly dependent As TypeSymbol 27Friend Sub New(kind As DependencyKind, dependent As TypeSymbol) 49Dim current As ConsList(Of TypeSymbol) = basesBeingResolved.InheritsBeingResolvedOpt 92base As TypeSymbol) As DiagnosticInfo 192current As TypeSymbol) As ConsList(Of DependencyDesc) 193Debug.Assert(TypeSymbol.Equals(root.OriginalDefinition, root, TypeCompareKind.ConsiderEverything), "root must not be a substitution") 315Dim derived As New HashSet(Of TypeSymbol) 320Dim verified As New HashSet(Of TypeSymbol) 333Private Function HasCycles(derived As HashSet(Of TypeSymbol), verified As HashSet(Of TypeSymbol), [interface] As NamedTypeSymbol) As Boolean
Symbols\ConstantValueUtils.vb (3)
13Public Sub New(value As ConstantValue, type As TypeSymbol) 21Public ReadOnly Type As TypeSymbol 40Dim boundValueType As TypeSymbol
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\CustomModifier.vb (2)
50Friend Shared Function Convert(customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As ImmutableArray(Of CustomModifier) 57Private Shared Function Convert(customModifier As ModifierInfo(Of TypeSymbol)) As CustomModifier
Symbols\ErrorMethodSymbol.vb (7)
14Private ReadOnly _containingType As TypeSymbol 15Private ReadOnly _returnType As TypeSymbol 18Public Sub New(containingType As TypeSymbol, returnType As TypeSymbol, name As String) 210Public Overrides ReadOnly Property ReturnType As TypeSymbol 240Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 242Return ImmutableArray(Of TypeSymbol).Empty
Symbols\ErrorTypeSymbol.vb (6)
40Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 182Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 184Return ImmutableArray(Of TypeSymbol).Empty 278Friend Overrides ReadOnly Property CoClassType As TypeSymbol 324Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 390Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\EventSymbol.vb (3)
54Public MustOverride ReadOnly Property Type As TypeSymbol 154Friend ReadOnly Property DelegateReturnType As TypeSymbol 356Return TypeSymbol.Equals(Me.ContainingType, other.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso Me.OriginalDefinition Is other.OriginalDefinition
Symbols\ExtensionMethods.vb (1)
30For Each constraintType As TypeSymbol In typeParameter.ConstraintTypesNoUseSiteDiagnostics
Symbols\FieldSymbol.vb (4)
53Public MustOverride ReadOnly Property Type As TypeSymbol 171Friend Overridable Function GetInferredType(inProgress As ConstantFieldsInProgress) As TypeSymbol 299Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing 395Return If(TypeSymbol.Equals(newOwner, Me.ContainingType, TypeCompareKind.ConsiderEverything),
Symbols\IndexedTypeParameterSymbol.vb (3)
99Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 131Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 133Return ImmutableArray(Of TypeSymbol).Empty
Symbols\InstanceErrorTypeSymbol.vb (7)
43Public NotOverridable Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 122Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 124Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 142Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 202Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 204Return ImmutableArray(Of TypeSymbol).Empty 264Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\InstanceTypeSymbol.vb (6)
22Friend NotOverridable Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 26Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 28Return ImmutableArray(Of TypeSymbol).Empty 52Public NotOverridable Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 135Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 197Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
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\PEEventSymbol.vb (4)
31Private ReadOnly _eventType As TypeSymbol 110TypeSymbol.Equals(_addMethod.ReturnType, evt, TypeCompareKind.ConsiderEverything) AndAlso 113TypeSymbol.Equals(_removeMethod.Parameters(0).Type, evt, TypeCompareKind.ConsiderEverything) 211Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Metadata\PE\PEFieldSymbol.vb (9)
40Private _lazyType As TypeSymbol 359Dim fieldInfo As FieldInfo(Of TypeSymbol) = New MetadataDecoder(moduleSymbol, _containingType).DecodeFieldSignature(_handle) 361Dim type As TypeSymbol = Nothing 362Dim customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing 372Friend Shared Sub GetSignatureParts(fieldInfo As FieldInfo(Of TypeSymbol), ByRef type As TypeSymbol, ByRef customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) 377Dim refCustomModifiers = fieldInfo.RefCustomModifiers.NullToEmpty.Add(New ModifierInfo(Of TypeSymbol)(isOptional:=False, _byRefPlaceholder)) 384Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Metadata\PE\PEMethodSymbol.vb (7)
510Dim outputType As TypeSymbol = ReturnType 919Public Overrides ReadOnly Property ReturnType As TypeSymbol 967Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything)) 982Dim paramInfo() As ParamInfo(Of TypeSymbol) = 1036Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1039Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 1041Return ImmutableArray(Of TypeSymbol).Empty
Symbols\Metadata\PE\PEModuleSymbol.vb (4)
55''' This is a map from TypeDef handle to the target <see cref="TypeSymbol"/>. 60Friend ReadOnly TypeHandleToTypeMap As New ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol)(concurrencyLevel:=2, capacity:=s_defaultTypeMapCapacity) 63''' This is a map from TypeRef row id to the target <see cref="TypeSymbol"/>. 68Friend ReadOnly TypeRefHandleToTypeMap As New ConcurrentDictionary(Of TypeReferenceHandle, TypeSymbol)(concurrencyLevel:=2, capacity:=s_defaultTypeMapCapacity)
Symbols\Metadata\PE\PENamedTypeSymbol.vb (9)
71Private _lazyCoClassType As TypeSymbol = ErrorTypeSymbol.UnknownResultType 287Dim typeSymbol As TypeSymbol = tokenDecoder.GetTypeOfToken(interfaceHandle) 1003Dim base As TypeSymbol = GetDeclaredBase(Nothing) 1055Friend Overrides ReadOnly Property CoClassType As TypeSymbol 1060DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol)) 1067Private Function MakeComImportCoClassType() As TypeSymbol 1295Dim base As TypeSymbol = GetDeclaredBase(Nothing) 1390IndexedTypeParameterSymbol.Take(n).As(Of TypeSymbol)) 1394IndexedTypeParameterSymbol.Take(nestedTypeParameters.Length).As(Of 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\PEPropertySymbol.vb (11)
29Private ReadOnly _propertyType As TypeSymbol 64Dim returnInfo As ParamInfo(Of TypeSymbol) = propertyParams(0) 89propertyParams As ParamInfo(Of TypeSymbol)() 132Dim returnInfo As ParamInfo(Of TypeSymbol) = propertyParams(0) 271Public Overrides ReadOnly Property Type As TypeSymbol 381propertyParams As ParamInfo(Of TypeSymbol)(), 383getMethodParamsOpt As ParamInfo(Of TypeSymbol)(), 385setMethodParamsOpt As ParamInfo(Of TypeSymbol)()) As Boolean 439propertyParams As ParamInfo(Of TypeSymbol)(), 627propertyParams As ParamInfo(Of TypeSymbol)() 631Dim returnInfo As ParamInfo(Of TypeSymbol) = propertyParams(0)
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
35Private _lazyConstraintTypes As ImmutableArray(Of TypeSymbol) 145Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 199Dim typeSymbol As TypeSymbol = tokenDecoder.GetTypeOfToken(constraintTypeHandle)
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\Metadata\PE\TupleTypeDecoder.vb (12)
22''' <see cref="DecodeTupleTypesIfApplicable(TypeSymbol, EntityHandle, PEModuleSymbol)"/> 76metadataType As TypeSymbol, 78containingModule As PEModuleSymbol) As TypeSymbol 93metadataType As TypeSymbol, 94elementNames As ImmutableArray(Of String)) As TypeSymbol 99Private Shared Function DecodeTupleTypesInternal(metadataType As TypeSymbol, 101hasTupleElementNamesAttribute As Boolean) As TypeSymbol 125Private Function DecodeType(type As TypeSymbol) As TypeSymbol 237Private Function DecodeTypeArguments(typeArgs As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 242Dim decodedArgs = ArrayBuilder(Of TypeSymbol).GetInstance(typeArgs.Length)
Symbols\MethodSignatureComparer.vb (9)
809Dim indexedTypeArguments = StaticCast(Of TypeSymbol).From(IndexedTypeParameterSymbol.Take(method.Arity)) 882Dim substitutedTypes1 = ArrayBuilder(Of TypeSymbol).GetInstance() 883Dim substitutedTypes2 = ArrayBuilder(Of TypeSymbol).GetInstance() 911Private Shared Function AreConstraintTypesSubset(constraintTypes1 As ArrayBuilder(Of TypeSymbol), constraintTypes2 As ArrayBuilder(Of TypeSymbol)) As Boolean 926Private Shared Function ContainsIgnoringCustomModifiers(types As ArrayBuilder(Of TypeSymbol), type As TypeSymbol) As Boolean 935Private Shared Sub SubstituteConstraintTypes(constraintTypes As ImmutableArray(Of TypeSymbol), result As ArrayBuilder(Of TypeSymbol), substitution As TypeSubstitution)
Symbols\MethodSymbol.vb (15)
74Public MustOverride ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 152Public MustOverride ReadOnly Property ReturnType As TypeSymbol 522Dim returnType As TypeSymbol = Me.ReturnType 564Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol)) 575Public Overridable Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 590Public Function Construct(ParamArray typeArguments() As TypeSymbol) As MethodSymbol 666Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing 736Public Overridable ReadOnly Property ReceiverType As TypeSymbol 750Public Overridable Function GetTypeInferredDuringReduction(reducedFromTypeParameter As TypeParameterSymbol) As TypeSymbol 757Friend Overridable ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 759Return ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty 770Friend Function ReduceExtensionMethod(instanceType As TypeSymbol, proximity As Integer, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As MethodSymbol 778Public Function ReduceExtensionMethod(instanceType As TypeSymbol, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As MethodSymbol 949Return Me.ReduceExtensionMethod(receiverType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(receiverType)), CompoundUseSiteInfo(Of AssemblySymbol).Discarded) 1118Return Construct(DirectCast(typeArguments, TypeSymbol()))
Symbols\MethodSymbolExtensions.vb (1)
97Friend Function ConstructIfGeneric(method As MethodSymbol, typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol
Symbols\MissingModuleSymbol.vb (1)
143Friend Overrides Function GetUnificationUseSiteErrorInfo(dependentType As TypeSymbol) As DiagnosticInfo
Symbols\ModuleSymbol.vb (1)
213Friend MustOverride Function GetUnificationUseSiteErrorInfo(dependentType As TypeSymbol) As DiagnosticInfo
Symbols\NamedTypeSymbol.vb (14)
66Friend MustOverride ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 68Friend Function TypeArgumentsWithDefinitionUseSiteDiagnostics(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of TypeSymbol) 78Friend Function TypeArgumentWithDefinitionUseSiteDiagnostics(index As Integer, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol 462Public Function Construct(ParamArray typeArguments() As TypeSymbol) As NamedTypeSymbol 469Public Function Construct(typeArguments As IEnumerable(Of TypeSymbol)) As NamedTypeSymbol 481Public MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 484Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol)) 669Friend MustOverride ReadOnly Property CoClassType As TypeSymbol 956Protected NotOverridable Overrides ReadOnly Property OriginalTypeSymbolDefinition As TypeSymbol 1013For Each arg As TypeSymbol In currentType.TypeArgumentsNoUseSiteDiagnostics 1078''' Requires less computation than <see cref="TypeSymbol.TypeKind"/>== <see cref="TypeKind.Interface"/>. 1306Dim typeToCheck As TypeSymbol = Me 1312Loop While TypeSymbol.Equals(typeToCheck.OriginalDefinition, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything) AndAlso Not typeToCheck.IsDefinition 1316If underlying.Arity = TupleTypeSymbol.RestPosition AndAlso Not TypeSymbol.Equals(underlying.OriginalDefinition, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then
Symbols\NonMissingModuleSymbol.vb (1)
77Friend Overrides Function GetUnificationUseSiteErrorInfo(dependentType As TypeSymbol) As DiagnosticInfo
Symbols\NoPiaAmbiguousCanonicalTypeSymbol.vb (1)
63Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\NoPiaIllegalGenericInstantiationSymbol.vb (1)
42Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\NoPiaMissingCanonicalTypeSymbol.vb (1)
88Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\OverriddenMembersResult.vb (2)
94If TypeSymbol.Equals(baseType.OriginalDefinition, overriddenByDefinitionContainingTypeDefinition, TypeCompareKind.ConsiderEverything) Then 95If TypeSymbol.Equals(baseType, overriddenByDefinitionContaining, TypeCompareKind.ConsiderEverything) Then
Symbols\ParameterSymbol.vb (1)
107Public MustOverride ReadOnly Property Type As TypeSymbol
Symbols\PointerTypeSymbol.vb (4)
17Private ReadOnly _pointedAtType As TypeSymbol 20Public Sub New(pointedAtType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) 45Dim last As TypeSymbol 56Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\PropertySymbol.vb (4)
56Public MustOverride ReadOnly Property Type As TypeSymbol 214TypeSymbol.Equals(sourceProperty.ContainingType, fromMember.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso 387Friend Overridable ReadOnly Property ReceiverType As TypeSymbol 437Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing
Symbols\PropertySymbolExtensions.vb (2)
45Public Function GetTypeFromGetMethod([property] As PropertySymbol) As TypeSymbol 51Public Function GetTypeFromSetMethod([property] As PropertySymbol) 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\RetargetingEventSymbol.vb (1)
184Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingFieldSymbol.vb (1)
82Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingMethodSymbol.vb (4)
122Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 125Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 127Return ImmutableArray(Of TypeSymbol).Empty 162Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (4)
41Private _lazyCoClass As TypeSymbol = ErrorTypeSymbol.UnknownResultType 157Friend Overrides ReadOnly Property CoClassType As TypeSymbol 160Dim coClass As TypeSymbol = _underlyingType.CoClassType 164Interlocked.CompareExchange(_lazyCoClass, coClass, DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
Symbols\Retargeting\RetargetingParameterSymbol.vb (1)
72Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingPropertySymbol.vb (1)
238Public 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\Retargeting\RetargetingTypeParameterSymbol.vb (1)
77Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
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\SignatureOnlyParameterSymbol.vb (3)
18Private ReadOnly _type As TypeSymbol 27Public Sub New(ByVal type As TypeSymbol, 46Public Overrides ReadOnly Property Type() As TypeSymbol
Symbols\SignatureOnlyPropertySymbol.vb (3)
27Private ReadOnly _type As TypeSymbol 39[type] As TypeSymbol, 99Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\BoundLambdaParameterSymbol.vb (1)
26type As TypeSymbol,
Symbols\Source\CrefTypeParameterSymbol.vb (3)
70Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 72Return ImmutableArray(Of TypeSymbol).Empty 116Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\Source\CustomEventAccessorSymbol.vb (4)
215If Not eventType.IsErrorType AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then 228If Not registrationTokenType.IsErrorType AndAlso firstImplementedEvent.IsWindowsRuntimeEvent <> (TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything)) Then 235If Not registrationTokenType.IsErrorType AndAlso Not TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything) Then 239If Not eventType.IsErrorType AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then
Symbols\Source\CustomModifierUtils.vb (8)
18destinationTypeParameters As ImmutableArray(Of TypeSymbol), 19<[In], Out> ByRef destinationReturnType As TypeSymbol, 49Friend Shared Function CopyTypeCustomModifiers(sourceType As TypeSymbol, destinationType As TypeSymbol) As TypeSymbol 50Dim resultType As TypeSymbol 110Dim thisParamType As TypeSymbol = thisParam.Type 111Dim overriddenParamType As TypeSymbol = overriddenParam.Type
Symbols\Source\ImplementsHelper.vb (6)
177Dim interfaceType As TypeSymbol = binder.BindTypeSyntax(interfaceName, diagBag) 288If TypeSymbol.Equals(first.ContainingType, second.ContainingType, TypeCompareKind.ConsiderEverything) Then 459interfaceType As TypeSymbol, 562implementingType As TypeSymbol, 572Dim currType As TypeSymbol = implementingType 640currType As TypeSymbol,
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
151Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\Source\LambdaParameterSymbol.vb (3)
17Private ReadOnly _type As TypeSymbol ' Can be Nothing for UnboundLambdaParameterSymbol. 24type As TypeSymbol, 149Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\LambdaSymbol.vb (10)
21Friend Shared ReadOnly ReturnTypeIsBeingInferred As TypeSymbol = New ErrorTypeSymbol() 27Friend Shared ReadOnly ReturnTypeIsUnknown As TypeSymbol = New ErrorTypeSymbol() 34Friend Shared ReadOnly ReturnTypePendingDelegate As TypeSymbol = New ErrorTypeSymbol() 39Friend Shared ReadOnly ReturnTypeVoidReplacement As TypeSymbol = New ErrorTypeSymbol() 44Friend Shared ReadOnly ErrorRecoveryInferenceError As TypeSymbol = New ErrorTypeSymbol() 53Protected m_ReturnType As TypeSymbol 61returnType As TypeSymbol, 296Public Overrides ReadOnly Property ReturnType As TypeSymbol 320Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 322Return ImmutableArray(Of TypeSymbol).Empty
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\MeParameterSymbol.vb (3)
18Private ReadOnly _type As TypeSymbol 25Friend Sub New(memberSymbol As Symbol, type As TypeSymbol) 36Public Overrides ReadOnly Property [Type] As TypeSymbol
Symbols\Source\OverrideHidingHelper.vb (2)
821If Not TypeSymbol.Equals(builder(i).ContainingType, memberContainingType, TypeCompareKind.ConsiderEverything) AndAlso 951If TypeSymbol.Equals(originalSym.ContainingType, originalOther.ContainingType, TypeCompareKind.ConsiderEverything) AndAlso
Symbols\Source\RangeVariableSymbol.vb (9)
22Private ReadOnly _type As TypeSymbol 28type As TypeSymbol 46Public Overridable ReadOnly Property Type As TypeSymbol 131type As TypeSymbol 143type As TypeSymbol 152type As TypeSymbol 165type As TypeSymbol 246type As TypeSymbol 287type As TypeSymbol
Symbols\Source\SourceAssemblySymbol.vb (1)
241If uniqueAttributes Is Nothing OrElse Not uniqueAttributes.Contains(Function(a) TypeSymbol.Equals(a.AttributeClass, attributeClass, TypeCompareKind.ConsiderEverything)) Then
Symbols\Source\SourceClonedParameterSymbol.vb (6)
42Public Overrides ReadOnly Property Type As TypeSymbol 161Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 168Private ReadOnly _type As TypeSymbol 176type As TypeSymbol, 188Public Overrides ReadOnly Property Type As TypeSymbol 230Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceComplexParameterSymbol.vb (5)
277type As TypeSymbol, 293type As TypeSymbol, 405Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 423type As TypeSymbol, 452Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
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\SourceEnumConstantSymbol.vb (1)
63Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceEventSymbol.vb (4)
45Private _lazyType As TypeSymbol 152Private Function ComputeType(diagnostics As BindingDiagnosticBag, <Out()> ByRef isTypeInferred As Boolean, <Out()> ByRef isDelegateFromImplements As Boolean) As TypeSymbol 159Dim type As TypeSymbol 459Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceFile.vb (1)
358Dim type = TryCast(namespaceOrType, TypeSymbol)
Symbols\Source\SourceLambdaSymbol.vb (1)
21returnType 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\SourceMemberFieldSymbol.vb (13)
20Private _lazyType As TypeSymbol 62Public Overrides ReadOnly Property Type As TypeSymbol 77Private Function ComputeType(diagBag As BindingDiagnosticBag) As TypeSymbol 87Private Function GetDeclaredType(diagBag As BindingDiagnosticBag) As TypeSymbol 127Dim restrictedType As TypeSymbol = Nothing 147ignoreTypeSyntaxDiagnostics As Boolean) As TypeSymbol 151Dim asClauseType As TypeSymbol = Nothing 165Dim varType As TypeSymbol 200diagnostics As BindingDiagnosticBag) As TypeSymbol 240Friend Overrides Function GetInferredType(inProgress As ConstantFieldsInProgress) As TypeSymbol 269Protected Overridable Function GetInferredConstantType(inProgress As ConstantFieldsInProgress) As TypeSymbol 338Protected Overrides Function GetInferredConstantType(inProgress As ConstantFieldsInProgress) As TypeSymbol 385Protected Overrides Function GetInferredConstantType(inProgress As ConstantFieldsInProgress) As TypeSymbol
Symbols\Source\SourceMemberMethodSymbol.vb (5)
602Dim eventContainingType As TypeSymbol = Nothing 658Dim isFromBase = Not TypeSymbol.Equals(witheventsProperty.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything) 853Friend Shared Function FindWithEventsProperty(containingType As TypeSymbol, 891Friend Shared Function FindEvent(containingType As TypeSymbol, 929Private Shared Function FindProperty(containingType As TypeSymbol,
Symbols\Source\SourceMethodSymbol.vb (10)
1246Public NotOverridable Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1249Return StaticCast(Of TypeSymbol).From(TypeParameters) 2015Public MustOverride Overrides ReadOnly Property ReturnType As TypeSymbol 2029Private _lazyReturnType As TypeSymbol 2084Dim retType As TypeSymbol = GetReturnType(sourceModule, errorLocation, diagBag) 2101replaceMethodTypeParametersWithFakeTypeParameters = TypeSubstitution.Create(Me, Me.TypeParameters, StaticCast(Of TypeSymbol).From(fakeTypeParameters)) 2217Public NotOverridable Overrides ReadOnly Property ReturnType As TypeSymbol 2239diagBag As BindingDiagnosticBag) As TypeSymbol 2262Dim retType As TypeSymbol 2301Dim restrictedType As TypeSymbol = Nothing
Symbols\Source\SourceModuleSymbol.vb (3)
491Dim type = TryCast(namespaceOrType, TypeSymbol) 503Dim type = TryCast(target, TypeSymbol) 518Private Sub ValidateImport(type As TypeSymbol, info As GlobalImportInfo, diagnostics As BindingDiagnosticBag)
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\Source\SourceNamedTypeSymbol_ComClass.vb (11)
642Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 726Public Overloads Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 830Friend Overrides ReadOnly Property CoClassType As TypeSymbol 940Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 942Return ImmutableArray(Of TypeSymbol).Empty 1021Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 1275Public Overrides ReadOnly Property ReturnType As TypeSymbol 1299Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 1301Return ImmutableArray(Of TypeSymbol).Empty 1601Public Overrides ReadOnly Property Type As TypeSymbol 1807Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceParameterSymbol.vb (3)
18Private ReadOnly _type As TypeSymbol 24type As TypeSymbol, 79Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SourceParameterSymbolBase.vb (1)
77Friend MustOverride Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourcePropertyAccessorSymbol.vb (3)
26Private _lazyReturnType As TypeSymbol 180Public Overrides ReadOnly Property ReturnType As TypeSymbol 222diagBag As BindingDiagnosticBag) As TypeSymbol
Symbols\Source\SourcePropertySymbol.vb (6)
32Private _lazyType As TypeSymbol 330Public Overrides ReadOnly Property Type As TypeSymbol 337Private Function ComputeType(diagnostics As BindingDiagnosticBag) As TypeSymbol 377Dim restrictedType As TypeSymbol = Nothing 739Dim retType As TypeSymbol = ComputeType(diagnostics) 778Dim returnTypeWithCustomModifiers As TypeSymbol = overridden.Type
Symbols\Source\SourceSimpleParameterSymbol.vb (4)
29type As TypeSymbol, 162Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol 180type As TypeSymbol, 206Friend Overrides Function WithTypeAndCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier)) As ParameterSymbol
Symbols\Source\SourceTypeParameterSymbol.vb (2)
21Private _lazyConstraintTypes As ImmutableArray(Of TypeSymbol) 80Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
Symbols\Source\SynthesizedBackingFieldSymbol.vb (1)
21Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedEntryPointSymbol.vb (9)
19Private ReadOnly _returnType As TypeSymbol 48Private Sub New(containingType As NamedTypeSymbol, returnType As TypeSymbol) 139Public Overrides ReadOnly Property ReturnType As TypeSymbol 151Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 153Return ImmutableArray(Of TypeSymbol).Empty 197Private Shared Function GetRequiredMethod(type As TypeSymbol, methodName As String, diagnostics As BindingDiagnosticBag) As MethodSymbol 225Friend Sub New(containingType As NamedTypeSymbol, returnType As TypeSymbol, getAwaiterMethod As MethodSymbol, getResultMethod As MethodSymbol) 317Friend Sub New(containingType As NamedTypeSymbol, returnType As TypeSymbol, submissionArrayType As TypeSymbol)
Symbols\Source\SynthesizedEventAccessorSymbol.vb (7)
20Private _lazyReturnType As TypeSymbol 53Dim parameterType As TypeSymbol 73Public Overrides ReadOnly Property ReturnType As TypeSymbol 79Dim type As TypeSymbol 278Dim delegateType As TypeSymbol = eventSymbol.Type 281Dim boolType As TypeSymbol = compilation.GetSpecialType(SpecialType.System_Boolean) 372compareExchangeMethod = compareExchangeMethod.Construct(ImmutableArray.Create(Of TypeSymbol)(delegateType))
Symbols\Source\SynthesizedEventBackingFieldSymbol.vb (2)
18Private _lazyType As TypeSymbol 34Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedFieldSymbol.vb (3)
24Protected ReadOnly _type As TypeSymbol 31type As TypeSymbol, 52Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (5)
14Friend ReadOnly ResultType As TypeSymbol 19Private ReadOnly _returnType As TypeSymbol 111Public Overrides ReadOnly Property ReturnType As TypeSymbol 151ByRef resultType As TypeSymbol, 152ByRef returnType As TypeSymbol)
Symbols\Source\SynthesizedLambdaSymbol.vb (2)
22returnType As TypeSymbol, 84Public Sub SetQueryLambdaReturnType(returnType As TypeSymbol)
Symbols\Source\SynthesizedMainTypeEntryPoint.vb (1)
40Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (2)
163Public Overrides ReadOnly Property ReturnType As TypeSymbol 208Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Source\SynthesizedMyGroupCollectionPropertyBackingFieldSymbol.vb (1)
24type As TypeSymbol,
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
55Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Source\SynthesizedWithEventsAccessorSymbol.vb (4)
149Public Overrides ReadOnly Property ReturnType As TypeSymbol 159Private ReadOnly _returnType As TypeSymbol 164returnType As TypeSymbol, 194Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Source\UnboundLambdaParameterSymbol.vb (2)
26type As TypeSymbol, 87Dim paramType As TypeSymbol = binder.DecodeModifiedIdentifierType(syntax.Identifier, syntax.AsClause, Nothing, getErrorInfo, diagBag, Binder.ModifiedIdentifierTypeDecoderContext.LambdaParameterType)
Symbols\SubstitutableTypeParameterSymbol.vb (1)
21Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SubstitutedErrorType.vb (4)
115Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 120Return StaticCast(Of TypeSymbol).From(TypeParameters) 201Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 248Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
Symbols\SubstitutedEventSymbol.vb (2)
27Private _lazyType As TypeSymbol 66Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedFieldSymbol.vb (1)
162Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedMethodSymbol.vb (22)
114Public Overrides ReadOnly Property ReceiverType As TypeSymbol 124Public Overrides Function GetTypeInferredDuringReduction(reducedFromTypeParameter As TypeParameterSymbol) As TypeSymbol 132Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)) 305Public Overrides ReadOnly Property ReturnType As TypeSymbol 323Public MustOverride Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 401Public MustOverride Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 441Debug.Assert(TypeSymbol.Equals(propertyOrEventSymbol.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything)) 511Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 515Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 517Return ImmutableArray(Of TypeSymbol).Empty 653Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 675Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 677Return StaticCast(Of TypeSymbol).From(_typeParameters) 695Protected ReadOnly _typeArguments As ImmutableArray(Of TypeSymbol) 697Protected Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 722Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 726Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 784Public Sub New(constructedFrom As SpecializedGenericMethod, substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 830Public Sub New(substitution As TypeSubstitution, typeArguments As ImmutableArray(Of TypeSymbol)) 874Dim resultTypeArguments(reducedDef.Arity - 1) As TypeSymbol 876For Each pair As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In Me.FixedTypeParameters 881Dim typeArguments As ImmutableArray(Of TypeSymbol) = Me.TypeArguments
Symbols\SubstitutedNamedType.vb (14)
182Friend Overrides ReadOnly Property CoClassType As TypeSymbol 437Debug.Assert(TypeSymbol.Equals(member.ContainingType, Me.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 515Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 632Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 712Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 714Return StaticCast(Of TypeSymbol).From(TypeParameters) 755Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 877Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 879Return ImmutableArray(Of TypeSymbol).Empty 899Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 947Private ReadOnly _typeArguments As ImmutableArray(Of TypeSymbol) 973Friend NotOverridable Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 999Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 1003Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\SubstitutedParameterSymbol.vb (1)
98Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedPropertySymbol.vb (1)
214Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\SubstitutedTypeParameterSymbol.vb (2)
95Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 169Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
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\SymbolExtensions.vb (1)
34Select Case DirectCast(target, TypeSymbol).TypeKind
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (2)
33Private _lazyConstraints As ImmutableArray(Of TypeSymbol) 69Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
Symbols\SynthesizedSymbols\SynthesizedConstructorBase.vb (2)
26Protected ReadOnly m_voidType As TypeSymbol 199Public NotOverridable Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedDelegateMethodSymbol.vb (5)
23Private ReadOnly _returnType As TypeSymbol 38returnType As TypeSymbol) 345Public Overrides ReadOnly Property ReturnType As TypeSymbol 378Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 380Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
301Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedGlobal_StringSwitchHashMethodSymbol.vb (2)
26Private ReadOnly _returnType As TypeSymbol 65Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedGlobalMethodBase.vb (2)
299Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 301Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedInterfaceImplementationStubSymbol.vb (6)
23Private ReadOnly _returnType As TypeSymbol 41_typeParametersSubstitution = TypeSubstitution.Create(implementingMethod, implementingMethod.TypeParameters, StaticCast(Of TypeSymbol).From(_typeParameters)) 44implementedMethod = implementedMethod.Construct(StaticCast(Of TypeSymbol).From(_typeParameters)) 77Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 79Return StaticCast(Of TypeSymbol).From(Me.TypeParameters) 83Public Overrides ReadOnly Property ReturnType As TypeSymbol
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\SynthesizedLocal.vb (1)
21type As TypeSymbol,
Symbols\SynthesizedSymbols\SynthesizedMethod.vb (2)
51newType As TypeSymbol, 94Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\SynthesizedSymbols\SynthesizedMethodBase.vb (2)
132Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 134Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
205Public Overrides ReadOnly Property Type As TypeSymbol
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\SynthesizedSymbols\SynthesizedSimpleMethodSymbol.vb (3)
22Private ReadOnly _returnType As TypeSymbol 26returnType As TypeSymbol, 76Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\Tuples\TupleErrorFieldSymbol.vb (3)
39type As TypeSymbol, 118Public Overrides ReadOnly Property Type As TypeSymbol 138(other IsNot Nothing AndAlso Me._tupleElementIndex = other._tupleElementIndex AndAlso TypeSymbol.Equals(Me.ContainingType, other.ContainingType, TypeCompareKind.ConsiderEverything))
Symbols\Tuples\TupleEventSymbol.vb (2)
38Public Overrides ReadOnly Property Type As TypeSymbol 101(other IsNot Nothing AndAlso TypeSymbol.Equals(Me._containingType, other._containingType, TypeCompareKind.ConsiderEverything) AndAlso Me._underlyingEvent = other._underlyingEvent)
Symbols\Tuples\TupleFieldSymbol.vb (2)
80Public Overrides ReadOnly Property Type As TypeSymbol 117TypeSymbol.Equals(_containingTuple, other._containingTuple, TypeCompareKind.ConsiderEverything)
Symbols\Tuples\TupleMethodSymbol.vb (4)
77Public Overrides ReadOnly Property ReturnType As TypeSymbol 95Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 97Return StaticCast(Of TypeSymbol).From(Me._typeParameters) 147(other IsNot Nothing AndAlso TypeSymbol.Equals(Me._containingType, other._containingType, TypeCompareKind.ConsiderEverything) AndAlso Me._underlyingMethod.ConstructedFrom = other._underlyingMethod.ConstructedFrom)
Symbols\Tuples\TuplePropertySymbol.vb (2)
34Public Overrides ReadOnly Property Type As TypeSymbol 129(other IsNot Nothing AndAlso TypeSymbol.Equals(Me._containingType, other._containingType, TypeCompareKind.ConsiderEverything) AndAlso Me._underlyingProperty = other._underlyingProperty)
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\TypeParameterConstraint.vb (3)
22Public Sub New(type As TypeSymbol, loc As Location) 27Private Sub New(kind As TypeParameterConstraintKind, type As TypeSymbol, loc As Location) 40Public ReadOnly TypeConstraint As TypeSymbol
Symbols\TypeParameterSymbol.vb (11)
42Protected NotOverridable Overrides ReadOnly Property OriginalTypeSymbolDefinition As TypeSymbol 62Friend MustOverride ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 64Friend Function ConstraintTypesWithDefinitionUseSiteDiagnostics(<[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ImmutableArray(Of TypeSymbol) 205Friend Shared Function GetConstraintTypesOnly(constraints As ImmutableArray(Of TypeParameterConstraint)) As ImmutableArray(Of TypeSymbol) 207Return ImmutableArray(Of TypeSymbol).Empty 210Dim builder = ArrayBuilder(Of TypeSymbol).GetInstance() 245Private Shared Function ConstraintImpliesReferenceType(constraint As TypeSymbol) As Boolean 347Friend Shared Function InternalSubstituteTypeParametersDistinct(substitution As TypeSubstitution, types As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol) 351Private Shared ReadOnly s_substituteFunc As Func(Of TypeSymbol, TypeSubstitution, TypeSymbol) = Function(type, substitution) type.InternalSubstituteTypeParameters(substitution).Type
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\TypeWithModifiers.vb (7)
12Public ReadOnly Type As TypeSymbol 15Public Sub New(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) 21Public Sub New(type As TypeSymbol) 62Public Function [Is](other As TypeSymbol) As Boolean 63Return TypeSymbol.Equals(Me.Type, other, TypeCompareKind.ConsiderEverything) AndAlso Me.CustomModifiers.IsEmpty 67Public Overloads Function Equals(other As TypeSymbol) As Boolean 76Public Function AsTypeSymbolOnly() As TypeSymbol
Symbols\UnboundGenericType.vb (11)
113Friend MustOverride Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 173Friend Overrides ReadOnly Property CoClassType As TypeSymbol 287Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean 309Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol 329Friend NotOverridable Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo 347Private _lazyTypeArguments As ImmutableArray(Of TypeSymbol) 357_lazyTypeArguments = ImmutableArray(Of TypeSymbol).Empty 431Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 435Dim arguments(OriginalDefinition.Arity - 1) As TypeSymbol 611Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 613Return StaticCast(Of TypeSymbol).From(_typeParameters)
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
Symbols\Wrapped\WrappedNamedTypeSymbol.vb (1)
132Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\Wrapped\WrappedParameterSymbol.vb (1)
31Public Overrides ReadOnly Property Type As TypeSymbol
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)
Utilities\VarianceAmbiguity.vb (3)
55Debug.Assert(TypeSymbol.Equals(i1.OriginalDefinition, i2.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 116typeArgument1 As TypeSymbol, 117typeArgument2 As TypeSymbol,
VisualBasicExtensions.vb (4)
775Return vbcomp.ClassifyConversion(DirectCast(source, TypeSymbol), DirectCast(destination, TypeSymbol)) 810Return vbmodel.ClassifyConversion(expression, DirectCast(destination, TypeSymbol)) 828Return vbmodel.ClassifyConversion(position, expression, DirectCast(destination, TypeSymbol))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (74)
Attributes\AttributeTests.vb (8)
795Dim nenum = top.GetMember(Of TypeSymbol)("NestedEnum") 1950Assert.False(DirectCast(gt.Value, TypeSymbol).IsErrorType) 2002Assert.False(DirectCast(gt.Value, TypeSymbol).IsErrorType) 2037Assert.False(DirectCast(gt.Value, TypeSymbol).IsErrorType) 2081Assert.False(DirectCast(gt.Value, TypeSymbol).IsErrorType) 2192Dim classYOfW As NamedTypeSymbol = classY.Construct(ImmutableArray.Create(Of TypeSymbol)(classW)) 2199Dim classYOfInt As NamedTypeSymbol = classY.Construct(ImmutableArray.Create(Of TypeSymbol)(m.ContainingAssembly.GetSpecialType(SpecialType.System_Int32))) 2208Dim substNestedZ As NamedTypeSymbol = classYOfInt.GetTypeMember("Z").Construct(ImmutableArray.Create(Of TypeSymbol)(classW))
Attributes\AttributeTests_Tuples.vb (1)
266Dim typeSymbols = ArrayBuilder(Of TypeSymbol).GetInstance()
CodeGen\CodeGenScriptTests.vb (1)
34Dim type = TryCast(info.Symbol, TypeSymbol)
CodeGen\CodeGenTuples.vb (59)
6865Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6888Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6889Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6917Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6918Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6940Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6941Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6960Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6961Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 6980Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 6981Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7001Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7019Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7020Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7044Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7045Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7069Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7070Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7094Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7095Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7119Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7120Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 7150Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 7507Dim twoStringsWithNames = DirectCast(comp.CreateTupleTypeSymbol(twoStrings, ImmutableArray.Create("a", "b")), TypeSymbol) 7509Dim tuple2 = DirectCast(comp.CreateTupleTypeSymbol(tuple2Underlying), TypeSymbol) 7512ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "a", "b")), TypeSymbol) 7515ImmutableArray.Create("Item1", "Item2", "Item3", "Item4", "Item5", "Item6", "Item7", "a", "b")), TypeSymbol) 7729Return TypeSymbol.Equals(DirectCast(a, TypeSymbol), DirectCast(b, TypeSymbol), compareKind) 8935Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 9063Dim type = DirectCast(model.GetTypeInfo(tuple).Type, TypeSymbol) 17249Dim cMabImplementations = DirectCast(DirectCast(c, TypeSymbol).GetMember("M_1"), IMethodSymbol).ExplicitInterfaceImplementations 17252Dim cMcdImplementations = DirectCast(DirectCast(c, TypeSymbol).GetMember("M_2"), IMethodSymbol).ExplicitInterfaceImplementations 17316Dim m2 = DirectCast(DirectCast(c2, TypeSymbol).GetMember("M"), IMethodSymbol) 17324Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c2Interfaces(0), TypeSymbol).GetMember("M"))) 17325Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c1Interfaces(0), TypeSymbol).GetMember("M"))) 17389Dim m2 = DirectCast(DirectCast(c2, TypeSymbol).GetMember("M"), IMethodSymbol) 17393Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c2Interfaces(0), TypeSymbol).GetMember("M"))) 17394Assert.Same(m2, c2.FindImplementationForInterfaceMember(DirectCast(c1Interfaces(0), TypeSymbol).GetMember("M"))) 17532Dim cMabImplementations = DirectCast(DirectCast(c, TypeSymbol).GetMember("M_1"), IMethodSymbol).ExplicitInterfaceImplementations 17535Dim cMcdImplementations = DirectCast(DirectCast(c, TypeSymbol).GetMember("M_2"), IMethodSymbol).ExplicitInterfaceImplementations 17579Dim cMabImplementations = DirectCast(DirectCast(c3, TypeSymbol).GetMember("M_1"), IMethodSymbol).ExplicitInterfaceImplementations 17582Dim cMcdImplementations = DirectCast(DirectCast(c3, TypeSymbol).GetMember("M_2"), IMethodSymbol).ExplicitInterfaceImplementations 17629Dim mImplementations = DirectCast(DirectCast(c3, TypeSymbol).GetMember("M"), IMethodSymbol).ExplicitInterfaceImplementations 17634c3.FindImplementationForInterfaceMember(DirectCast(c3Interfaces(0), TypeSymbol).GetMember("M")).ToTestDisplayString()) 18592Dim tuple1 As TypeSymbol = m1.Parameters(0).Type 18613Dim tuple2 As TypeSymbol = m2.Parameters(0).Type 20501Dim typeArg As TypeSymbol = constraint.TypeArguments(0) 21363Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21364Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M"))) 21365Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21366Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M"))) 21498Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21499Assert.Same(m, derived1.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M"))) 21500Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived1.Interfaces(0), TypeSymbol).GetMember("M"))) 21501Assert.Same(m, derived2.FindImplementationForInterfaceMember(DirectCast(derived2.Interfaces(0), TypeSymbol).GetMember("M"))) 22688Dim imc1 = CType(lib2_comp.GlobalNamespace.GetMember("I0"), TypeSymbol) 22702Dim imc2 = CType(client_comp.GlobalNamespace.GetMember("I0"), TypeSymbol)
Emit\EditAndContinue\EditAndContinueStateMachineTests.vb (1)
8971Dim ism1 = compilation1.GetMember(Of TypeSymbol)("System.Runtime.CompilerServices.IteratorStateMachineAttribute")
Emit\EditAndContinue\EditAndContinueTests.vb (2)
5323Dim mX1 = compilationA1.GetMember(Of TypeSymbol)("X") 5340New SemanticEdit(SemanticEditKind.Insert, Nothing, compilationB1.GetMember(Of TypeSymbol)("Y"))),
Emit\EditAndContinue\SymbolMatcherTests.vb (2)
226Dim elementType = compilation1.GetMember(Of TypeSymbol)("C.D") 258Dim elementType = compilation1.GetMember(Of TypeSymbol)("C.D")
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (93)
Binders\EENamedTypeBinder.vb (1)
64Debug.Assert(TypeSymbol.Equals(symbol.OriginalDefinition.ContainingType, substitutedSourceType.OriginalDefinition, TypeCompareKind.ConsiderEverything))
CompilationContext.vb (10)
52methodDebugInfo As MethodDebugInfo(Of TypeSymbol, LocalSymbol), 326Dim returnType = typeVariablesType.Construct(ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(allTypeParameters)) 767Dim typeSymbol As TypeSymbol 769typeSymbol = DirectCast(importRecord.TargetType, TypeSymbol) 1067Dim displayClassTypes = PooledHashSet(Of TypeSymbol).GetInstance() 1179displayClassTypes As HashSet(Of TypeSymbol), 1192displayClassTypes As HashSet(Of TypeSymbol), 1419Dim indexedTypeParameters = IndexedTypeParameterSymbol.Take(arity).As(Of TypeSymbol) 1429sourceTypeTypeParameters.As(Of TypeSymbol).Concat(indexedTypeParameters)) 1463Friend ReadOnly Property Type As TypeSymbol
CompilationExtensions.vb (1)
102Friend Function GetCustomTypeInfoPayload(compilation As VisualBasicCompilation, type As TypeSymbol) As ReadOnlyCollection(Of Byte)
EETypeNameDecoder.vb (5)
13Inherits TypeNameDecoder(Of PEModuleSymbol, TypeSymbol) 50Protected Overrides Function LookupNestedTypeDefSymbol(container As TypeSymbol, ByRef emittedName As MetadataTypeName) As TypeSymbol 57Protected Overrides Function LookupTopLevelTypeDefSymbol(referencedAssemblyIndex As Integer, ByRef emittedName As MetadataTypeName) As TypeSymbol 64Protected Overrides Function LookupTopLevelTypeDefSymbol(ByRef emittedName As MetadataTypeName, ByRef isNoPiaLocalType As Boolean) As TypeSymbol
EvaluationContext.vb (9)
44Private ReadOnly _methodDebugInfo As MethodDebugInfo(Of TypeSymbol, LocalSymbol) 53methodDebugInfo As MethodDebugInfo(Of TypeSymbol, LocalSymbol)) 92methodDebugInfo:=MethodDebugInfo(Of TypeSymbol, LocalSymbol).None) 165Dim debugInfo As MethodDebugInfo(Of TypeSymbol, LocalSymbol) 171debugInfo = MethodDebugInfo(Of TypeSymbol, LocalSymbol).ReadMethodDebugInfo(typedSymReader, symbolProvider, methodToken, methodVersion, ilOffset, isVisualBasicMethod:=True) 187MethodDebugInfo(Of TypeSymbol, LocalSymbol).GetLocals(localsBuilder, symbolProvider, localNames, localInfo, Nothing, debugInfo.TupleLocalMap) 253Friend Shared Function SynthesizeMethodDebugInfoForDtee(assemblyReaders As ImmutableArray(Of AssemblyReaders)) As MethodDebugInfo(Of TypeSymbol, LocalSymbol) 283Dim debugInfo = MethodDebugInfo(Of TypeSymbol, LocalSymbol).ReadMethodDebugInfo(symReader, 321Return New MethodDebugInfo(Of TypeSymbol, LocalSymbol)(
Rewriters\CapturedVariableRewriter.vb (5)
66Debug.Assert(TypeSymbol.Equals(node.Type, result.Type, TypeCompareKind.ConsiderEverything)) 72Debug.Assert(TypeSymbol.Equals(node.Type, result.Type, TypeCompareKind.ConsiderEverything)) 108Debug.Assert(TypeSymbol.Equals(result.Type, node.Type, TypeCompareKind.ConsiderEverything)) 152Debug.Assert(TypeSymbol.Equals(result.Type, node.Type, TypeCompareKind.ConsiderEverything) OrElse 153TypeSymbol.Equals(result.Type.BaseTypeNoUseSiteDiagnostics, node.Type, TypeCompareKind.ConsiderEverything))
Rewriters\PlaceholderLocalRewriter.vb (1)
29Debug.Assert(TypeSymbol.Equals(result.Type, node.Type, TypeCompareKind.ConsiderEverything))
SymbolExtensions.vb (6)
20Public Function IsContainingSymbolOfAllTypeParameters(containingSymbol As Symbol, type As TypeSymbol) As Boolean 24Private ReadOnly s_hasInvalidTypeParameterFunc As Func(Of TypeSymbol, Symbol, Boolean) = AddressOf HasInvalidTypeParameter 26Private Function HasInvalidTypeParameter(type As TypeSymbol, containingSymbol As Symbol) As Boolean 62Friend Function IsClosureOrStateMachineType(type As TypeSymbol) As Boolean 67Friend Function IsClosureType(type As TypeSymbol) As Boolean 72Friend Function IsStateMachineType(type As TypeSymbol) As Boolean
Symbols\DisplayClassInstance.vb (3)
11Friend MustOverride ReadOnly Property Type As TypeSymbol 46Friend Overrides ReadOnly Property Type As TypeSymbol 85Friend Overrides ReadOnly Property Type As TypeSymbol
Symbols\DisplayClassVariable.vb (4)
46Friend ReadOnly Property Type As TypeSymbol 106Private ReadOnly _type As TypeSymbol 109Friend Sub New(container As NamedTypeSymbol, name As String, type As TypeSymbol, accessibility As Accessibility) 186Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\EELocalConstantSymbol.vb (1)
20type As TypeSymbol,
Symbols\EELocalSymbol.vb (1)
27type As TypeSymbol,
Symbols\EELocalSymbolBase.vb (3)
28Friend Sub New(container As Symbol, type As TypeSymbol) 57Dim localType As TypeSymbol = Me.Type 67Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing
Symbols\EEMethodSymbol.vb (9)
46Private _lazyReturnType As TypeSymbol 65Debug.Assert(TypeSymbol.Equals(sourceMethod.ContainingType, container.SubstitutedSourceType.OriginalDefinition, TypeCompareKind.ConsiderEverything)) 91Me.TypeMap = TypeSubstitution.Create(sourceMethod, allSourceTypeParameters, ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(_allTypeParameters)) 98Me.SubstitutedSourceMethod = Me.SubstitutedSourceMethod.Construct(_typeParameters.As(Of TypeSymbol)()) 109Debug.Assert(TypeSymbol.Equals(_meParameter.Type, Me.SubstitutedSourceMethod.ContainingType, TypeCompareKind.ConsiderEverything)) 273Public Overrides ReadOnly Property ReturnType As TypeSymbol 282Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 284Return ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(_typeParameters) 597Private Function CalculateReturnType(body As BoundStatement) As TypeSymbol
Symbols\EENamedTypeSymbol.vb (2)
91typeMap = TypeSubstitution.Create(sourceType, SourceTypeParameters, ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(_typeParameters)) 315Friend Overrides ReadOnly Property CoClassType As TypeSymbol
Symbols\EETypeParameterSymbol.vb (2)
101Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 105Return ImmutableArray(Of TypeSymbol).Empty
Symbols\ExceptionLocalSymbol.vb (1)
15Friend Sub New(method As MethodSymbol, name As String, displayName As String, type As TypeSymbol, getExceptionMethodName As String)
Symbols\ObjectIdLocalSymbol.vb (1)
16Friend Sub New(method As MethodSymbol, type As TypeSymbol, name As String, displayName As String, isReadOnly As Boolean)
Symbols\PlaceholderLocalSymbol.vb (3)
22Friend Sub New(method As MethodSymbol, name As String, displayName As String, type As TypeSymbol) 29typeNameDecoder As TypeNameDecoder(Of PEModuleSymbol, TypeSymbol), 118type As TypeSymbol,
Symbols\PlaceholderMethodSymbol.vb (5)
20Friend Delegate Function GetReturnType(method As PlaceholderMethodSymbol) As TypeSymbol 25Private ReadOnly _returnType As TypeSymbol 107Public Overrides ReadOnly Property ReturnType As TypeSymbol 113Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 115Return ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(_typeParameters)
Symbols\ReturnValueLocalSymbol.vb (1)
16Friend Sub New(method As MethodSymbol, name As String, displayName As String, type As TypeSymbol, index As Integer)
Symbols\SimpleTypeParameterSymbol.vb (2)
79Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) 81Return ImmutableArray(Of TypeSymbol).Empty
Symbols\SynthesizedContextMethodSymbol.vb (1)
75Public Overrides ReadOnly Property ReturnType As TypeSymbol
Symbols\TypeSubstitutionExtensions.vb (2)
12Friend Function SubstituteType(typeMap As TypeSubstitution, type As TypeSymbol) As TypeSymbol
VisualBasicEESymbolProvider.vb (9)
16Inherits EESymbolProvider(Of TypeSymbol, LocalSymbol) 29info As LocalInfo(Of TypeSymbol), 43type As TypeSymbol, 54Public Overrides Function DecodeLocalVariableType(signature As ImmutableArray(Of Byte)) As TypeSymbol 58Public Overrides Function GetTypeSymbolForSerializedType(typeName As String) As TypeSymbol 64Public Overrides Sub DecodeLocalConstant(ByRef reader As BlobReader, ByRef type As TypeSymbol, ByRef value As ConstantValue) 78Public Overrides Function [GetType](handle As EntityHandle) As TypeSymbol 83Private Function IncludeTupleElementNamesIfAny(type As TypeSymbol, tupleElementNamesOpt As ImmutableArray(Of String)) As TypeSymbol
VisualBasicFrameDecoder.vb (1)
12Friend NotInheritable Class VisualBasicFrameDecoder : Inherits FrameDecoder(Of VisualBasicCompilation, MethodSymbol, PEModuleSymbol, TypeSymbol, TypeParameterSymbol)
VisualBasicInstructionDecoder.vb (3)
17Friend NotInheritable Class VisualBasicInstructionDecoder : Inherits InstructionDecoder(Of VisualBasicCompilation, MethodSymbol, PEModuleSymbol, TypeSymbol, TypeParameterSymbol) 68Friend Overrides Function ConstructMethod(method As MethodSymbol, typeParameters As ImmutableArray(Of TypeParameterSymbol), typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol 117Friend Overrides Function GetTypeNameDecoder(compilation As VisualBasicCompilation, method As MethodSymbol) As TypeNameDecoder(Of PEModuleSymbol, TypeSymbol)
VisualBasicLanguageInstructionDecoder.vb (1)
12Friend NotInheritable Class VisualBasicLanguageInstructionDecoder : Inherits LanguageInstructionDecoder(Of VisualBasicCompilation, MethodSymbol, PEModuleSymbol, TypeSymbol, TypeParameterSymbol, ParameterSymbol)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (5)
DteeTests.vb (1)
417Private Shared Sub CheckDteeMethodDebugInfo(methodDebugInfo As MethodDebugInfo(Of TypeSymbol, LocalSymbol), ParamArray namespaceNames As String())
ExpressionCompilerTestBase.vb (2)
464Friend Shared Function GetMethodDebugInfo(runtime As RuntimeInstance, qualifiedMethodName As String, Optional ilOffset As Integer = 0) As MethodDebugInfo(Of TypeSymbol, LocalSymbol) 470Return MethodDebugInfo(Of TypeSymbol, LocalSymbol).ReadMethodDebugInfo(DirectCast(symReader, ISymUnmanagedReader3), symbolProvider, MetadataTokens.GetToken(peMethod.Handle), methodVersion:=1, ilOffset:=ilOffset, isVisualBasicMethod:=True)
ExpressionCompilerTests.vb (1)
2082Assert.Equal(method, DirectCast(locals.Single().Type.GetInternalSymbol(), TypeSymbol).ContainingSymbol)
TupleTests.vb (1)
466Dim returnType = DirectCast(method.ReturnType, TypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (91)
Binding\ImplicitVariableTests.vb (2)
1239Private Sub VerifySemanticInfo(semanticInfo As SemanticInfoSummary, expectedType As TypeSymbol, symbolKind? As SymbolKind, expectedSymbol As String) 1259Private Sub VerifySemanticInfoSummary(semanticInfo As SemanticInfoSummary, expectedType As TypeSymbol, symbolKind? As SymbolKind)
Compilation\CompilationAPITests.vb (4)
1478Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 1479Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String) 1494Dim intType As TypeSymbol = comp.GetSpecialType(SpecialType.System_Int32) 1495Dim stringType As TypeSymbol = comp.GetSpecialType(SpecialType.System_String)
Compilation\GetSemanticInfoBrokenCodeTests.vb (1)
363Dim type = compilation.GlobalNamespace.GetMember(Of NamedTypeSymbol)(TypeSymbol.ImplicitTypeName)
Compilation\ReferenceManagerTests.vb (2)
1525Dim implicitTypeCount1 = comp1.GlobalNamespace.GetMember(Of NamespaceSymbol)("A").GetMembers(TypeSymbol.ImplicitTypeName).Length 1531Dim implicitTypeCount2 = comp2.GlobalNamespace.GetMember(Of NamespaceSymbol)("A").GetMembers(TypeSymbol.ImplicitTypeName).Length
Compilation\SemanticModelAPITests.vb (13)
120Dim IEnumerableOfA As TypeSymbol = DirectCast(declSym, LocalSymbol).Type 160Dim IEnumerableOfA As TypeSymbol = DirectCast(declSym, LocalSymbol).Type 2099Dim listOfInt32_1 As TypeSymbol = DirectCast(classAAA.GetMembers("field_li1").Single(), FieldSymbol).Type 2100Dim listOfInt32_2 As TypeSymbol = DirectCast(classAAA.GetMembers("field_li2").Single(), FieldSymbol).Type 2101Dim enumType As TypeSymbol = DirectCast(classAAA.GetMembers("field_enum").Single(), FieldSymbol).Type 2102Dim aaaArray As TypeSymbol = DirectCast(classAAA.GetMembers("field_aaa_array").Single(), FieldSymbol).Type 2103Dim objArray As TypeSymbol = DirectCast(classAAA.GetMembers("field_obj_array").Single(), FieldSymbol).Type 2104Dim nullInt32 As TypeSymbol = DirectCast(classAAA.GetMembers("field_null_int").Single(), FieldSymbol).Type 2105Dim typeParam As TypeSymbol = DirectCast(classAAA.GetMembers("field_tp").Single(), FieldSymbol).Type 2902Dim castType = DirectCast(model.GetTypeInfo(castNode.Type).Type, TypeSymbol) 3852Dim typeSymbolList As IList(Of TypeSymbol) = TypeSymbol.EmptyTypeSymbolsList 3854Assert.Equal(GetType(TypeSymbol).MakeArrayType().FullName, typeSymbolList.GetType.ToString)
Semantics\AccessCheckTests.vb (5)
735Dim karrayType As TypeSymbol = (TryCast(classA.GetMembers("karray").[Single](), FieldSymbol)).[Type] 736Dim aarrayType As TypeSymbol = (TryCast(classA.GetMembers("aarray").[Single](), FieldSymbol)).[Type] 737Dim kenumType As TypeSymbol = (TryCast(classA.GetMembers("kenum").[Single](), FieldSymbol)).[Type] 738Dim aenumType As TypeSymbol = (TryCast(classA.GetMembers("aenum").[Single](), FieldSymbol)).[Type] 739Dim unknownType As TypeSymbol = (TryCast(classA.GetMembers("unknowntype").[Single](), FieldSymbol)).[Type]
Semantics\BinaryOperators.vb (9)
1020leftType As TypeSymbol, 1021rightType As TypeSymbol, 1099If leftSpecial = SpecialType.System_Object OrElse rightSpecial = SpecialType.System_Object OrElse TypeSymbol.Equals(leftType, rightType, TypeCompareKind.ConsiderEverything) Then 1111TypeSymbol.Equals(method.Parameters(0).Type, nonSpecialType, TypeCompareKind.ConsiderEverything) AndAlso 1112TypeSymbol.Equals(method.Parameters(1).Type, nonSpecialType, TypeCompareKind.ConsiderEverything) Then 1193If leftType.IsEnumType() AndAlso TypeSymbol.Equals(leftType, rightType, TypeCompareKind.ConsiderEverything) Then 1248If TypeSymbol.Equals(symbol1.ContainingType, symbol1.ReturnType, TypeCompareKind.ConsiderEverything) Then 1252If TypeSymbol.Equals(symbol1.ContainingType, symbol1.Parameters(0).Type, TypeCompareKind.ConsiderEverything) Then 1256If TypeSymbol.Equals(symbol1.ContainingType, symbol1.Parameters(1).Type, TypeCompareKind.ConsiderEverything) Then
Semantics\Conversions.vb (33)
179Private Shared Function ClassifyDirectCastAssignment([to] As TypeSymbol, [from] As TypeSymbol, binder As Binder) As ConversionKind 184Private Shared Function ClassifyDirectCastAssignment([to] As TypeSymbol, [from] As BoundLiteral, binder As Binder) As ConversionKind 189Private Shared Function ClassifyTryCastAssignment([to] As TypeSymbol, [from] As TypeSymbol, binder As Binder) As ConversionKind 194Private Shared Function ClassifyTryCastAssignment([to] As TypeSymbol, [from] As BoundLiteral, binder As Binder) As ConversionKind 199Private Shared Function ClassifyConversion(source As TypeSymbol, destination As TypeSymbol) As ConversionKind 205Private Shared Function ClassifyConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder) As ConversionKind 250Dim allTestTypes = New TypeSymbol() { 254Dim convertibleTypes = New HashSet(Of TypeSymbol)({ 258Dim integralTypes = New HashSet(Of TypeSymbol)({ 261Dim unsignedTypes = New HashSet(Of TypeSymbol)({ 264Dim numericTypes = New HashSet(Of TypeSymbol)({ 267Dim floatingTypes = New HashSet(Of TypeSymbol)({doubleType, singleType}) 1101Dim allTestTypes = New TypeSymbol() { 1105Dim convertibleTypes = New HashSet(Of TypeSymbol)({ 1109Dim integralTypes = New HashSet(Of TypeSymbol)({ 1112Dim unsignedTypes = New HashSet(Of TypeSymbol)({ 1115Dim numericTypes = New HashSet(Of TypeSymbol)({ 1118Dim floatingTypes = New HashSet(Of TypeSymbol)({doubleType, singleType}) 1342Private Function CheckedConvert(value As Object, type As TypeSymbol) As Object 1363Private Function UncheckedConvert(value As Object, type As TypeSymbol) As Object 1422Public ReadOnly Type As TypeSymbol 1425Public Sub New(type As TypeSymbol, value As Object) 1984Private Shared Function ClassifyPredefinedAssignment([to] As TypeSymbol, [from] As TypeSymbol) As ConversionKind 2082Private Function HasBuiltInWideningConversions(from As TypeSymbol, [to] As TypeSymbol) As ConversionKind 2120Private Function HasBuiltInNarrowingConversions(from As TypeSymbol, [to] As TypeSymbol) As ConversionKind 4060Dim targetType As TypeSymbol = CType(model.GetDeclaredSymbol(variableDeclarator.Names.Single), LocalSymbol).Type 4146Dim targetType As TypeSymbol = CType(model.GetDeclaredSymbol(variableDeclarator.Names.Single), LocalSymbol).Type
Semantics\GetExtendedSemanticInfoTests.vb (6)
3513Assert.False(DirectCast(semanticInfo.Type, TypeSymbol).IsErrorType) 6219Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_Array), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol) 6271Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_Array), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol) 6319Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_String), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol) 6709Dim ienumerable = compilation.GetSpecialType(System_Collections_Generic_IEnumerable_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32))) 6710Dim ienumerator = compilation.GetSpecialType(System_Collections_Generic_IEnumerator_T).Construct(ImmutableArray.Create(Of TypeSymbol)(compilation.GetSpecialType(System_Int32)))
Semantics\GetSemanticInfoTests.vb (4)
4520Assert.Equal(SpecialType.System_Collections_Generic_ICollection_T, CType(reducedFrom1.Parameters(0).Type.OriginalDefinition, TypeSymbol).SpecialType) 4531Assert.Equal(SpecialType.System_Collections_Generic_ICollection_T, CType(reducedFrom2.Parameters(0).Type.OriginalDefinition, TypeSymbol).SpecialType) 5647Dim directCastType = DirectCast(model.GetTypeInfo(directCastExpr.Type).Type, TypeSymbol) 5684Dim tryCastType = DirectCast(model.GetTypeInfo(tryCastExpr.Type).Type, TypeSymbol)
Semantics\MultiDimensionalTest.vb (2)
2720Assert.True(DirectCast(p.GetMember(Of MethodSymbol)("Test3").GetAttributes().Single().ConstructorArguments.Single().Value, TypeSymbol).IsErrorType()) 2721Assert.True(DirectCast(p.GetMember(Of MethodSymbol)("Test4").GetAttributes().Single().ConstructorArguments.Single().Value, TypeSymbol).IsErrorType())
Semantics\OverloadResolution.vb (6)
29typeArguments As ImmutableArray(Of TypeSymbol), 236typeArguments:=(New TypeSymbol() {TestClass1}).AsImmutableOrNull(), 284typeArguments:=(New TypeSymbol() {TestClass1}).AsImmutableOrNull(), 293Assert.Equal(TestClass1_M2.Construct((New TypeSymbol() {TestClass1}).AsImmutableOrNull()), result.Candidates(0).Candidate.UnderlyingSymbol) 701typeArguments:=(New TypeSymbol() {TestClass1}).AsImmutableOrNull(), 710Assert.Equal(TestClass1_M2.Construct((New TypeSymbol() {TestClass1}).AsImmutableOrNull()), result.Candidates(0).Candidate.UnderlyingSymbol)
Semantics\PartialMethodsTest.vb (2)
673Dim x = DirectCast(m.GlobalNamespace.GetMember("X"), TypeSymbol) 695Dim x = DirectCast(m.GlobalNamespace.GetMember("X"), TypeSymbol)
Semantics\UnaryOperators.vb (1)
693type As TypeSymbol,
Semantics\XmlLiteralSemanticModelTests.vb (1)
234Assert.True(DirectCast(info.Type, TypeSymbol).IsErrorType())
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (103)
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (2)
651Private Shared Sub CheckPropertyAccessorsAndField(m As ModuleSymbol, type As NamedTypeSymbol, propName As String, propType As TypeSymbol, isKey As Boolean) 701Optional retType As TypeSymbol = Nothing,
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (3)
411Private Sub CheckAnonymousTypeImplicit(local As LocalSymbol, location As Location, anotherType As TypeSymbol, isType As Boolean, ParamArray locations() As Location) 1619Dim syms1 = model.LookupSymbols(pos, container:=DirectCast(anonymousType.Type, TypeSymbol)) 1662Dim syms1 = model.LookupSymbols(pos, container:=DirectCast(anonymousType.Type, TypeSymbol))
SymbolsTests\CompilationCreationTests.vb (3)
90Dim c107 As TypeSymbol = c1.GlobalNamespace.GetTypeMembers("C107").Single() 2036Return (TypeOf current Is TypeSymbol AndAlso DirectCast(current, TypeSymbol).TypeKind = kind)
SymbolsTests\InstantiatingGenerics.vb (9)
30Dim typeArguments As ImmutableArray(Of TypeSymbol) 32Dim constructedFromTypeArguments As ImmutableArray(Of TypeSymbol) 164Dim testArgs() As TypeSymbol = GetTestArgs(type.Arity) 172Assert.Same(type, type.Construct(type.TypeParameters.As(Of TypeSymbol)())) 187Dim testArgs() As TypeSymbol = GetTestArgs(type.Arity) 195Assert.Throws(Of InvalidOperationException)(Sub() method.Construct(method.TypeParameters.As(Of TypeSymbol)())) 203Private Function GetTestArgs(arity As Integer) As TypeSymbol() 204Dim a(arity - 1) As TypeSymbol 637Assert.Same(c1OfIntInt_c2, c1OfIntInt_c2.Construct(New List(Of TypeSymbol) From {c1OfIntInt_c2.TypeParameters(0), c1OfIntInt_c2.TypeParameters(1)}))
SymbolsTests\Metadata\PE\BaseTypeResolution.vb (1)
189Friend Shared Sub AssertBaseType(base As TypeSymbol, name As String)
SymbolsTests\Metadata\PE\HasUnsupportedMetadata.vb (3)
478Dim type = DirectCast(model.GetTypeInfo(decl).Type, TypeSymbol) 491type = DirectCast(model.GetTypeInfo(decl).Type, TypeSymbol) 504type = DirectCast(model.GetTypeInfo(decl).Type, TypeSymbol)
SymbolsTests\Metadata\PE\LoadCustomModifiers.vb (1)
98Dim p6Type As TypeSymbol = p6.Type
SymbolsTests\Metadata\PE\LoadingAttributes.vb (5)
408Dim c1 = DirectCast(assemblies(0).Modules(0).GlobalNamespace.GetMember("C1"), TypeSymbol) 409Dim c3 = DirectCast(assemblies(0).Modules(0).GlobalNamespace.GetMember("C3"), TypeSymbol) 1032Assert.Equal("System.Collections.Generic.Dictionary(Of String, Integer)", TryCast(attrSym.CommonNamedArguments(0).Value.Value, TypeSymbol).ToString()) 1292Assert.Equal("System.Linq.Expressions.Expression.BinaryExpressionProxy", CType(attr1.CommonConstructorArguments(0).Value, TypeSymbol).ToDisplayString(SymbolDisplayFormat.TestFormat)) 1297Assert.Equal("System.Linq.Expressions.Expression.TypeBinaryExpressionProxy", CType(attr1.CommonConstructorArguments(0).Value, TypeSymbol).ToDisplayString(SymbolDisplayFormat.TestFormat))
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (11)
84Assert.Same(constructedFrom, constructedFrom.Construct(constructedFrom.TypeParameters.As(Of TypeSymbol)())) 293Assert.Same(missing, missing.Construct(missing.TypeParameters.As(Of TypeSymbol)())) 296{DirectCast(param2, TypeSymbol)}.AsImmutableOrNull()) 299ImmutableArray.Create(Of TypeSymbol)(TC.TypeParameters(1), TC.TypeParameters(0), TC.TypeParameters(1))) 315ImmutableArray.Create(Of TypeSymbol)(TC.TypeParameters(1), TC.TypeParameters(0))) 323ImmutableArray.Create(Of TypeSymbol)(TC.TypeParameters(0))) 332ImmutableArray.Create(Of TypeSymbol)(MissingC4.TypeParameters(0))) 338ImmutableArray.Create(Of TypeSymbol)(TC.TypeParameters(1))) 348ImmutableArray.Create(Of TypeSymbol)(TC.TypeParameters(0))) 359ImmutableArray.Create(Of TypeSymbol)(MissingC7.TypeParameters(0))) 365ImmutableArray.Create(Of TypeSymbol)(TC.TypeParameters(1)))
SymbolsTests\Metadata\PE\TypeForwarders.vb (2)
53Assert.True(module1.TypeRefHandleToTypeMap.Values.Contains(DirectCast(base4.OriginalDefinition, TypeSymbol))) 54Assert.True(module1.TypeRefHandleToTypeMap.Values.Contains(DirectCast(base6.OriginalDefinition, TypeSymbol)))
SymbolsTests\MyBaseMyClassSemanticsTests.vb (1)
84Private Sub CheckFieldNameAndLocation(type As TypeSymbol, tree As SyntaxTree, identifierIndex As Integer, fieldName As String, Optional isKey As Boolean = False)
SymbolsTests\Retargeting\NoPia.vb (28)
1120Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1131Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1142Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1153Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1211Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1222Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1233Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1244Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1302Assert.Equal("LocalTypes2", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1303Assert.Equal("LocalTypes2", DirectCast(args(1).Value, TypeSymbol).ContainingAssembly.Name) 1313Assert.Equal("LocalTypes2", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1314Assert.Equal("LocalTypes2", DirectCast(args(1).Value, TypeSymbol).ContainingAssembly.Name) 1324Assert.Equal("LocalTypes2", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1325Assert.Equal("LocalTypes2", DirectCast(args(1).Value, TypeSymbol).ContainingAssembly.Name) 1335Assert.Equal("LocalTypes2", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1336Assert.Equal("LocalTypes2", DirectCast(args(1).Value, TypeSymbol).ContainingAssembly.Name) 1384Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1395Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1454Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1465Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1476Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1487Assert.Equal("Pia", DirectCast(args(0).Value, TypeSymbol).ContainingAssembly.Name) 1547Dim argType = DirectCast(type.GetAttributes()(0).CommonConstructorArguments(0).Value, TypeSymbol) 1551argType = DirectCast(type.GetAttributes()(0).CommonConstructorArguments(0).Value, TypeSymbol) 1555argType = DirectCast(type.GetAttributes()(0).CommonConstructorArguments(0).Value, TypeSymbol) 1562argType = DirectCast(type.GetAttributes()(0).CommonConstructorArguments(0).Value, TypeSymbol) 1565argType = DirectCast(type.GetAttributes()(0).CommonConstructorArguments(0).Value, TypeSymbol) 1569argType = DirectCast(type.GetAttributes()(0).CommonConstructorArguments(0).Value, TypeSymbol)
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (2)
99Where(Function(m) DirectCast(m, MethodSymbol).ParameterCount = 1 AndAlso TypeSymbol.Equals(DirectCast(m, MethodSymbol).Parameters(0).Type, OldMsCorLib_systemType, TypeCompareKind.ConsiderEverything)).[Single](), MethodSymbol) 102Where(Function(m) DirectCast(m, MethodSymbol).ParameterCount = 1 AndAlso TypeSymbol.Equals(DirectCast(m, MethodSymbol).Parameters(0).Type, NewMsCorLib_systemType, TypeCompareKind.ConsiderEverything)).[Single](), MethodSymbol)
SymbolsTests\Retargeting\RetargetingTests.vb (5)
174CheckTypes(DirectCast(a.TryGetSafeArrayElementUserDefinedSubtype(), TypeSymbol), DirectCast(b.TryGetSafeArrayElementUserDefinedSubtype(), TypeSymbol)) 294Dim i_a_v2 = compilation1_v2.GetTypeByMetadataName("I`1").Construct(ImmutableArray.Create(Of TypeSymbol)(a_v2)) 315Dim i_ct_v2 = compilation1_v2.GetTypeByMetadataName("I`1").Construct(ImmutableArray.Create(Of TypeSymbol)(c.TypeParameters(0))) 1753Friend Function IsArrayType(t As TypeSymbol) As Boolean
SymbolsTests\Source\BindingsTests.vb (1)
469Dim sysCollectionsType = TryCast(sysCollectionsSymInfo.Symbol, TypeSymbol)
SymbolsTests\Source\ClsComplianceTests.vb (1)
2570type = type.Construct(ArrayBuilder(Of TypeSymbol).GetInstance(type.Arity, integerType).ToImmutableAndFree())
SymbolsTests\Source\EnumTests.vb (1)
1020Dim M1 = DirectCast(globalNS.GetMembers("M1").First(), TypeSymbol)
SymbolsTests\Source\EventTests.vb (1)
1754Dim typeMembers = compilation.SourceModule.GlobalNamespace.GetMembers().OfType(Of TypeSymbol)()
SymbolsTests\Source\ImplementsTests.vb (2)
2549Dim ifooOfIntIntStringSay1 = (From m In iFooOfIntIntListOfStringMethods Where TypeSymbol.Equals(m.Parameters(0).Type, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything)).First() 2550Dim ifooOfIntIntStringSay2 = (From m In iFooOfIntIntListOfStringMethods Where Not TypeSymbol.Equals(m.Parameters(0).Type, comp.GetSpecialType(SpecialType.System_Int32), TypeCompareKind.ConsiderEverything)).First()
SymbolsTests\Source\MethodTests.vb (9)
680Dim constructedC = classC.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_Int32)}).AsImmutableOrNull()) 755Dim constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 766Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 770Dim constructedM1WrongArity = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String)}).AsImmutableOrNull()) 774Dim identityM1 = m1.Construct(m1.OriginalDefinition.TypeParameters.As(Of TypeSymbol)()) 779identityM1 = m1.Construct(m1.TypeParameters.As(Of TypeSymbol)()) 782constructedM1 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull()) 784Assert.Throws(Of InvalidOperationException)(Sub() constructedM1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())) 786Dim constructedM1_3 = m1.Construct((New TypeSymbol() {compilation.GetSpecialType(SpecialType.System_String), compilation.GetSpecialType(SpecialType.System_Boolean)}).AsImmutableOrNull())
SymbolsTests\Source\PropertyTests.vb (1)
8251Private Shared Sub VerifyPropertiesParametersTypes([property] As PropertySymbol, ParamArray expectedTypes() As TypeSymbol)
SymbolsTests\Source\TypeSubstitutionTests.vb (2)
103Dim classDSymbol As TypeSymbol = DirectCast(DirectCast(GooNS.GetMembers("J").First(), NamedTypeSymbol).BaseType.GetMembers("D").First(), NamedTypeSymbol) 105Dim classFSymbol = DirectCast(classDSymbol.GetMembers("F").First(), TypeSymbol)
SymbolsTests\SymbolErrorTests.vb (9)
22491Dim symbType As TypeSymbol = fieldSymb.Type 23502Assert.True((TypeSymbol.Equals(classB1, TryCast(errortyp.CandidateSymbols(0), TypeSymbol), TypeCompareKind.ConsiderEverything) AndAlso 23503TypeSymbol.Equals(classB2, TryCast(errortyp.CandidateSymbols(1), TypeSymbol), TypeCompareKind.ConsiderEverything)) OrElse 23504(TypeSymbol.Equals(classB2, TryCast(errortyp.CandidateSymbols(0), TypeSymbol), TypeCompareKind.ConsiderEverything) AndAlso 23505TypeSymbol.Equals(classB1, TryCast(errortyp.CandidateSymbols(1), TypeSymbol), TypeCompareKind.ConsiderEverything)), "should have B1 and B2 in some order")
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (31)
CompilationTestUtils.vb (6)
535summary.Type = DirectCast(typeInfo.Type, TypeSymbol) 536summary.ConvertedType = DirectCast(typeInfo.ConvertedType, TypeSymbol) 542summary.Type = DirectCast(typeInfo.Type, TypeSymbol) 543summary.ConvertedType = DirectCast(typeInfo.ConvertedType, TypeSymbol) 575summary.Type = DirectCast(typeInfo.Type, TypeSymbol) 576summary.ConvertedType = DirectCast(typeInfo.ConvertedType, TypeSymbol)
Extensions.vb (21)
82Public Function GetProperty(symbol As TypeSymbol, name As String) As PropertySymbol 87Public Function GetEvent(symbol As TypeSymbol, name As String) As EventSymbol 92Public Function GetMethod(symbol As TypeSymbol, name As String) As MethodSymbol 97Public Function GetField(symbol As TypeSymbol, name As String) As FieldSymbol 125Return this.GetAttributes().Where(Function(a) TypeSymbol.Equals(a.AttributeClass, c, TypeCompareKind.ConsiderEverything)).First() 135Return this.GetAttributes().Where(Function(a) TypeSymbol.Equals(a.AttributeClass, c, TypeCompareKind.ConsiderEverything)) 186Dim typeSym = TryCast(arg.Value, TypeSymbol) 191Dim expTypeSym = TryCast(expected, TypeSymbol) 222Private Function IsEqual(typeSym As TypeSymbol, expType As Type) As Boolean 301Public Function BaseType(symbol As TypeSymbol) As NamedTypeSymbol 306Public Function Interfaces(symbol As TypeSymbol) As ImmutableArray(Of NamedTypeSymbol) 311Public Function AllInterfaces(symbol As TypeSymbol) As ImmutableArray(Of NamedTypeSymbol) 316Public Function TypeArguments(symbol As NamedTypeSymbol) As ImmutableArray(Of TypeSymbol) 321Public Function ConstraintTypes(symbol As TypeParameterSymbol) As ImmutableArray(Of TypeSymbol) 331Friend Function ReturnType(this As IMethodSymbolInternal) As TypeSymbol 346Friend Function ReduceExtensionMethod(this As MethodSymbol, instanceType As TypeSymbol) As MethodSymbol 351Friend Function ReduceExtensionMethod(this As MethodSymbol, instanceType As TypeSymbol, proximity As Integer) As MethodSymbol 389Public Function IsBaseTypeOf(this As TypeSymbol, subType As TypeSymbol, <[In], Out> ByRef useSiteDiagnostics As HashSet(Of DiagnosticInfo)) As Boolean 397Public Function IsOrDerivedFrom(this As TypeSymbol, baseType As TypeSymbol, <[In], Out> ByRef useSiteDiagnostics As HashSet(Of DiagnosticInfo)) As Boolean
MockSymbols.vb (4)
337Friend Overrides ReadOnly Property CoClassType As TypeSymbol 595Public Overrides ReadOnly Property ReturnType As TypeSymbol 613Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol) 615Return ImmutableArray.Create(Of TypeSymbol)()