Binding\Binder_Conversions.vb (49)
73targetType As TypeSymbol,
184targetType As TypeSymbol,
309targetType As TypeSymbol,
322targetType As TypeSymbol,
385Dim intermediateTargetType As TypeSymbol
391Construct(ImmutableArray.Create(Of TypeSymbol)(targetType))
417Private Shared Function ApplyNullableIsTrueOperator(argument As BoundExpression, booleanType As TypeSymbol) As BoundNullableIsTrueOperator
430targetType As TypeSymbol,
581Dim errorTargetType As TypeSymbol
613Private _derivedArgument As TypeSymbol
614Private _baseArgument As TypeSymbol
616Public Sub [Set](parameter As TypeParameterSymbol, derived As TypeSymbol, base As TypeSymbol)
635Public ReadOnly Property DerivedArgument As TypeSymbol
641Public ReadOnly Property BaseArgument As TypeSymbol
662sourceType As TypeSymbol,
663targetType As TypeSymbol,
676sourceType As TypeSymbol,
677targetType As TypeSymbol,
719Dim sourceTypeArgument As TypeSymbol = Nothing
728Dim typeToCheck As TypeSymbol = sourceType
821Dim sourceArguments As ImmutableArray(Of TypeSymbol) = source.TypeArgumentsNoUseSiteDiagnostics
822Dim destinationArguments As ImmutableArray(Of TypeSymbol) = destination.TypeArgumentsNoUseSiteDiagnostics
826Dim sourceArg As TypeSymbol = sourceArguments(i)
827Dim destinationArg As TypeSymbol = destinationArguments(i)
982targetType As TypeSymbol,
1063sourceType As TypeSymbol,
1064targetType As TypeSymbol,
1093targetType As TypeSymbol,
1105Dim originalArgumentType As TypeSymbol = argument.Type
1106Dim inType As TypeSymbol = convKind.Value.Parameters(0).Type
1107Dim outType As TypeSymbol = convKind.Value.ReturnType
1198targetType As TypeSymbol,
1307targetType As TypeSymbol,
1509targetType As TypeSymbol,
1570Dim restrictedType As TypeSymbol = Nothing
1578Dim delegateReturnType As TypeSymbol = delegateInvoke.ReturnType
1581Dim restrictedType As TypeSymbol = Nothing
1617Private 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
1635destination As TypeSymbol,
1665Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = targetType.GetElementTypesOfTupleOrCompatible()
1681If Not TypeSymbol.Equals(sourceTuple.Type, destination, TypeCompareKind.ConsiderEverything) AndAlso convKind <> Nothing Then
1704sourceType As TypeSymbol,
1705targetType As TypeSymbol,
1709Dim interfaceType As TypeSymbol = Nothing
1741Private Shared Sub WarnOnLockConversion(sourceType As TypeSymbol, syntax As SyntaxNode, diagnostics As BindingDiagnosticBag)
1747Private Function IsIEnumerableOfXElement(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
1753sourceType As TypeSymbol,
1754targetType As TypeSymbol,
Binding\Binder_Expressions.vb (52)
288Protected Shared Function BadExpression(node As SyntaxNode, resultType As TypeSymbol) As BoundBadExpression
296Private Shared Function BadExpression(node As SyntaxNode, expr As BoundExpression, resultType As TypeSymbol) As BoundBadExpression
304Private Shared Function BadExpression(node As SyntaxNode, expr As BoundExpression, resultKind As LookupResultKind, resultType As TypeSymbol) As BoundBadExpression
312Private Shared Function BadExpression(node As SyntaxNode, exprs As ImmutableArray(Of BoundExpression), resultType As TypeSymbol) As BoundBadExpression
347Dim elementTypes = ArrayBuilder(Of TypeSymbol).GetInstance(arguments.Count)
529ByRef hasNaturalType As Boolean) As TypeSymbol
530Dim expressionType As TypeSymbol = expression.Type
608Dim [type] = TryCast(symbol, TypeSymbol)
689Dim typeSym As TypeSymbol = DirectCast(If(aliasSym IsNot Nothing, aliasSym.Target, typeOrAlias), TypeSymbol)
776Dim targetType = DirectCast(If(TryCast(targetSymbol, TypeSymbol), DirectCast(targetSymbol, AliasSymbol).Target), TypeSymbol)
778Dim resultType As TypeSymbol = GetSpecialType(SpecialType.System_Boolean, node, diagnostics)
967Dim resultType As TypeSymbol = access.Type
1066Dim type As TypeSymbol = typeExpr.Type
1207Private Shared Function GetTypeNotExpressionErrorId(type As TypeSymbol) As ERRID
1314Private Function GetAccessThroughType(receiverOpt As BoundExpression) As TypeSymbol
1493destination As TypeSymbol,
1531Dim targetElementType As TypeSymbol = Nothing
1636Private Function ReclassifyArrayInitialization(arrayInitialization As BoundArrayInitialization, elementType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundArrayInitialization
1941Dim dominantType As TypeSymbol
2007Dim dominantType As TypeSymbol
2148type As TypeSymbol,
2186Private Function GenerateDiagnosticsForDominantTypeInferenceInIfExpression(dominantType As TypeSymbol, numCandidates As Integer,
2719Dim leftType As TypeSymbol
2743If TypeSymbol.Equals(boundType.Type, leftType, TypeCompareKind.ConsiderEverything) Then
2802Dim leftTypeSymbol As TypeSymbol = left.Type
2862Dim type As TypeSymbol
3016Private Function GetLocalSymbolType(localSymbol As LocalSymbol, node As VisualBasicSyntaxNode, Optional diagnostics As BindingDiagnosticBag = Nothing) As TypeSymbol
3017Dim localType As TypeSymbol = Nothing
3260Dim localAccessType As TypeSymbol = GetLocalSymbolType(localSymbol, node, diagnostics)
3334Dim type As TypeSymbol = DirectCast(lookupResult.SingleSymbol, TypeSymbol)
3347Return New BoundTypeExpression(node, DirectCast(lookupResult.SingleSymbol, TypeSymbol), hasErrors:=hasError)
3367Return New BoundTypeExpression(node, Nothing, [alias], DirectCast(symbol, TypeSymbol), hasErrors:=hasError)
3517Dim memberType As TypeSymbol
3627Dim boundArguments(arguments.Count - 1) As TypeSymbol
3874Private Shared Sub VerifyTypeCharacterConsistency(nodeOrToken As SyntaxNodeOrToken, type As TypeSymbol, typeChar As TypeCharacter, diagnostics As BindingDiagnosticBag)
3892Private Shared Sub VerifyTypeCharacterConsistency(name As SimpleNameSyntax, type As TypeSymbol, diagnostics As BindingDiagnosticBag)
3964) As TypeSymbol
3965Dim commonType As TypeSymbol = Nothing
3974Dim expressionType As TypeSymbol = GetExpressionType(symbolReference, symbols(i), constantFieldsInProgress, discardedDiagnostics)
4008) As TypeSymbol
4025Dim type = TryCast(s, TypeSymbol)
4116Dim inferredElementType As TypeSymbol = Nothing
4205<Out> ByRef inferredElementType As TypeSymbol,
4239Dim arrayInitType As TypeSymbol
4258Dim elemType As TypeSymbol = If(type IsNot Nothing, type.ElementType, Nothing)
4457Dim type As TypeSymbol = Nothing
4485) As TypeSymbol
4530Dim expressionType As TypeSymbol = expression.Type
4589Dim dominantType As TypeSymbol
Binding\Binder_Invocation.vb (22)
272Dim targetType As TypeSymbol = target.Type
541Dim controlVariableType As TypeSymbol = Nothing
1027targetType As TypeSymbol,
1195Optional overrideCommonReturnType As TypeSymbol = Nothing,
1226Optional overrideCommonReturnType As TypeSymbol = Nothing,
1236Dim commonReturnType As TypeSymbol = GetSetOfTheBestCandidates(results, bestCandidates, bestSymbols)
1269commonReturnType As TypeSymbol,
1344commonReturnType As TypeSymbol,
1450Dim typeArguments = If(mg.TypeArgumentsOpt IsNot Nothing, mg.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty)
1453typeArguments = ImmutableArray(Of TypeSymbol).Empty
1675) As TypeSymbol
1720Dim commonReturnType As TypeSymbol = Nothing
1777If Not TypeSymbol.Equals(bestSymbols(i).ContainingType, container, TypeCompareKind.ConsiderEverything) Then
2296Dim targetType As TypeSymbol = param.Type
2472targetType As TypeSymbol,
2541targetType As TypeSymbol,
2696Dim targetType As TypeSymbol = param.Type
2798targetType As TypeSymbol,
2820targetType As TypeSymbol,
2957targetType As TypeSymbol,
3205Dim defaultArgumentType As TypeSymbol = Nothing
3208Dim 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, ReadOnlyBindingDiagnostic(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, ReadOnlyBindingDiagnostic(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, ReadOnlyBindingDiagnostic(Of AssemblySymbol))
895Return New KeyValuePair(Of TypeSymbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol))(LambdaSymbol.ReturnTypeIsUnknown, ReadOnlyBindingDiagnostic(Of AssemblySymbol).Empty)
907Return New KeyValuePair(Of TypeSymbol, ReadOnlyBindingDiagnostic(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, ReadOnlyBindingDiagnostic(Of AssemblySymbol))(lambdaReturnType, diagnostics.ToReadOnlyAndFree())
Binding\Binder_Lookup.vb (42)
35container As TypeSymbol,
74container As TypeSymbol,
120accessThroughType As TypeSymbol,
279accessThroughType As TypeSymbol) As Boolean
344Lookup(lookupResult, DirectCast(container, TypeSymbol), name, arity, options, binder, tempResult, useSiteInfo)
358AddLookupSymbolsInfo(nameSet, DirectCast(container, TypeSymbol), options, binder)
570type As TypeSymbol,
602container As TypeSymbol,
637container As TypeSymbol,
641accessThroughType As TypeSymbol,
835TypeSymbol.Equals(iFaceOriginal, idictSymbol, TypeCompareKind.ConsiderEverything) OrElse
838TypeSymbol.Equals(iFaceOriginal, iroDictSymbol, TypeCompareKind.ConsiderEverything) OrElse
840TypeSymbol.Equals(iFaceOriginal, iListSymbol, TypeCompareKind.ConsiderEverything) OrElse
841TypeSymbol.Equals(iFaceOriginal, iCollectionSymbol, TypeCompareKind.ConsiderEverything) OrElse
842TypeSymbol.Equals(iFaceOriginal, inccSymbol, TypeCompareKind.ConsiderEverything) OrElse
843TypeSymbol.Equals(iFaceOriginal, inpcSymbol, TypeCompareKind.ConsiderEverything)
859submissionClass As TypeSymbol,
929Public Shared Sub LookupDefaultProperty(result As LookupResult, container As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol))
1081accessThroughType As TypeSymbol,
1145container As TypeSymbol,
1165Private Shared Function ShouldLookupExtensionMethods(options As LookupOptions, container As TypeSymbol) As Boolean
1174container As TypeSymbol,
1252container As TypeSymbol,
1285container As TypeSymbol,
1308container As TypeSymbol,
1356If TypeSymbol.Equals(derived.OriginalDefinition, base.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then
1363If TypeSymbol.Equals(i, base, TypeCompareKind.ConsiderEverything) Then
1383Debug.Assert(Not TypeSymbol.Equals(base, derived, TypeCompareKind.ConsiderEverything), "should already be verified for equality")
1394If TypeSymbol.Equals(i, base, TypeCompareKind.ConsiderEverything) Then
1492container As TypeSymbol,
1770Debug.Assert(TypeSymbol.Equals(newSymbolContainer, newSymbol.ContainingType, TypeCompareKind.ConsiderEverything))
1805If otherKnown IsNot Nothing AndAlso TypeSymbol.Equals(otherKnown.ContainingType, knownSymbolContainer, TypeCompareKind.ConsiderEverything) Then
1923container As TypeSymbol,
1965(TypeSymbol.Equals(containingMethod.ContainingType, container, TypeCompareKind.ConsiderEverything) OrElse TypeSymbol.Equals(containingMethod.ContainingType.BaseTypeNoUseSiteDiagnostics, container, TypeCompareKind.ConsiderEverything)) Then
1971submissionClass As TypeSymbol,
2014container As TypeSymbol,
2084container As TypeSymbol,
2088accessThroughType As TypeSymbol,
2119container As TypeSymbol,
2121accessThroughType As TypeSymbol,
2149accessThroughType As TypeSymbol,
Binding\Binder_ObjectInitializer.vb (14)
19Dim type As TypeSymbol = Me.BindTypeSyntax(node.Type, diagnostics)
30type = DirectCast(extendedErrorType.CandidateSymbols(0), TypeSymbol)
73type0 As TypeSymbol,
164type As TypeSymbol,
195type0 As TypeSymbol,
208Debug.Assert(objectInitializerExpressionOpt Is Nothing OrElse TypeSymbol.Equals(objectInitializerExpressionOpt.Type, type0, TypeCompareKind.ConsiderEverything))
221Dim coClass As TypeSymbol = DirectCast(type0, NamedTypeSymbol).CoClassType
480Debug.Assert(TypeSymbol.Equals(type, type0, TypeCompareKind.ConsiderEverything))
582[interface] As TypeSymbol,
620initializedObjectType As TypeSymbol,
648initializedObjectType As TypeSymbol,
806Debug.Assert(TypeSymbol.Equals(DirectCast(memberAssignments.Last, BoundAssignmentOperator).Right.Type, DirectCast(memberAssignments.Last, BoundAssignmentOperator).Left.Type, TypeCompareKind.ConsiderEverything))
829initializedObjectType As TypeSymbol,
836Dim unusedType As TypeSymbol = Nothing
Binding\Binder_Operators.vb (26)
100Dim targetArgumentType As TypeSymbol = targetArgument.Type
260Dim leftType As TypeSymbol = left.Type
261Dim rightType As TypeSymbol = right.Type
331Dim operandType As TypeSymbol
351Dim operatorResultType As TypeSymbol = operandType
353Dim forceToBooleanType As TypeSymbol = Nothing
372Dim booleanType As TypeSymbol = GetSpecialTypeForBinaryOperator(node, leftType, rightType, SpecialType.System_Boolean,
484Dim rightTargetType As TypeSymbol = GetSpecialTypeForBinaryOperator(node, leftType, rightType, SpecialType.System_Int32,
570Private Function ForceLiftToEmptyString(left As BoundExpression, stringType As TypeSymbol, diagnostics As BindingDiagnosticBag) As BoundExpression
664Dim operatorType As TypeSymbol
813otherOperandType As TypeSymbol,
815) As TypeSymbol
816Dim stringType As TypeSymbol
837leftType As TypeSymbol,
838rightType As TypeSymbol,
842) As TypeSymbol
846Dim resultType As TypeSymbol
902leftType As TypeSymbol,
903rightType As TypeSymbol,
904ofType As TypeSymbol
905) As TypeSymbol
937Dim resultType As TypeSymbol = Nothing
1013Dim rightType As TypeSymbol
1014Dim leftType As TypeSymbol
1185Dim operandType As TypeSymbol = operand.Type
1186Dim resultType As TypeSymbol = Nothing
Binding\Binder_Query.vb (38)
383firstSelectCompoundVariableType As TypeSymbol,
718Dim bodyType As TypeSymbol = lambda.Expression.Type
1685Dim groupType As TypeSymbol = InferGroupType(outer, inner, groupJoin, outerKeyLambda, innerKeyLambda, methodGroup, diagnostics)
1769Dim groupType As TypeSymbol = InferGroupType(source, groupBy, itemsLambda, keysLambda, keysRangeVariables, methodGroup, diagnostics)
1773Dim groupCompoundVariableType As TypeSymbol
1949) As TypeSymbol
1952Dim groupType As TypeSymbol = ErrorTypeSymbol.UnknownResultType
1994Dim resultSelector As TypeSymbol = method.Parameters(groupByArguments.Length - 1).Type
2025) As TypeSymbol
2028Dim groupType As TypeSymbol = ErrorTypeSymbol.UnknownResultType
2068Dim resultSelector As TypeSymbol = method.Parameters(groupJoinArguments.Length - 1).Type
2092keysCompoundVariableType As TypeSymbol,
2095groupType As TypeSymbol,
2097groupCompoundVariableType As TypeSymbol,
2179type As TypeSymbol,
2191type As TypeSymbol,
2333Dim predicateType As TypeSymbol = predicate.Type
2822Dim targetVariableType As TypeSymbol = Nothing
3468Dim targetType As TypeSymbol = Nothing
3735Private ReadOnly _groupCompoundVariableType As TypeSymbol
3742groupCompoundVariableType As TypeSymbol,
4104groupCompoundVariableType As TypeSymbol,
4130Dim variableType As TypeSymbol = Nothing
4147Dim targetVariableType As TypeSymbol = Nothing
4248variableType As TypeSymbol,
4249targetVariableType As TypeSymbol,
4321<Out()> ByRef controlVariableType As TypeSymbol
4341Dim inferredType As TypeSymbol = InferControlVariableType(source, diagnostics)
4393ImmutableArray.Create(Of TypeSymbol)(inferredType)),
4416Private Function InferControlVariableType(source As BoundExpression, diagnostics As BindingDiagnosticBag) As TypeSymbol
4419Dim result As TypeSymbol = Nothing
4467) As TypeSymbol
4468Dim result As TypeSymbol = Nothing
4472Dim inferredType As TypeSymbol = InferControlVariableType(method)
4497Private Function InferControlVariableType(method As MethodSymbol) As TypeSymbol
4514Dim parameterType As TypeSymbol = selectParameter.Type
4539Dim controlVariableType As TypeSymbol = invokeParameter.Type
4679Dim delegateReturnType As TypeSymbol = DirectCast(boundCall, BoundCall).Method.Parameters(i).Type.DelegateOrExpressionDelegate(Me).DelegateInvokeMethod.ReturnType
Binding\Binder_Statements.vb (57)
1123Dim declType As TypeSymbol = Nothing
1141Dim type As TypeSymbol = ComputeVariableType(symbol,
1157Dim restrictedType As TypeSymbol = Nothing
1299<Out()> ByRef asClauseType As TypeSymbol,
1300diagnostics As BindingDiagnosticBag) As TypeSymbol
1323Dim type As TypeSymbol
1390Dim inferredType As TypeSymbol = Nothing
1464diagnostics As BindingDiagnosticBag) As TypeSymbol
1536<Out()> ByRef currentType As TypeSymbol,
1537<Out()> ByRef elementType As TypeSymbol,
1546diagnostics As BindingDiagnosticBag) As TypeSymbol
1609Private Function InferVariableType(defaultType As TypeSymbol,
1612valueType As TypeSymbol,
1615diagnostics As BindingDiagnosticBag) As TypeSymbol
1670Dim rhsElementType As TypeSymbol = DirectCast(valueType, ArrayTypeSymbol).ElementType
1706Dim lhsType As TypeSymbol = defaultType
1707Dim rhsType As TypeSymbol = valueType
1752Dim type As TypeSymbol = BindTypeSyntax(asClause.Type, diagnostics)
1762type As TypeSymbol,
2010Dim targetType As TypeSymbol = op1.Type
2047Dim targetType As TypeSymbol = assignmentTarget.Type
2234Dim targetType As TypeSymbol = assignmentTarget.Type
2497Debug.Assert(TypeSymbol.Equals(targetAsEvent.Type, eventField.Type, TypeCompareKind.ConsiderEverything) OrElse eventSym.IsWindowsRuntimeEvent, "non-WinRT event should have the same type as its backing field")
2554If Not TypeSymbol.Equals(fireMethod.ContainingType, Me.ContainingType, TypeCompareKind.ConsiderEverything) Then
2698Private Function IsOrInheritsFromOrImplementsInterface(derivedType As TypeSymbol, interfaceType As WellKnownType, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
3324targetType As TypeSymbol,
3363Dim currentType As TypeSymbol = Nothing
3364Dim elementType As TypeSymbol = Nothing
3709<Out()> ByRef currentType As TypeSymbol,
3710<Out()> ByRef elementType As TypeSymbol,
3737Dim collectionType As TypeSymbol = collection.Type
3815Debug.Assert(collection.IsNothingLiteral OrElse collectionType.IsObjectType OrElse (TypeSymbol.Equals(matchingInterfaces.First, ienumerable, TypeCompareKind.ConsiderEverything) AndAlso matchingInterfaces.Count = 1))
4058collectionType As TypeSymbol,
4060<Out()> ByRef currentType As TypeSymbol,
4132Dim enumeratorType As TypeSymbol = boundGetEnumeratorCall.Type
4268container As TypeSymbol,
4337derivedType As TypeSymbol,
4369If TypeSymbol.Equals(derivedType.OriginalDefinition, interfaceType, TypeCompareKind.ConsiderEverything) Then
4379If TypeSymbol.Equals(interfaceOfDerived.OriginalDefinition, interfaceType, TypeCompareKind.ConsiderEverything) Then
4450Dim placeholderInfo = New Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression))()
4559iDisposable As TypeSymbol,
4560placeholderInfo As Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression)),
4563Dim declarationType As TypeSymbol = localSymbol.Type
4594resourceType As TypeSymbol,
4595placeholderInfo As Dictionary(Of TypeSymbol, ValueTuple(Of BoundRValuePlaceholder, BoundExpression, BoundExpression)),
4596iDisposable As TypeSymbol,
4640Private Sub ReportMutableStructureConstraintsInUsing(type As TypeSymbol, symbolName As String, syntaxNode As SyntaxNode, diagnostics As BindingDiagnosticBag)
4693Private Shared Function ShouldReportMutableStructureInUsing(structureType As TypeSymbol) As Boolean
4789Dim exceptionType As TypeSymbol
4867Dim previousType As TypeSymbol
4876If TypeSymbol.Equals(previousType, exceptionType, TypeCompareKind.ConsiderEverything) Then
4960<Out()> ByRef methodReturnType As TypeSymbol) As TypeSymbol
5008Dim methodReturnType As TypeSymbol = Nothing
5009Dim retType As TypeSymbol = Me.GetCurrentReturnType(isAsync, isIterator, methodReturnType)
5093diagnostics As BindingDiagnosticBag) As TypeSymbol
5145Dim retType As TypeSymbol = Me.GetCurrentYieldType(originalSyntax, diagnostics)
Binding\Binder_Symbols.vb (23)
33Optional resolvingBaseType As Boolean = False) As TypeSymbol
55Dim type = TryCast(sym, TypeSymbol)
63Private Shared Sub ReportUseOfModuleOrVoidType(typeSyntax As TypeSyntax, type As TypeSymbol, diagBag As BindingDiagnosticBag)
102typeArguments As ImmutableArray(Of TypeSymbol),
122Dim newTypeArguments(0 To genericType.Arity - 1) As TypeSymbol
227resolvingBaseType As Boolean) As TypeSymbol
229Debug.Assert(symbol Is Nothing OrElse TypeOf symbol Is TypeSymbol OrElse TypeOf symbol Is AliasSymbol, "unexpected symbol from BindTypeOrAliasSyntax")
235Return DirectCast(symbol, TypeSymbol)
276Dim typeSymbol As TypeSymbol = Nothing
279typeSymbol = TryCast(DirectCast(sym, AliasSymbol).Target, TypeSymbol)
281typeSymbol = TryCast(sym, TypeSymbol)
609resolvingBaseType As Boolean) As TypeSymbol
612Dim types = ArrayBuilder(Of TypeSymbol).GetInstance(numElements)
623Dim argumentType As TypeSymbol = Nothing
667Dim typesArray As ImmutableArray(Of TypeSymbol) = types.ToImmutableAndFree()
815Dim elementType As TypeSymbol = binder.BindTypeSyntax(arrayTypeSyntax.ElementType,
829Dim elementType As TypeSymbol = binder.BindTypeSyntax(nullableTypeSyntax.ElementType, diagBag, suppressUseSiteError)
891Dim typeArguments As ImmutableArray(Of TypeSymbol) = BindTypeArguments(typeArgumentsSyntax, binder, diagBag, suppressUseSiteError)
1006StaticCast(Of TypeSymbol).From(namedType.OriginalDefinition.TypeParameters)))
1043Dim typeArguments As ImmutableArray(Of TypeSymbol) = BindTypeArguments(typeArgumentsSyntax, binder, diagBag, suppressUseSiteError)
1119suppressUseSiteError As Boolean) As ImmutableArray(Of TypeSymbol)
1121Dim types As TypeSymbol() = New TypeSymbol(0 To arity - 1) {}
Binding\Binder_Utils.vb (27)
290Public Function CreateNullableOf(typeArgument As TypeSymbol,
326Public Function ApplyArrayRankSpecifiersToType(elementType As TypeSymbol,
328diagnostics As BindingDiagnosticBag) As TypeSymbol
330Dim currentType As TypeSymbol = elementType
350Public Function ApplyArrayRankSpecifiersAndBoundsToType(elementType As TypeSymbol,
353diagnostics As BindingDiagnosticBag) As TypeSymbol
355Dim currentType As TypeSymbol = elementType
382Public Function CreateArrayOf(elementType As TypeSymbol,
483asClauseOrValueType As TypeSymbol,
489) As TypeSymbol
490Dim baseType As TypeSymbol = DecodeIdentifierType(modifiedIdentifier.Identifier, asClauseOrValueType, getRequireTypeDiagnosticInfoFunc, diagBag, decoderContext)
576<Out()> ByRef asClauseType As TypeSymbol,
579) As TypeSymbol
611) As TypeSymbol
613Dim asClauseType As TypeSymbol = Nothing
629ByRef asClauseType As TypeSymbol,
630diagBag As BindingDiagnosticBag) As TypeSymbol
652diagBag As BindingDiagnosticBag) As TypeSymbol
653Dim asClauseType As TypeSymbol = Nothing
666asClauseType As TypeSymbol,
670) As TypeSymbol
671Dim typeCharacterType As TypeSymbol = Nothing
1090Dim paramType As TypeSymbol = newParam.Type
1094Dim restrictedType As TypeSymbol = Nothing
1364Private Shared Function IsNothingLiteralAllowedForAType(type As TypeSymbol) As Boolean
1396Dim conversionType As TypeSymbol = conv.Type
1397Dim operandType As TypeSymbol = operand.Type
Binding\DocumentationCommentCrefBinder.vb (15)
101Dim returnType As TypeSymbol = Nothing
381Dim type As TypeSymbol = Nothing
439Public ReadOnly Type As TypeSymbol
442Public Sub New(type As TypeSymbol, isByRef As Boolean)
451<Out> ByRef returnType As TypeSymbol,
684CollectOperatorsAndConversionsInType(node.Right, argCount, TryCast(singleSymbol, TypeSymbol), symbols, useSiteInfo)
769LookupMember(lookupResult, DirectCast(containingSymbol, TypeSymbol), name, arity, options, useSiteInfo)
775Dim propertyType As TypeSymbol = [property].Type
786Dim fieldType As TypeSymbol = field.Type
798Dim returnType As TypeSymbol = method.ReturnType
825Dim typeParameterSymbols(arguments.Count - 1) As TypeSymbol
853symbols(i) = method.Construct(typeParameterSymbols.AsImmutableOrNull.As(Of TypeSymbol))
858symbols(i) = type.Construct(typeParameterSymbols.AsImmutableOrNull.As(Of TypeSymbol))
890Private Shared Sub CollectOperatorsAndConversionsInType(crefOperator As CrefOperatorReferenceSyntax, argCount As Integer, type As TypeSymbol, symbols As ArrayBuilder(Of Symbol),
1074Private Shared Sub CollectOperatorsAndConversionsInType(type As TypeSymbol,
BoundTree\BoundArrayCreation.vb (2)
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)
BoundTree\BoundParameter.vb (4)
11Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
15Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, type As TypeSymbol)
19Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, type As TypeSymbol, hasErrors As Boolean)
23Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, type As TypeSymbol)
BoundTree\UnboundLambda.vb (13)
60Public Function InferReturnType(target As TargetSignature) As KeyValuePair(Of TypeSymbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol))
64Dim result = New KeyValuePair(Of TypeSymbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol))(If(Me.IsFunctionLambda AndAlso Me.ReturnType.IsVoidType(),
95Private Function DoInferFunctionLambdaReturnType(target As TargetSignature) As KeyValuePair(Of TypeSymbol, ReadOnlyBindingDiagnostic(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, ReadOnlyBindingDiagnostic(Of AssemblySymbol)))()
CodeGen\EmitExpression.vb (29)
254Dim receiverType As TypeSymbol = receiver.Type
470Private Sub EmitDelegateCreation(receiver As BoundExpression, method As MethodSymbol, delegateType As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
836Private Sub EmitLoadIndirect(type As TypeSymbol, syntaxNode As SyntaxNode)
1040Debug.Assert(TypeSymbol.Equals(receiverType, method.ContainingType, TypeCompareKind.ConsiderEverything))
1422Dim mergeTypeOfAlternative As TypeSymbol = StackMergeType(expr.WhenFalse)
1440Dim mergeTypeOfConsequence As TypeSymbol = StackMergeType(expr.WhenTrue)
1445ElseIf (expr.Type.IsInterfaceType() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfAlternative, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfConsequence, TypeCompareKind.ConsiderEverything)) Then
1467Debug.Assert(TypeSymbol.Equals(expr.Type, expr.ElseExpression.Type, TypeCompareKind.ConsiderEverything))
1473Dim mergeTypeOfLeftValue As TypeSymbol = StackMergeType(expr.TestExpression)
1496Dim mergeTypeOfRightValue As TypeSymbol = StackMergeType(expr.ElseExpression)
1500ElseIf (expr.Type.IsInterfaceType() AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfLeftValue, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(expr.Type, mergeTypeOfRightValue, TypeCompareKind.ConsiderEverything)) Then
1523Private Function StackMergeType(expr As BoundExpression) As TypeSymbol
1583Private Shared Function IsVarianceCast(toType As TypeSymbol, fromType As TypeSymbol) As Boolean
1584If (TypeSymbol.Equals(toType, fromType, TypeCompareKind.ConsiderEverything)) Then
1599Return (toType.IsDelegateType() AndAlso Not TypeSymbol.Equals(toType, fromType, TypeCompareKind.ConsiderEverything)) OrElse
1605Private Sub EmitStaticCast(toType As TypeSymbol, syntax As SyntaxNode)
1673Private Sub EmitInitObj(type As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
1698Private Sub EmitLoadDefaultValueOfTypeParameter(type As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
1703Private Sub EmitLoadDefaultValueOfTypeFromNothingLiteral(type As TypeSymbol, used As Boolean, syntaxNode As SyntaxNode)
1730Private Sub EmitConstantExpression(type As TypeSymbol, constantValue As ConstantValue, used As Boolean, syntaxNode As SyntaxNode)
2190Private Sub EmitStoreIndirect(type As TypeSymbol, syntaxNode As SyntaxNode)
2245Dim type As TypeSymbol = boundTypeOfOperator.SourceType.Type
2275If Not TypeSymbol.Equals(node.Type, getField.ReturnType, TypeCompareKind.ConsiderEverything) Then
2306If Not TypeSymbol.Equals(node.Type, node.GetMethodFromHandle.ReturnType, TypeCompareKind.ConsiderEverything) Then
2314Private Sub EmitBox(type As TypeSymbol, syntaxNode As SyntaxNode)
2319Private Sub EmitUnboxAny(type As TypeSymbol, syntaxNode As SyntaxNode)
Compilation\ClsComplianceChecker.vb (14)
414Dim type As TypeSymbol
582Private Function ShouldReportNonCompliantType(type As TypeSymbol, context As NamedTypeSymbol, Optional diagnosticSymbol As Symbol = Nothing) As Boolean
589Private Sub ReportNonCompliantTypeArguments(type As TypeSymbol, context As NamedTypeSymbol, diagnosticSymbol As Symbol)
615Private Function IsCompliantType(type As TypeSymbol, context As NamedTypeSymbol) As Boolean
657Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse Not (TypeOf symbol Is TypeSymbol), "Type kinds without declarations are handled elsewhere.")
875Dim xParameterTypes As ImmutableArray(Of TypeSymbol) = GetParameterTypes(x)
876Dim yParameterTypes As ImmutableArray(Of TypeSymbol) = GetParameterTypes(y)
890Dim xType As TypeSymbol = xParameterTypes(i)
891Dim yType As TypeSymbol = yParameterTypes(i)
901Dim elementTypesDiffer As Boolean = Not TypeSymbol.Equals(xArrayType.ElementType, yArrayType.ElementType, TypeCompareKind.ConsiderEverything)
907ElseIf Not TypeSymbol.Equals(xType, yType, TypeCompareKind.ConsiderEverything) Then
919Private Shared Function GetParameterTypes(symbol As Symbol) As ImmutableArray(Of TypeSymbol)
931Return ImmutableArray(Of TypeSymbol).Empty
934Dim builder = ArrayBuilder(Of TypeSymbol).GetInstance(parameters.Length)
Compilation\SemanticModel.vb (17)
355Dim type As TypeSymbol = Nothing
356Dim convertedType As TypeSymbol = Nothing
917ByRef convertedType As TypeSymbol,
918ByRef conversion As Conversion) As TypeSymbol
930Dim type As TypeSymbol
1045Dim typeSymbol As TypeSymbol = boundType.Type
1194Private Shared Function GetMeParameter(referenceType As TypeSymbol,
1195containingType As TypeSymbol,
1215If TypeSymbol.Equals(referenceType, ErrorTypeSymbol.UnknownResultType, TypeCompareKind.ConsiderEverything) Then
1431If unwrappedSymbols.Length = 1 AndAlso TypeOf unwrappedSymbols(0) Is TypeSymbol Then
1432Dim typeSymbol As TypeSymbol = DirectCast(unwrappedSymbols(0), TypeSymbol)
1513Dim type = TryCast(UnwrapAlias(symbol), TypeSymbol)
1551Dim type = TryCast(UnwrapAlias(symbol), TypeSymbol)
2350Dim vbdestination = destination.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(destination))
3601Friend Function GetMessage(expression As ExpressionSyntax, type As TypeSymbol) As String
3606Friend Function GetMessage(expression As ExpressionSyntax, type As TypeSymbol, position As Integer) As String
Emit\AttributeDataAdapter.vb (4)
109Return New MetadataTypeOf(moduleBeingBuilt.Translate(DirectCast(argument.ValueInternal, TypeSymbol), syntaxNodeOpt, diagnostics),
110moduleBeingBuilt.Translate(DirectCast(argument.TypeInternal, TypeSymbol), syntaxNodeOpt, diagnostics))
115Return moduleBeingBuilt.CreateConstant(DirectCast(type, TypeSymbol), value, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics)
121Dim type As TypeSymbol
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (13)
150Dim otherElementType As TypeSymbol = DirectCast(Me.Visit(symbol.ElementType), TypeSymbol)
270Dim newType = DirectCast(v.Visit(t.Type), TypeSymbol)
450Return method.Construct(ImmutableArrayExtensions.Cast(Of TypeParameterSymbol, TypeSymbol)(IndexedTypeParameterSymbol.Take(i)))
501Private Function AreTypesEqual(type As TypeSymbol, other As TypeSymbol) As Boolean
560Public Overloads Function Equals(source As TypeSymbol, other As TypeSymbol) As Boolean
565Dim visitedSource = DirectCast(_matcher.Visit(source), TypeSymbol)
566Dim visitedOther = If(_deepTranslatorOpt IsNot Nothing, DirectCast(_deepTranslatorOpt.Visit(other), TypeSymbol), other)
595Dim translatedElementType As TypeSymbol = DirectCast(Me.Visit(symbol.ElementType), TypeSymbol)
613Dim translatedTypeArguments = type.GetAllTypeArgumentsWithModifiers().SelectAsArray(Function(t, v) New TypeWithModifiers(DirectCast(v.Visit(t.Type), TypeSymbol),
Generated\BoundNodes.xml.Generated.vb (423)
200Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
205Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
211Private ReadOnly _Type As TypeSymbol
212Public ReadOnly Property Type As TypeSymbol
222Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol), hasErrors As Boolean)
230Public Sub New(syntax As SyntaxNode, arguments As ImmutableArray(Of TypeSymbol))
239Private ReadOnly _Arguments As ImmutableArray(Of TypeSymbol)
240Public ReadOnly Property Arguments As ImmutableArray(Of TypeSymbol)
251Public Function Update(arguments As ImmutableArray(Of TypeSymbol)) As BoundTypeArguments
264Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
268Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
278Public Function Update(type As TypeSymbol) As BoundOmittedArgument
291Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
298Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
310Public Sub New(syntax As SyntaxNode, underlyingLValue As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
337Public Function Update(underlyingLValue As BoundExpression, type As TypeSymbol) As BoundLValueToRValueWrapper
350Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
357Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
369Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
376Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
388Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
395Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
408Public Function Update(type As TypeSymbol) As BoundWithLValueExpressionPlaceholder
421Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
428Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
441Public Function Update(type As TypeSymbol) As BoundWithRValueExpressionPlaceholder
454Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
466Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
481Public Function Update(type As TypeSymbol) As BoundRValuePlaceholder
494Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
506Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
521Public Function Update(type As TypeSymbol) As BoundLValuePlaceholder
534Public Sub New(syntax As SyntaxNode, isReference As Boolean, type As TypeSymbol, hasErrors As Boolean)
539Public Sub New(syntax As SyntaxNode, isReference As Boolean, type As TypeSymbol)
557Public Function Update(isReference As Boolean, type As TypeSymbol) As BoundDup
570Public 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)
613Public Function Update(resultKind As LookupResultKind, symbols As ImmutableArray(Of Symbol), childBoundNodes As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundBadExpression
660Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
686Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundParenthesized
699Public Sub New(syntax As SyntaxNode, expression As BoundExpression, isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
728Public Function Update(expression As BoundExpression, isLValue As Boolean, type As TypeSymbol) As BoundBadVariable
741Public Sub New(syntax As SyntaxNode, expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
785Public Function Update(expression As BoundExpression, indices As ImmutableArray(Of BoundExpression), isLValue As Boolean, type As TypeSymbol) As BoundArrayAccess
798Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
820Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundArrayLength
833Public Sub New(syntax As SyntaxNode, sourceType As BoundTypeExpression, getTypeFromHandle As MethodSymbol, type As TypeSymbol, Optional hasErrors As Boolean = False)
863Public Function Update(sourceType As BoundTypeExpression, getTypeFromHandle As MethodSymbol, type As TypeSymbol) As BoundGetType
876Public Sub New(syntax As SyntaxNode, field As FieldSymbol, type As TypeSymbol, hasErrors As Boolean)
885Public Sub New(syntax As SyntaxNode, field As FieldSymbol, type As TypeSymbol)
907Public Function Update(field As FieldSymbol, type As TypeSymbol) As BoundFieldInfo
920Public Sub New(syntax As SyntaxNode, method As MethodSymbol, getMethodFromHandle As MethodSymbol, type As TypeSymbol, hasErrors As Boolean)
931Public Sub New(syntax As SyntaxNode, method As MethodSymbol, getMethodFromHandle As MethodSymbol, type As TypeSymbol)
962Public Function Update(method As MethodSymbol, getMethodFromHandle As MethodSymbol, type As TypeSymbol) As BoundMethodInfo
975Public Sub New(syntax As SyntaxNode, unevaluatedReceiverOpt As BoundExpression, aliasOpt As AliasSymbol, type As TypeSymbol, Optional hasErrors As Boolean = False)
1004Public Function Update(unevaluatedReceiverOpt As BoundExpression, aliasOpt As AliasSymbol, type As TypeSymbol) As BoundTypeExpression
1017Public Sub New(syntax As SyntaxNode, data As BoundTypeOrValueData, type As TypeSymbol, hasErrors As Boolean)
1025Public Sub New(syntax As SyntaxNode, data As BoundTypeOrValueData, type As TypeSymbol)
1046Public Function Update(data As BoundTypeOrValueData, type As TypeSymbol) As BoundTypeOrValueExpression
1114Public Sub New(syntax As SyntaxNode, method As MethodSymbol, type As TypeSymbol, hasErrors As Boolean)
1128Public Sub New(syntax As SyntaxNode, method As MethodSymbol, type As TypeSymbol)
1152Public Function Update(method As MethodSymbol, type As TypeSymbol) As BoundMethodDefIndex
1165Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
1172Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
1185Public Function Update(type As TypeSymbol) As BoundMaximumMethodDefIndex
1198Public Sub New(syntax As SyntaxNode, analysisKind As Integer, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
1207Public Sub New(syntax As SyntaxNode, analysisKind As Integer, isLValue As Boolean, type As TypeSymbol)
1236Public Function Update(analysisKind As Integer, isLValue As Boolean, type As TypeSymbol) As BoundInstrumentationPayloadRoot
1249Public Sub New(syntax As SyntaxNode, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
1257Public Sub New(syntax As SyntaxNode, isLValue As Boolean, type As TypeSymbol)
1278Public Function Update(isLValue As Boolean, type As TypeSymbol) As BoundModuleVersionId
1291Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
1298Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
1311Public Function Update(type As TypeSymbol) As BoundModuleVersionIdString
1324Public Sub New(syntax As SyntaxNode, document As Cci.DebugSourceDocument, type As TypeSymbol, hasErrors As Boolean)
1333Public Sub New(syntax As SyntaxNode, document As Cci.DebugSourceDocument, type As TypeSymbol)
1355Public Function Update(document As Cci.DebugSourceDocument, type As TypeSymbol) As BoundSourceDocumentIndex
1368Public 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)
1419Public Function Update(operatorKind As UnaryOperatorKind, operand As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundUnaryOperator
1432Public Sub New(syntax As SyntaxNode, operatorKind As UnaryOperatorKind, underlyingExpression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
1467Public Function Update(operatorKind As UnaryOperatorKind, underlyingExpression As BoundExpression, type As TypeSymbol) As BoundUserDefinedUnaryOperator
1480Public Sub New(syntax As SyntaxNode, operand As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
1507Public Function Update(operand As BoundExpression, type As TypeSymbol) As BoundNullableIsTrueOperator
1520Public 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)
1580Public Function Update(operatorKind As BinaryOperatorKind, left As BoundExpression, right As BoundExpression, checked As Boolean, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundBinaryOperator
1593Public Sub New(syntax As SyntaxNode, operatorKind As BinaryOperatorKind, underlyingExpression As BoundExpression, checked As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
1636Public Function Update(operatorKind As BinaryOperatorKind, underlyingExpression As BoundExpression, checked As Boolean, type As TypeSymbol) As BoundUserDefinedBinaryOperator
1649Public 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)
1700Public Function Update(leftOperand As BoundExpression, leftOperandPlaceholder As BoundRValuePlaceholder, leftTest As BoundExpression, bitwiseOperator As BoundUserDefinedBinaryOperator, type As TypeSymbol) As BoundUserDefinedShortCircuitingOperator
1713Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
1720Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
1733Public Function Update(type As TypeSymbol) As BoundCompoundAssignmentTargetPlaceholder
1746Public 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)
1798Public Function Update(left As BoundExpression, leftOnTheRightOpt As BoundCompoundAssignmentTargetPlaceholder, right As BoundExpression, suppressObjectClone As Boolean, type As TypeSymbol) As BoundAssignmentOperator
1811Public Sub New(syntax As SyntaxNode, byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol, Optional hasErrors As Boolean = False)
1854Public Function Update(byRefLocal As BoundLocal, lValue As BoundExpression, isLValue As Boolean, type As TypeSymbol) As BoundReferenceAssignment
1918Public 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)
1971Public Function Update(condition As BoundExpression, whenTrue As BoundExpression, whenFalse As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundTernaryConditionalExpression
1984Public 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)
2044Public Function Update(testExpression As BoundExpression, convertedTestExpression As BoundExpression, testExpressionPlaceholder As BoundRValuePlaceholder, elseExpression As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundBinaryConditionalExpression
2057Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
2064Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
2076Public 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)
2143Public 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
2259Public Sub New(syntax As SyntaxNode, underlyingExpression As BoundExpression, inOutConversionFlags As Byte, type As TypeSymbol, Optional hasErrors As Boolean = False)
2294Public Function Update(underlyingExpression As BoundExpression, inOutConversionFlags As Byte, type As TypeSymbol) As BoundUserDefinedConversion
2307Public 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)
2366Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, suppressVirtualCalls As Boolean, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol) As BoundDirectCast
2379Public 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)
2430Public Function Update(operand As BoundExpression, conversionKind As ConversionKind, constantValueOpt As ConstantValue, relaxationLambdaOpt As BoundLambda, type As TypeSymbol) As BoundTryCast
2443Public Sub New(syntax As SyntaxNode, operand As BoundExpression, isTypeOfIsNotExpression As Boolean, targetType As TypeSymbol, type As TypeSymbol, Optional hasErrors As Boolean = False)
2470Private ReadOnly _TargetType As TypeSymbol
2471Public ReadOnly Property TargetType As TypeSymbol
2482Public Function Update(operand As BoundExpression, isTypeOfIsNotExpression As Boolean, targetType As TypeSymbol, type As TypeSymbol) As BoundTypeOf
2539Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
2560Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundSequencePointExpression
3027Public 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)
3111Public 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
3124Public 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)
3179Public 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
3192Public 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)
3217Private ReadOnly _ContainerTypeOpt As TypeSymbol
3218Public ReadOnly Property ContainerTypeOpt As TypeSymbol
3250Public Function Update(nameOpt As String, containerTypeOpt As TypeSymbol, receiverOpt As BoundExpression, typeArgumentsOpt As BoundTypeArguments, accessKind As LateBoundAccessKind, type As TypeSymbol) As BoundLateMemberAccess
3263Public 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)
3322Public 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
3335Public Sub New(syntax As SyntaxNode, binder As Binder, memberAccess As BoundLateMemberAccess, type As TypeSymbol, Optional hasErrors As Boolean = False)
3365Public Function Update(binder As Binder, memberAccess As BoundLateMemberAccess, type As TypeSymbol) As BoundLateAddressOfOperator
3378Protected Sub New(kind As BoundKind, syntax as SyntaxNode, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3398Public 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)
3435Public 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
3448Public Sub New(syntax As SyntaxNode, naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3458Private ReadOnly _NaturalTypeOpt As TypeSymbol
3459Public ReadOnly Property NaturalTypeOpt As TypeSymbol
3470Public Function Update(naturalTypeOpt As TypeSymbol, arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundConvertedTupleLiteral
3483Protected Sub New(kind As BoundKind, syntax as SyntaxNode, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
3508Public 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)
3559Public Function Update(constructorOpt As MethodSymbol, methodGroupOpt As BoundMethodGroup, arguments As ImmutableArray(Of BoundExpression), defaultArguments As BitVector, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundObjectCreationExpression
3572Public Sub New(syntax As SyntaxNode, guidString As string, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
3593Public Function Update(guidString As string, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundNoPiaObjectCreationExpression
3606Public 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)
3644Public Function Update(binderOpt As Binder.AnonymousTypeCreationBinder, declarations As ImmutableArray(Of BoundAnonymousTypePropertyAccess), arguments As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundAnonymousTypeCreationExpression
3657Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol, hasErrors As Boolean)
3666Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol)
3695Public Function Update(binder As Binder.AnonymousTypeCreationBinder, propertyIndex As Integer, type As TypeSymbol) As BoundAnonymousTypePropertyAccess
3708Public Sub New(syntax As SyntaxNode, binder As Binder.AnonymousTypeFieldInitializerBinder, value As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
3738Public Function Update(binder As Binder.AnonymousTypeFieldInitializerBinder, value As BoundExpression, type As TypeSymbol) As BoundAnonymousTypeFieldInitializer
3751Protected Sub New(kind As BoundKind, syntax as SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3779Public Sub New(syntax As SyntaxNode, createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3805Public Function Update(createTemporaryLocalForInitialization As Boolean, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundObjectInitializerExpression
3818Public Sub New(syntax As SyntaxNode, placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
3836Public Function Update(placeholderOpt As BoundWithLValueExpressionPlaceholder, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundCollectionInitializerExpression
3849Public Sub New(syntax As SyntaxNode, initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
3867Public Function Update(initializerOpt As BoundObjectInitializerExpressionBase, type As TypeSymbol) As BoundNewT
3880Public 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)
3934Public Function Update(receiverOpt As BoundExpression, method As MethodSymbol, relaxationLambdaOpt As BoundLambda, relaxationReceiverPlaceholderOpt As BoundRValuePlaceholder, methodGroupOpt As BoundMethodGroup, type As TypeSymbol) As BoundDelegateCreationExpression
3947Public 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)
4006Public Function Update(isParamArrayArgument As Boolean, bounds As ImmutableArray(Of BoundExpression), initializerOpt As BoundArrayInitialization, arrayLiteralOpt As BoundArrayLiteral, arrayLiteralConversion As ConversionKind, type As TypeSymbol) As BoundArrayCreation
4096Public Sub New(syntax As SyntaxNode, initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol, Optional hasErrors As Boolean = False)
4117Public Function Update(initializers As ImmutableArray(Of BoundExpression), type As TypeSymbol) As BoundArrayInitialization
4130Public 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)
4189Public Function Update(receiverOpt As BoundExpression, fieldSymbol As FieldSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, constantsInProgressOpt As ConstantFieldsInProgress, type As TypeSymbol) As BoundFieldAccess
4202Public 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)
4286Public 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
4299Public Sub New(syntax As SyntaxNode, receiverOpt As BoundExpression, eventSymbol As EventSymbol, type As TypeSymbol, Optional hasErrors As Boolean = False)
4329Public Function Update(receiverOpt As BoundExpression, eventSymbol As EventSymbol, type As TypeSymbol) As BoundEventAccess
4815Public 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)
4859Public Function Update(locals As ImmutableArray(Of LocalSymbol), sideEffects As ImmutableArray(Of BoundExpression), valueOpt As BoundExpression, type As TypeSymbol) As BoundSequence
5891Public Sub New(syntax As SyntaxNode, value As ConstantValue, type As TypeSymbol, hasErrors As Boolean)
5904Public Sub New(syntax As SyntaxNode, value As ConstantValue, type As TypeSymbol)
5927Public Function Update(value As ConstantValue, type As TypeSymbol) As BoundLiteral
5940Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
5947Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
5960Public Function Update(type As TypeSymbol) As BoundMeReference
5973Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
5985Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
6000Public Function Update(type As TypeSymbol) As BoundValueTypeMeReference
6013Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6020Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
6033Public Function Update(type As TypeSymbol) As BoundMyBaseReference
6046Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6053Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
6066Public Function Update(type As TypeSymbol) As BoundMyClassReference
6079Public Sub New(syntax As SyntaxNode, sourceType As NamedTypeSymbol, type As TypeSymbol, hasErrors As Boolean)
6088Public Sub New(syntax As SyntaxNode, sourceType As NamedTypeSymbol, type As TypeSymbol)
6110Public Function Update(sourceType As NamedTypeSymbol, type As TypeSymbol) As BoundPreviousSubmissionReference
6123Public Sub New(syntax As SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6130Public Sub New(syntax As SyntaxNode, type As TypeSymbol)
6143Public Function Update(type As TypeSymbol) As BoundHostObjectMemberReference
6156Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol, hasErrors As Boolean)
6171Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol)
6203Public Function Update(localSymbol As LocalSymbol, isLValue As Boolean, type As TypeSymbol) As BoundLocal
6216Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, emitExpressions As PseudoVariableExpressions, type As TypeSymbol, hasErrors As Boolean)
6233Public Sub New(syntax As SyntaxNode, localSymbol As LocalSymbol, isLValue As Boolean, emitExpressions As PseudoVariableExpressions, type As TypeSymbol)
6274Public Function Update(localSymbol As LocalSymbol, isLValue As Boolean, emitExpressions As PseudoVariableExpressions, type As TypeSymbol) As BoundPseudoVariable
6287Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, type As TypeSymbol, hasErrors As Boolean)
6298Public Sub New(syntax As SyntaxNode, parameterSymbol As ParameterSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, type As TypeSymbol)
6336Public Function Update(parameterSymbol As ParameterSymbol, isLValue As Boolean, suppressVirtualCalls As Boolean, type As TypeSymbol) As BoundParameter
6349Public Sub New(syntax As SyntaxNode, isOut As Boolean, type As TypeSymbol, hasErrors As Boolean)
6357Public Sub New(syntax As SyntaxNode, isOut As Boolean, type As TypeSymbol)
6378Public Function Update(isOut As Boolean, type As TypeSymbol) As BoundByRefArgumentPlaceholder
6391Public 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)
6453Public Function Update(originalArgument As BoundExpression, inConversion As BoundExpression, inPlaceholder As BoundByRefArgumentPlaceholder, outConversion As BoundExpression, outPlaceholder As BoundRValuePlaceholder, type As TypeSymbol) As BoundByRefArgumentWithCopyBack
6466Public Sub New(syntax As SyntaxNode, originalArgument As BoundExpression, localSymbol As SynthesizedLocal, type As TypeSymbol, Optional hasErrors As Boolean = False)
6501Public Function Update(originalArgument As BoundExpression, localSymbol As SynthesizedLocal, type As TypeSymbol) As BoundLateBoundArgumentSupportingAssignmentWithCapture
6556Public Sub New(syntax As SyntaxNode, label As LabelSymbol, type As TypeSymbol, hasErrors As Boolean)
6564Public Sub New(syntax As SyntaxNode, label As LabelSymbol, type As TypeSymbol)
6585Public Function Update(label As LabelSymbol, type As TypeSymbol) As BoundLabel
6777Public 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)
6796Public Sub New(syntax As SyntaxNode, binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache)
6834Private ReadOnly _ReturnType As TypeSymbol
6835Public ReadOnly Property ReturnType As TypeSymbol
6853Public Function Update(binder As Binder, flags As SourceMemberFlags, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol, bindingCache As UnboundLambda.UnboundLambdaBindingCache) As UnboundLambda
6946Public Sub New(syntax As SyntaxNode, lastOperator As BoundQueryClauseBase, type As TypeSymbol, Optional hasErrors As Boolean = False)
6968Public Function Update(lastOperator As BoundQueryClauseBase, type As TypeSymbol) As BoundQueryExpression
6981Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol, hasErrors As Boolean)
6988Protected Sub New(kind As BoundKind, syntax as SyntaxNode, type As TypeSymbol)
7000Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7022Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundQuerySource
7035Public Sub New(syntax As SyntaxNode, conversionCall As BoundCall, type As TypeSymbol, Optional hasErrors As Boolean = False)
7057Public Function Update(conversionCall As BoundCall, type As TypeSymbol) As BoundToQueryableCollectionConversion
7070Protected 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)
7083Protected Sub New(kind As BoundKind, syntax as SyntaxNode, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol)
7104Private ReadOnly _CompoundVariableType As TypeSymbol
7105Public ReadOnly Property CompoundVariableType As TypeSymbol
7122Public 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)
7160Public 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
7173Public 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)
7198Public Function Update(underlyingExpression As BoundExpression, rangeVariables As ImmutableArray(Of RangeVariableSymbol), compoundVariableType As TypeSymbol, binders As ImmutableArray(Of Binder), type As TypeSymbol) As BoundQueryClause
7211Public Sub New(syntax As SyntaxNode, underlyingExpression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7233Public Function Update(underlyingExpression As BoundExpression, type As TypeSymbol) As BoundOrdering
7306Public Sub New(syntax As SyntaxNode, rangeVariable As RangeVariableSymbol, value As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7337Public Function Update(rangeVariable As RangeVariableSymbol, value As BoundExpression, type As TypeSymbol) As BoundRangeVariableAssignment
7414Public 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)
7455Public 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
7468Public Sub New(syntax As SyntaxNode, group As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7490Public Function Update(group As BoundExpression, type As TypeSymbol) As BoundGroupAggregation
7503Public Sub New(syntax As SyntaxNode, rangeVariable As RangeVariableSymbol, type As TypeSymbol, hasErrors As Boolean)
7512Public Sub New(syntax As SyntaxNode, rangeVariable As RangeVariableSymbol, type As TypeSymbol)
7534Public Function Update(rangeVariable As RangeVariableSymbol, type As TypeSymbol) As BoundRangeVariable
7784Public Sub New(syntax As SyntaxNode, xmlNamespace As BoundExpression, localName As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7824Public Function Update(xmlNamespace As BoundExpression, localName As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlName
7837Public Sub New(syntax As SyntaxNode, xmlNamespace As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
7868Public Function Update(xmlNamespace As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlNamespace
7881Public Sub New(syntax As SyntaxNode, declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False)
7921Public Function Update(declaration As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlDocument
7934Public 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)
7980Public Function Update(version As BoundExpression, encoding As BoundExpression, standalone As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlDeclaration
7993Public Sub New(syntax As SyntaxNode, target As BoundExpression, data As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8033Public Function Update(target As BoundExpression, data As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlProcessingInstruction
8046Public Sub New(syntax As SyntaxNode, value As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8077Public Function Update(value As BoundExpression, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlComment
8090Public 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)
8143Public Function Update(name As BoundExpression, value As BoundExpression, matchesImport As Boolean, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlAttribute
8156Public Sub New(syntax As SyntaxNode, argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol, Optional hasErrors As Boolean = False)
8196Public Function Update(argument As BoundExpression, childNodes As ImmutableArray(Of BoundExpression), rewriterInfo As BoundXmlContainerRewriterInfo, type As TypeSymbol) As BoundXmlElement
8209Public Sub New(syntax As SyntaxNode, memberAccess As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8231Public Function Update(memberAccess As BoundExpression, type As TypeSymbol) As BoundXmlMemberAccess
8244Public Sub New(syntax As SyntaxNode, expression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8266Public Function Update(expression As BoundExpression, type As TypeSymbol) As BoundXmlEmbeddedExpression
8279Public Sub New(syntax As SyntaxNode, value As BoundLiteral, objectCreation As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8310Public Function Update(value As BoundLiteral, objectCreation As BoundExpression, type As TypeSymbol) As BoundXmlCData
8498Public Sub New(syntax As SyntaxNode, activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol, Optional hasErrors As Boolean = False)
8534Public Function Update(activeHandlerLocal As BoundLocal, resumeTargetLocal As BoundLocal, type As TypeSymbol) As BoundUnstructuredExceptionHandlingCatchFilter
8661Public 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)
8733Public 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
8746Public 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)
8798Public 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
8847Public 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)
8900Public Function Update(original As BoundExpression, start As BoundExpression, lengthOpt As BoundExpression, source As BoundExpression, type As TypeSymbol) As BoundMidResult
8913Public Sub New(syntax As SyntaxNode, receiver As BoundExpression, placeholder As BoundRValuePlaceholder, accessExpression As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
8952Public Function Update(receiver As BoundExpression, placeholder As BoundRValuePlaceholder, accessExpression As BoundExpression, type As TypeSymbol) As BoundConditionalAccess
8965Public Sub New(syntax As SyntaxNode, placeholderId As Integer, capture As Boolean, type As TypeSymbol, hasErrors As Boolean)
8979Public Sub New(syntax As SyntaxNode, placeholderId As Integer, capture As Boolean, type As TypeSymbol)
9010Public Function Update(placeholderId As Integer, capture As Boolean, type As TypeSymbol) As BoundConditionalAccessReceiverPlaceholder
9023Public Sub New(syntax As SyntaxNode, receiver As BoundExpression, captureReceiver As Boolean, placeholderId As Integer, whenNotNull As BoundExpression, whenNullOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
9083Public Function Update(receiver As BoundExpression, captureReceiver As Boolean, placeholderId As Integer, whenNotNull As BoundExpression, whenNullOpt As BoundExpression, type As TypeSymbol) As BoundLoweredConditionalAccess
9096Public Sub New(syntax As SyntaxNode, valueTypeReceiver As BoundExpression, referenceTypeReceiver As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
9132Public Function Update(valueTypeReceiver As BoundExpression, referenceTypeReceiver As BoundExpression, type As TypeSymbol) As BoundComplexConditionalAccessReceiver
9145Public Sub New(syntax As SyntaxNode, argument As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol, Optional hasErrors As Boolean = False)
9180Public Function Update(argument As BoundExpression, constantValueOpt As ConstantValue, type As TypeSymbol) As BoundNameOfOperator
9193Public Sub New(syntax As SyntaxNode, expression As BoundTypeExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
9220Public Function Update(expression As BoundTypeExpression, type As TypeSymbol) As BoundTypeAsValueExpression
9233Public Sub New(syntax As SyntaxNode, contents As ImmutableArray(Of BoundNode), constructionOpt As BoundExpression, type As TypeSymbol, Optional hasErrors As Boolean = False)
9268Public Function Update(contents As ImmutableArray(Of BoundNode), constructionOpt As BoundExpression, type As TypeSymbol) As BoundInterpolatedStringExpression
12047Dim type as TypeSymbol = Me.VisitType(node.Type)
12052Dim type as TypeSymbol = Me.VisitType(node.Type)
12058Dim type as TypeSymbol = Me.VisitType(node.Type)
12063Dim type as TypeSymbol = Me.VisitType(node.Type)
12068Dim type as TypeSymbol = Me.VisitType(node.Type)
12073Dim type as TypeSymbol = Me.VisitType(node.Type)
12078Dim type as TypeSymbol = Me.VisitType(node.Type)
12083Dim type as TypeSymbol = Me.VisitType(node.Type)
12089Dim type as TypeSymbol = Me.VisitType(node.Type)
12100Dim type as TypeSymbol = Me.VisitType(node.Type)
12106Dim type as TypeSymbol = Me.VisitType(node.Type)
12113Dim type as TypeSymbol = Me.VisitType(node.Type)
12119Dim type as TypeSymbol = Me.VisitType(node.Type)
12125Dim type as TypeSymbol = Me.VisitType(node.Type)
12130Dim type as TypeSymbol = Me.VisitType(node.Type)
12135Dim type as TypeSymbol = Me.VisitType(node.Type)
12141Dim type as TypeSymbol = Me.VisitType(node.Type)
12146Dim type as TypeSymbol = Me.VisitType(node.Type)
12152Dim type as TypeSymbol = Me.VisitType(node.Type)
12157Dim type as TypeSymbol = Me.VisitType(node.Type)
12162Dim type as TypeSymbol = Me.VisitType(node.Type)
12167Dim type as TypeSymbol = Me.VisitType(node.Type)
12172Dim type as TypeSymbol = Me.VisitType(node.Type)
12177Dim type as TypeSymbol = Me.VisitType(node.Type)
12182Dim type as TypeSymbol = Me.VisitType(node.Type)
12188Dim type as TypeSymbol = Me.VisitType(node.Type)
12194Dim type as TypeSymbol = Me.VisitType(node.Type)
12200Dim type as TypeSymbol = Me.VisitType(node.Type)
12207Dim type as TypeSymbol = Me.VisitType(node.Type)
12213Dim type as TypeSymbol = Me.VisitType(node.Type)
12222Dim type as TypeSymbol = Me.VisitType(node.Type)
12227Dim type as TypeSymbol = Me.VisitType(node.Type)
12235Dim type as TypeSymbol = Me.VisitType(node.Type)
12242Dim type as TypeSymbol = Me.VisitType(node.Type)
12248Dim type as TypeSymbol = Me.VisitType(node.Type)
12256Dim type as TypeSymbol = Me.VisitType(node.Type)
12265Dim type as TypeSymbol = Me.VisitType(node.Type)
12272Dim type as TypeSymbol = Me.VisitType(node.Type)
12290Dim type as TypeSymbol = Me.VisitType(node.Type)
12297Dim type as TypeSymbol = Me.VisitType(node.Type)
12304Dim type as TypeSymbol = Me.VisitType(node.Type)
12310Dim targetType as TypeSymbol = Me.VisitType(node.TargetType)
12311Dim type as TypeSymbol = Me.VisitType(node.Type)
12322Dim type as TypeSymbol = Me.VisitType(node.Type)
12338Dim type as TypeSymbol = Me.VisitType(node.Type)
12344Dim type as TypeSymbol = Me.VisitType(node.Type)
12383Dim type as TypeSymbol = Me.VisitType(node.Type)
12390Dim type as TypeSymbol = Me.VisitType(node.Type)
12397Dim containerTypeOpt as TypeSymbol = Me.VisitType(node.ContainerTypeOpt)
12398Dim type as TypeSymbol = Me.VisitType(node.Type)
12406Dim type as TypeSymbol = Me.VisitType(node.Type)
12412Dim type as TypeSymbol = Me.VisitType(node.Type)
12418Dim type as TypeSymbol = Me.VisitType(node.Type)
12424Dim naturalTypeOpt as TypeSymbol = Me.VisitType(node.NaturalTypeOpt)
12425Dim type as TypeSymbol = Me.VisitType(node.Type)
12433Dim type as TypeSymbol = Me.VisitType(node.Type)
12439Dim type as TypeSymbol = Me.VisitType(node.Type)
12446Dim type as TypeSymbol = Me.VisitType(node.Type)
12451Dim type as TypeSymbol = Me.VisitType(node.Type)
12457Dim type as TypeSymbol = Me.VisitType(node.Type)
12464Dim type as TypeSymbol = Me.VisitType(node.Type)
12471Dim type as TypeSymbol = Me.VisitType(node.Type)
12477Dim type as TypeSymbol = Me.VisitType(node.Type)
12486Dim type as TypeSymbol = Me.VisitType(node.Type)
12494Dim type as TypeSymbol = Me.VisitType(node.Type)
12501Dim type as TypeSymbol = Me.VisitType(node.Type)
12507Dim type as TypeSymbol = Me.VisitType(node.Type)
12513Dim type as TypeSymbol = Me.VisitType(node.Type)
12521Dim type as TypeSymbol = Me.VisitType(node.Type)
12527Dim type as TypeSymbol = Me.VisitType(node.Type)
12588Dim 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)
12739Dim type as TypeSymbol = Me.VisitType(node.Type)
12744Dim type as TypeSymbol = Me.VisitType(node.Type)
12749Dim type as TypeSymbol = Me.VisitType(node.Type)
12754Dim type as TypeSymbol = Me.VisitType(node.Type)
12759Dim type as TypeSymbol = Me.VisitType(node.Type)
12769Dim type as TypeSymbol = Me.VisitType(node.Type)
12775Dim type as TypeSymbol = Me.VisitType(node.Type)
12784Dim type as TypeSymbol = Me.VisitType(node.Type)
12810Dim returnType as TypeSymbol = Me.VisitType(node.ReturnType)
12811Dim type as TypeSymbol = Me.VisitType(node.Type)
12817Dim type as TypeSymbol = Me.VisitType(node.Type)
12823Dim type as TypeSymbol = Me.VisitType(node.Type)
12829Dim type as TypeSymbol = Me.VisitType(node.Type)
12835Dim type as TypeSymbol = Me.VisitType(node.Type)
12841Dim compoundVariableType as TypeSymbol = Me.VisitType(node.CompoundVariableType)
12842Dim type as TypeSymbol = Me.VisitType(node.Type)
12848Dim compoundVariableType as TypeSymbol = Me.VisitType(node.CompoundVariableType)
12849Dim type as TypeSymbol = Me.VisitType(node.Type)
12855Dim type as TypeSymbol = Me.VisitType(node.Type)
12861Dim type as TypeSymbol = Me.VisitType(node.Type)
12867Dim type as TypeSymbol = Me.VisitType(node.Type)
12872Dim type as TypeSymbol = Me.VisitType(node.Type)
12880Dim compoundVariableType as TypeSymbol = Me.VisitType(node.CompoundVariableType)
12881Dim type as TypeSymbol = Me.VisitType(node.Type)
12887Dim type as TypeSymbol = Me.VisitType(node.Type)
12892Dim type as TypeSymbol = Me.VisitType(node.Type)
12930Dim type as TypeSymbol = Me.VisitType(node.Type)
12937Dim type as TypeSymbol = Me.VisitType(node.Type)
12944Dim type as TypeSymbol = Me.VisitType(node.Type)
12953Dim type as TypeSymbol = Me.VisitType(node.Type)
12961Dim type as TypeSymbol = Me.VisitType(node.Type)
12968Dim type as TypeSymbol = Me.VisitType(node.Type)
12976Dim type as TypeSymbol = Me.VisitType(node.Type)
12983Dim type as TypeSymbol = Me.VisitType(node.Type)
12989Dim type as TypeSymbol = Me.VisitType(node.Type)
12995Dim type as TypeSymbol = Me.VisitType(node.Type)
13002Dim type as TypeSymbol = Me.VisitType(node.Type)
13024Dim type as TypeSymbol = Me.VisitType(node.Type)
13049Dim type as TypeSymbol = Me.VisitType(node.Type)
13056Dim type as TypeSymbol = Me.VisitType(node.Type)
13073Dim type as TypeSymbol = Me.VisitType(node.Type)
13081Dim type as TypeSymbol = Me.VisitType(node.Type)
13086Dim type as TypeSymbol = Me.VisitType(node.Type)
13094Dim type as TypeSymbol = Me.VisitType(node.Type)
13101Dim type as TypeSymbol = Me.VisitType(node.Type)
13107Dim type as TypeSymbol = Me.VisitType(node.Type)
13113Dim type as TypeSymbol = Me.VisitType(node.Type)
13120Dim type as TypeSymbol = Me.VisitType(node.Type)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (9)
34Dim awaiterType As TypeSymbol = node.GetAwaiter.Type.InternalSubstituteTypeParameters(Me.TypeMap).Type
52Dim rewrittenType As TypeSymbol = VisitType(node.Type)
117Dim awaiterType As TypeSymbol = awaiterTemp.Type
118Dim awaiterFieldType As TypeSymbol = awaiterType
139If(TypeSymbol.Equals(awaiterField.Type, awaiterTemp.Type, TypeCompareKind.ConsiderEverything),
182ImmutableArray.Create(Of TypeSymbol)(asCriticalNotifyCompletion.Type, Me.F.Me().Type),
199ImmutableArray.Create(Of TypeSymbol)(asNotifyCompletion.Type, Me.F.Me().Type),
233ImmutableArray.Create(Of TypeSymbol)(awaiterType, Me.F.Me().Type),
264If(TypeSymbol.Equals(awaiterTemp.Type, awaiterField.Type, TypeCompareKind.ConsiderEverything),
Lowering\AsyncRewriter\AsyncRewriter.vb (14)
23Private ReadOnly _resultType As TypeSymbol
226Dim builderType As TypeSymbol = constructedBuilderField.Type
240ImmutableArray.Create(Of TypeSymbol)(frameType),
377Dim returnType As TypeSymbol = method.ReturnType
378If TypeSymbol.Equals(returnType, compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task), TypeCompareKind.ConsiderEverything) Then
383TypeSymbol.Equals(returnType.OriginalDefinition, compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T), TypeCompareKind.ConsiderEverything) Then
505type As TypeSymbol,
509Return GenerateMethodCall(receiver, type, methodName, ImmutableArray(Of TypeSymbol).Empty, arguments)
513type As TypeSymbol,
515typeArgs As ImmutableArray(Of TypeSymbol),
540type As TypeSymbol,
542typeArgs As ImmutableArray(Of TypeSymbol)) As BoundMethodGroup
575Private Function GeneratePropertyGet(receiver As BoundExpression, type As TypeSymbol, propertyName As String) As BoundExpression
602Private Function FindPropertyAndReturnPropertyGroup(receiver As BoundExpression, type As TypeSymbol, propertyName As String) As BoundPropertyGroup
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (33)
199Dim resultType As TypeSymbol = node.Type
201Dim resultNotNullableType As TypeSymbol = resultType.GetNullableUnderlyingTypeOrSelf
202Dim resultUnderlyingType As TypeSymbol = resultNotNullableType.GetEnumUnderlyingTypeOrSelf
214Dim operandType As TypeSymbol = originalLeft.Type
240Dim operandNotNullableType As TypeSymbol = operandType.GetNullableUnderlyingTypeOrSelf
241Dim operandUnderlyingType As TypeSymbol = operandNotNullableType.GetEnumUnderlyingTypeOrSelf
246Debug.Assert(TypeSymbol.Equals(operandType, originalLeft.Type, TypeCompareKind.ConsiderEverything))
251Debug.Assert(TypeSymbol.Equals(operandType, originalRight.Type, TypeCompareKind.ConsiderEverything))
303Dim operandActiveType As TypeSymbol = operandType
308Dim newType As TypeSymbol = If(operandIsNullable, Me._factory.NullableOf(operandUnderlyingType), operandUnderlyingType)
318Dim newType As TypeSymbol = If(operandIsNullable, Me._factory.NullableOf(Me.Int32Type), Me.Int32Type)
334Dim resultType As TypeSymbol = node.Type
336Dim resultUnderlyingType As TypeSymbol = GetUnderlyingType(resultType)
345Debug.Assert(TypeSymbol.Equals(resultType, originalLeft.Type, TypeCompareKind.ConsiderEverything))
349Debug.Assert(TypeSymbol.Equals(resultType, originalRight.Type, TypeCompareKind.ConsiderEverything))
352Dim systemBool As TypeSymbol = _factory.SpecialType(SpecialType.System_Boolean)
383Dim resultType As TypeSymbol = node.Type
385Dim resultNotNullableType As TypeSymbol = resultType.GetNullableUnderlyingTypeOrSelf
386Dim resultUnderlyingType As TypeSymbol = resultNotNullableType.GetEnumUnderlyingTypeOrSelf
515notNullableType As TypeSymbol,
521Dim underlyingType As TypeSymbol = notNullableType.GetEnumUnderlyingTypeOrSelf
533Private Function MaskShiftCountOperand(node As BoundBinaryOperator, resultType As TypeSymbol, isChecked As Boolean) As BoundExpression
545Dim shiftedType As TypeSymbol = resultType
550Dim operandType As TypeSymbol = operand.Type
560If Not TypeSymbol.Equals(operandType, Me.Int32Type, TypeCompareKind.ConsiderEverything) Then
587Private Function MaskShiftCountOperand(loweredOperand As BoundExpression, shiftedType As TypeSymbol, shiftMask As Integer, shiftConst As ConstantValue, isChecked As Boolean) As BoundExpression
599Dim int32Nullable As TypeSymbol = If(isNullable, Me._factory.NullableOf(Me.Int32Type), Nothing)
722Private Shared Function AdjustCallArgumentForLiftedOperator(oldArg As BoundExpression, parameterType As TypeSymbol) As BoundExpression
725Debug.Assert(TypeSymbol.Equals(oldArg.Type.GetNullableUnderlyingTypeOrSelf(), parameterType, TypeCompareKind.ConsiderEverything))
739Private Function AdjustCallForLiftedOperator(opKind As BinaryOperatorKind, [call] As BoundCall, resultType As TypeSymbol) As BoundExpression
746Private Function AdjustCallForLiftedOperator(opKind As UnaryOperatorKind, [call] As BoundCall, resultType As TypeSymbol) As BoundExpression
753Private Function AdjustCallForLiftedOperator_DoNotCallDirectly([call] As BoundCall, resultType As TypeSymbol) As BoundExpression
769Dim 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)
101Private Function BuildLambdaBodyForCoalesce(conversion As BoundConversion, toType As TypeSymbol, lambdaParameter As ParameterSymbol, isChecked As Boolean) As BoundExpression
108Dim parameterType As TypeSymbol = parameter.Type
125Private Function CreateUserDefinedNullableToUnderlyingConversion(expression As BoundExpression, nullableType As TypeSymbol, isChecked As Boolean) As BoundExpression
127Dim underlyingType As TypeSymbol = nullableType.GetNullableUnderlyingType
180toType As TypeSymbol,
188Dim callType As TypeSymbol = [call].Type
195Debug.Assert(TypeSymbol.Equals(method.ReturnType, callType, TypeCompareKind.ConsiderEverything))
196Debug.Assert(TypeSymbol.Equals(toType, conversion.Type, TypeCompareKind.ConsiderEverything))
198Dim expectedParameterType As TypeSymbol = method.Parameters(0).Type
199Dim realParameterType As TypeSymbol = parameter.Type
200Debug.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
408Private Function CreateTypeAsIfNeeded(operand As BoundExpression, oldType As TypeSymbol, newType As TypeSymbol) As BoundExpression
409Return If((TypeSymbol.Equals(oldType, newType, TypeCompareKind.ConsiderEverything)), operand, CreateTypeAs(operand, newType))
413Private Function Convert(expr As BoundExpression, type As TypeSymbol, isChecked As Boolean) As BoundExpression
429Private Function Convert(expr As BoundExpression, type As TypeSymbol, helper As MethodSymbol, isChecked As Boolean) As BoundExpression
440Private Function ConvertIfNeeded(operand As BoundExpression, oldType As TypeSymbol, newType As TypeSymbol, isChecked As Boolean) As BoundExpression
441Return If((TypeSymbol.Equals(oldType, newType, TypeCompareKind.ConsiderEverything)), operand, Convert(operand, newType, isChecked))
Lowering\LambdaRewriter\LambdaRewriter.vb (9)
381Debug.Assert(TypeSymbol.Equals(result.Type, frameType, TypeCompareKind.ConsiderEverything))
395If _currentFrameThis IsNot Nothing AndAlso TypeSymbol.Equals(_currentFrameThis.Type, frameClass, TypeCompareKind.ConsiderEverything) Then
502Friend Shared Function ConstructFrameType(Of T As TypeSymbol)(type As LambdaFrame, typeArguments As ImmutableArray(Of T)) As NamedTypeSymbol
504Return type.Construct(StaticCast(Of TypeSymbol).From(typeArguments))
527Debug.Assert(TypeSymbol.Equals(frameType, constructor.ContainingType, TypeCompareKind.ConsiderEverything))
829If TypeSymbol.Equals(newType, origLocal.Type, TypeCompareKind.ConsiderEverything) Then
1063Private Function RewriteLambda(node As BoundLambda, type As TypeSymbol, convertToExpressionTree As Boolean) As BoundExpression
1188referencedMethod = referencedMethod.Construct(StaticCast(Of TypeSymbol).From(_currentTypeParameters))
1218Dim cachedFieldType As TypeSymbol = If(containerAsFrame Is Nothing,
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (21)
175Private Function MakeTupleConversion(syntax As SyntaxNode, rewrittenOperand As BoundExpression, destinationType As TypeSymbol, convertedElements As BoundConvertedTupleElements) As BoundExpression
186Dim srcType As TypeSymbol = rewrittenOperand.Type
522resultType As TypeSymbol,
622Dim resultType As TypeSymbol = outConversion.Type
787Private Function RewriteReferenceTypeToCharArrayRankOneConversion(node As BoundConversion, typeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression
802Dim objectType As TypeSymbol = memberSymbol.Parameters(0).Type
832Private Function RewriteFromObjectConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
910Private Function RewriteToStringConversion(node As BoundConversion, underlyingTypeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression
997Private Function RewriteFromStringConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
1055Private Function RewriteNumericOrBooleanToDecimalConversion(node As BoundConversion, underlyingTypeFrom As TypeSymbol, typeTo As TypeSymbol) As BoundExpression
1136Private Function RewriteDecimalToNumericOrBooleanConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
1191Private Function RewriteFloatingToIntegralConversion(node As BoundConversion, typeFrom As TypeSymbol, underlyingTypeTo As TypeSymbol) As BoundExpression
1332Dim typeFrom As TypeSymbol = operand.Type
1333Dim typeTo As TypeSymbol = node.Type
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (10)
13Private Function WrapInNullable(expr As BoundExpression, nullableType As TypeSymbol) As BoundExpression
287Private Shared Function NullableNull(syntax As SyntaxNode, nullableType As TypeSymbol) As BoundExpression
303type As TypeSymbol) As BoundExpression
318Private Function NullableFalse(syntax As SyntaxNode, nullableOfBoolean As TypeSymbol) As BoundExpression
324Private Function NullableTrue(syntax As SyntaxNode, nullableOfBoolean As TypeSymbol) As BoundExpression
330Private Function GetNullableMethod(syntax As SyntaxNode, nullableType As TypeSymbol, member As SpecialMember, Optional isOptional As Boolean = False) As MethodSymbol
341Private Function NullableOfBooleanValue(syntax As SyntaxNode, isTrue As Boolean, nullableOfBoolean As TypeSymbol) As BoundExpression
397resultType As TypeSymbol) As BoundExpression
498Debug.Assert(TypeSymbol.Equals(left.Type, right.Type, TypeCompareKind.ConsiderEverything))
504Private Shared Function MakeNullLiteral(syntax As SyntaxNode, type As TypeSymbol) As BoundLiteral
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (6)
148Private Function CreateTempLocal(syntax As SyntaxNode, type As TypeSymbol, expr As BoundExpression, sideEffects As ArrayBuilder(Of BoundExpression)) As BoundLocal
187Debug.Assert(TypeSymbol.Equals(objCreation.ConstructorOpt.ContainingType, Me.Compilation.GetWellKnownType(WellKnownType.System_Xml_Linq_XElement), TypeCompareKind.ConsiderEverything))
201Debug.Assert(TypeSymbol.Equals(constructor.ContainingType, Me.Compilation.GetWellKnownType(WellKnownType.System_Xml_Linq_XDocument), TypeCompareKind.ConsiderEverything))
250Dim secondArgumentType As TypeSymbol = constructor.Parameters(1).Type
280Private Function CreateTempLocalInExpressionLambda(syntax As SyntaxNode, type As TypeSymbol, expr As BoundExpression) As BoundLocal
343arrayType As TypeSymbol,
Lowering\SyntheticBoundNodeFactory.vb (27)
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
307Debug.Assert(TypeSymbol.Equals(byRefLocal.Type, lValue.Type, TypeCompareKind.ConsiderEverything))
404Public Function SynthesizedLocal(type As TypeSymbol, Optional kind As SynthesizedLocalKind = SynthesizedLocalKind.LoweringTemp, Optional syntax As SyntaxNode = Nothing) As LocalSymbol
408Public Function SynthesizedParameter(type As TypeSymbol, name As String, Optional container As MethodSymbol = Nothing, Optional ordinal As Integer = 0) As ParameterSymbol
623Public Function [TryCast](expression As BoundExpression, type As TypeSymbol) As BoundTryCast
634Public Function [DirectCast](expression As BoundExpression, type As TypeSymbol) As BoundDirectCast
823Public Function Null(type As TypeSymbol) As BoundExpression
836Public Function Type(typeSym As TypeSymbol) As BoundTypeExpression
842Public Function [Typeof](type As WellKnownType, systemTypeSymbol As TypeSymbol) As BoundExpression
846Public Function [Typeof](typeSym As TypeSymbol, systemTypeSymbol As TypeSymbol) As BoundExpression
859TypeSymbol.Equals(systemTypeSymbol, getTypeFromHandle.ReturnType, TypeCompareKind.AllIgnoreOptionsForVB))
865Public Function TypeArguments(typeArgs As ImmutableArray(Of TypeSymbol)) As BoundTypeArguments
871Public Function MethodInfo(meth As WellKnownMember, systemReflectionMethodInfo As TypeSymbol) As BoundExpression
880Public Function MethodInfo(meth As SpecialMember, systemReflectionMethodInfo As TypeSymbol) As BoundExpression
889Public Function MethodInfo(method As MethodSymbol, systemReflectionMethodInfo As TypeSymbol) As BoundExpression
999Public Function InstrumentationPayloadRoot(analysisKind As Integer, payloadType As TypeSymbol, isLValue As Boolean) As BoundExpression
1014Public Function Convert(type As TypeSymbol, arg As BoundExpression, Optional isChecked As Boolean = False) As BoundConversion
1024Public Function Convert(type As TypeSymbol, arg As BoundExpression, convKind As ConversionKind, Optional isChecked As Boolean = False) As BoundConversion
1031Public Function Array(elementType As TypeSymbol, ParamArray elements As BoundExpression()) As BoundExpression
1035Public Function Array(elementType As TypeSymbol, elements As ImmutableArray(Of BoundExpression)) As BoundExpression
1042Public Function Array(elementType As TypeSymbol, bounds As ImmutableArray(Of BoundExpression), elements As ImmutableArray(Of BoundExpression)) As BoundExpression
1051Public Function Conditional(condition As BoundExpression, consequence As BoundExpression, alternative As BoundExpression, type As TypeSymbol) As BoundTernaryConditionalExpression
1059Public Function Binary(kind As BinaryOperatorKind, type As TypeSymbol, left As BoundExpression, right As BoundExpression) As BoundBinaryOperator
Semantics\AccessCheck.vb (20)
64throughTypeOpt As TypeSymbol,
77throughTypeOpt As TypeSymbol,
92throughTypeOpt As TypeSymbol,
204throughTypeOpt As TypeSymbol,
278throughTypeOpt As TypeSymbol,
409Private Shared Function InheritsFromOrImplementsIgnoringConstruction(derivedType As TypeSymbol,
410baseType As TypeSymbol,
426Dim current As TypeSymbol = derivedType
487Private Shared Sub AddBaseInterfaces(derived As TypeSymbol, baseInterfaces As ArrayBuilder(Of NamedTypeSymbol), interfacesLookedAt As PooledHashSet(Of NamedTypeSymbol), basesBeingResolved As BasesBeingResolved)
493Dim candidates As ImmutableArray(Of TypeSymbol)
499candidates = ImmutableArray(Of TypeSymbol).CastUp(DirectCast(derived, NamedTypeSymbol).GetDeclaredInterfacesNoUseSiteDiagnostics(basesBeingResolved))
501candidates = ImmutableArray(Of TypeSymbol).CastUp(derived.InterfacesNoUseSiteDiagnostics)
562Public ExposedType As TypeSymbol
588exposedType As TypeSymbol,
1033base As TypeSymbol,
1052Dim exposedType As TypeSymbol = accessExposure.ExposedType.DigThroughArrayType()
1109TypeBehindParam As TypeSymbol,
1124Dim exposedType As TypeSymbol = accessExposure.ExposedType.DigThroughArrayType()
1155typeBehindMember As TypeSymbol,
1185Dim exposedType As TypeSymbol = accessExposure.ExposedType.DigThroughArrayType()
Semantics\Conversions.vb (123)
516Public Shared Function ClassifyPredefinedConversion(source As TypeSymbol, target As TypeSymbol) As ConversionKind?
685Private Shared Function FastClassifyPredefinedConversion(source As TypeSymbol, target As TypeSymbol) As ConversionKind?
702destination As TypeSymbol,
799sourceType As TypeSymbol,
800targetType As TypeSymbol,
871targetType As TypeSymbol
886targetType As TypeSymbol
910Public Shared Function ClassifyConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
930Public Shared Function ClassifyPredefinedConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
936destination As TypeSymbol,
987Dim sourceType As TypeSymbol = If(source.Kind = BoundKind.TupleLiteral,
1016Public 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)
1046Private Shared Function ClassifyExpressionReclassification(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1080Private Shared Function ClassifyUnboundLambdaConversion(source As UnboundLambda, destination As TypeSymbol) As ConversionKind
1140Public Shared Function ClassifyArrayLiteralConversion(source As BoundArrayLiteral, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1176Dim targetElementType As TypeSymbol = Nothing
1226Public Shared Function ClassifyInterpolatedStringConversion(source As BoundInterpolatedStringExpression, destination As TypeSymbol, binder As Binder) As ConversionKind
1239Public Shared Function ClassifyTupleConversion(source As BoundTupleLiteral, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1240If TypeSymbol.Equals(source.Type, destination, TypeCompareKind.ConsiderEverything) Then
1268Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = destination.GetElementTypesOfTupleOrCompatible()
1312Private Shared Function ClassifyArrayInitialization(source As BoundArrayInitialization, targetElementType As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1365Private Shared Function ClassifyAddressOfConversion(source As BoundAddressOfOperator, destination As TypeSymbol) As ConversionKind
1369Private Shared Function ClassifyQueryLambdaConversion(source As BoundQueryLambda, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1433booleanType As TypeSymbol,
1473Dim nullableOfBoolean As TypeSymbol = Nothing
1485nullableOfBoolean = nullableOfT.Construct(ImmutableArray.Create(Of TypeSymbol)(booleanType))
1530Private Shared Function ClassifyGroupTypeInferenceLambdaConversion(source As GroupTypeInferenceLambda, destination As TypeSymbol) As ConversionKind
1585Private Shared Function ClassifyNumericConstantConversion(constantExpression As BoundExpression, destination As TypeSymbol, binder As Binder) As ConversionKind
1592Dim targetDestinationType As TypeSymbol = destination.GetNullableUnderlyingTypeOrSelf()
1607Dim sourceType As TypeSymbol = constantExpression.Type
1699Private Shared Function ClassifyNothingLiteralConversion(constantExpression As BoundExpression, destination As TypeSymbol) As ConversionKind
1719source As TypeSymbol,
1720destination As TypeSymbol,
1787Public Shared Function ClassifyDirectCastConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1812Dim sourceType As TypeSymbol = source.Type
1826Public Shared Function ClassifyTryCastConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1843Public Shared Function ClassifyTryCastConversion(source As BoundExpression, destination As TypeSymbol, binder As Binder, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
1868Dim sourceType As TypeSymbol = source.Type
1882Private Shared Function ClassifyTryCastConversionForTypeParameters(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2030Private Shared Function ClassOrBasesSatisfyConstraints([class] As TypeSymbol, typeParam As TypeParameterSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
2031Dim candidate As TypeSymbol = [class]
2050Private Shared Function GetNonInterfaceTypeConstraintOrSelf(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
2084Private Shared Function ClassifyUserDefinedConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As KeyValuePair(Of ConversionKind, MethodSymbol)
2108Private 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)
2113Dim sourceType As TypeSymbol = source.Type
2193Public Shared Function ClassifyPredefinedConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2209Private Shared Function ClassifyPredefinedConversionSlow(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2267Private Shared Function AddDelegateRelaxationInformationForADelegate(source As TypeSymbol, destination As TypeSymbol, convKind As ConversionKind) As ConversionKind
2294Private Shared Function ClassifyIdentityConversion(source As TypeSymbol, destination As TypeSymbol) As ConversionKind
2310source As TypeSymbol,
2311destination As TypeSymbol,
2440source As TypeSymbol,
2441destination As TypeSymbol,
2515Public Shared Function HasWideningDirectCastConversionButNotEnumTypeConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
2765Dim sourceArguments As ImmutableArray(Of TypeSymbol) = source.TypeArgumentsWithDefinitionUseSiteDiagnostics(useSiteInfo)
2766Dim destinationArguments As ImmutableArray(Of TypeSymbol) = destination.TypeArgumentsWithDefinitionUseSiteDiagnostics(useSiteInfo)
2770Dim sourceArg As TypeSymbol = sourceArguments(i)
2771Dim destinationArg As TypeSymbol = destinationArguments(i)
2858candidate As TypeSymbol,
2901Private Shared Function IsClassType(type As TypeSymbol) As Boolean
2906Private Shared Function IsValueType(type As TypeSymbol) As Boolean
2911Private Shared Function IsDelegateType(type As TypeSymbol) As Boolean
2915Private Shared Function IsArrayType(type As TypeSymbol) As Boolean
2919Private Shared Function IsInterfaceType(type As TypeSymbol) As Boolean
2935Public Shared Function IsDerivedFrom(derivedType As TypeSymbol, baseType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
2943Private Shared Function ClassifyAnonymousDelegateConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
2990source As TypeSymbol,
2991destination As TypeSymbol,
3037Public Shared Function ClassifyArrayElementConversion(srcElem As TypeSymbol, dstElem As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3051srcElem As TypeSymbol,
3052dstElem As TypeSymbol,
3075srcElem As TypeSymbol,
3076dstElem As TypeSymbol,
3209Dim srcValueType As TypeSymbol = srcElem
3210Dim dstValueType As TypeSymbol = dstElem
3338Private Shared Function ArrayElementBitSize(type As TypeSymbol) As Integer
3353Private Shared Function GetValueTypeConstraint(typeParam As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
3364Private Shared Function GetNonErrorEnumUnderlyingType(type As TypeSymbol) As NamedTypeSymbol
3376Private Shared Function ClassifyValueTypeConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3457Private Shared Function ClassifyNullableConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3476Dim srcUnderlying As TypeSymbol = Nothing
3477Dim dstUnderlying As TypeSymbol = Nothing
3568Private Shared Function ClassifyTupleConversion(source As TypeSymbol, destination As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As ConversionKind
3581Dim targetElementTypes As ImmutableArray(Of TypeSymbol) = destination.GetElementTypesOfTupleOrCompatible()
3616Public Shared Function ClassifyStringConversion(source As TypeSymbol, destination As TypeSymbol) As ConversionKind
3622Dim shouldBeArray As TypeSymbol
3648source As TypeSymbol,
3649destination As TypeSymbol,
3704destination As TypeSymbol,
3726destination As TypeSymbol,
3774For Each constraint As TypeSymbol In typeParameter.ConstraintTypesWithDefinitionUseSiteDiagnostics(useSiteInfo)
3900source As TypeSymbol,
3939For Each constraint As TypeSymbol In typeParameter.ConstraintTypesWithDefinitionUseSiteDiagnostics(useSiteInfo)
4029returnTypeOfConvertFromMethod As TypeSymbol,
4031returnTypeOfConvertToMethod As TypeSymbol,
4043returnTypeOfConvertFromMethod As TypeSymbol,
4044returnTypeOfConvertToMethod As TypeSymbol,
4126delegateParameterType As TypeSymbol
4205Dim toParameterType As TypeSymbol = toMethodSignature.ParameterTypes(parameterIndex)
4206Dim lambdaParameterType As TypeSymbol = parameters(parameterIndex).Type
4251Dim operandType As TypeSymbol = conversion.Operand.Type
4555Public Overrides ReadOnly Property ElementType As TypeSymbol
4565Friend 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
3201Dim type1 As TypeSymbol = param1.Type
3206Dim type2 As TypeSymbol = Nothing
3227Dim returnType As TypeSymbol = method.ReturnType
3265Friend Shared Function CanLiftType(type As TypeSymbol) As Boolean
3269Friend Shared Function IsValidInLiftedSignature(type As TypeSymbol) As Boolean
3289Private ReadOnly _type As TypeSymbol
3291Public Sub New(parameter As ParameterSymbol, type As TypeSymbol)
3440Public Overrides ReadOnly Property Type As TypeSymbol
Semantics\OverloadResolution.vb (89)
34Friend MustOverride Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
85Public MustOverride ReadOnly Property ReturnType As TypeSymbol
135Public MustOverride ReadOnly Property ReceiverType As TypeSymbol
141Public MustOverride ReadOnly Property ReceiverTypeDefinition As TypeSymbol
160Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
180Public Overrides ReadOnly Property ReturnType As TypeSymbol
186Public Overrides ReadOnly Property ReceiverType As TypeSymbol
192Public Overrides ReadOnly Property ReceiverTypeDefinition As TypeSymbol
274For Each fixed As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In method.FixedTypeParameters
309Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
313Public Overrides ReadOnly Property ReceiverType As TypeSymbol
319Public Overrides ReadOnly Property ReceiverTypeDefinition As TypeSymbol
354Private ReadOnly _returnType As TypeSymbol
356Public Sub New(method As MethodSymbol, parameters As ImmutableArray(Of ParameterSymbol), returnType As TypeSymbol)
373Public Overrides ReadOnly Property ReturnType As TypeSymbol
399Friend Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
419Public Overrides ReadOnly Property ReturnType As TypeSymbol
425Public Overrides ReadOnly Property ReceiverType As TypeSymbol
431Public Overrides ReadOnly Property ReceiverTypeDefinition As TypeSymbol
923Optional delegateReturnType As TypeSymbol = Nothing,
931Dim typeArguments = If(methodGroup.TypeArgumentsOpt IsNot Nothing, methodGroup.TypeArgumentsOpt.Arguments, ImmutableArray(Of TypeSymbol).Empty)
935typeArguments = ImmutableArray(Of TypeSymbol).Empty
1110CollectOverloadedCandidates(binder, results, candidates, ImmutableArray(Of TypeSymbol).Empty,
1157delegateReturnType As TypeSymbol,
1588delegateReturnType As TypeSymbol,
1680delegateReturnType As TypeSymbol,
1793delegateReturnType As TypeSymbol,
1845delegateReturnType As TypeSymbol,
1943delegateReturnType As TypeSymbol,
2069delegateReturnType As TypeSymbol,
2155Dim leftParamType As TypeSymbol = GetParameterTypeFromVirtualSignature(left, left.ArgsToParamsOpt(k))
2156Dim rightParamType As TypeSymbol = GetParameterTypeFromVirtualSignature(right, right.ArgsToParamsOpt(k))
2177Dim leftType As TypeSymbol = left.Candidate.Parameters(k).Type
2178Dim rightType As TypeSymbol = right.Candidate.Parameters(k).Type
2297Dim leftParamType As TypeSymbol
2308Dim rightParamType As TypeSymbol
2374left As TypeSymbol,
2375right As TypeSymbol,
2509Dim argType As TypeSymbol = If(argument.Kind <> BoundKind.ArrayLiteral, argument.Type, DirectCast(argument, BoundArrayLiteral).InferredType)
2600Dim leftParamType As TypeSymbol
2611Dim rightParamType As TypeSymbol
2632leftParamType As TypeSymbol,
2633rightParamType As TypeSymbol,
2691delegateReturnType As TypeSymbol,
2897sourceType As TypeSymbol,
2898targetType As TypeSymbol
2908sourceType As TypeSymbol,
2909targetType As TypeSymbol,
3291Dim targetType As TypeSymbol = param.Type
3564targetType As TypeSymbol,
3643targetType As TypeSymbol,
3793targetType As TypeSymbol,
3851typeArguments As ImmutableArray(Of TypeSymbol),
3855delegateReturnType As TypeSymbol,
4058typeArguments As ImmutableArray(Of TypeSymbol),
4146typeArguments As ImmutableArray(Of TypeSymbol),
4150delegateReturnType As TypeSymbol,
4244typeArguments As ImmutableArray(Of TypeSymbol),
4248delegateReturnType As TypeSymbol,
4470Dim existingType As TypeSymbol = GetParameterTypeFromVirtualSignature(existingCandidate, existingParamIndex)
4471Dim newType As TypeSymbol = GetParameterTypeFromVirtualSignature(newCandidate, newParamIndex)
4493Dim existingType As TypeSymbol = existingCandidate.Candidate.Parameters(j).Type
4494Dim newType As TypeSymbol = newCandidate.Candidate.Parameters(j).Type
4656Dim leftParamType As TypeSymbol
4657Dim leftParamTypeForGenericityCheck As TypeSymbol = Nothing
4668Dim rightParamType As TypeSymbol
4669Dim rightParamTypeForGenericityCheck As TypeSymbol = Nothing
4758leftParamType As TypeSymbol,
4759rightParamType As TypeSymbol,
4836Dim leftParamType As TypeSymbol
4837Dim leftParamTypeForGenericityCheck As TypeSymbol = Nothing
4848Dim rightParamType As TypeSymbol
4849Dim rightParamTypeForGenericityCheck As TypeSymbol = Nothing
4900Private Shared Function CompareParameterTypeGenericDepth(leftType As TypeSymbol, rightType As TypeSymbol,
4952Dim leftTypeArguments As ImmutableArray(Of TypeSymbol) = leftNamedType.TypeArgumentsNoUseSiteDiagnostics
4953Dim rightTypeArguments As ImmutableArray(Of TypeSymbol) = rightNamedType.TypeArgumentsNoUseSiteDiagnostics
5060For Each argument As TypeSymbol In symbol.TypeArgumentsNoUseSiteDiagnostics
5102this As TypeSymbol,
5164Public Shared Function DoesReceiverMatchInstance(instanceType As TypeSymbol, receiverType As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
5203) As TypeSymbol
5204Dim paramType As TypeSymbol = candidate.Candidate.Parameters(paramIndex).Type
5218ByRef typeForGenericityCheck As TypeSymbol
5219) As TypeSymbol
5230Dim paramType As TypeSymbol = param.Type
5257delegateReturnType As TypeSymbol,
5271Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing
5359Private Shared Function ConstructIfNeedTo(candidate As Candidate, typeArguments As ImmutableArray(Of TypeSymbol)) As Candidate
Semantics\TypeInference\TypeArgumentInference.vb (65)
22delegateReturnType As TypeSymbol,
24ByRef typeArguments As ImmutableArray(Of TypeSymbol),
131Private _inferredType As TypeSymbol
138Private _candidateInferredType As TypeSymbol
150Public ReadOnly Property InferredType As TypeSymbol
156Public ReadOnly Property CandidateInferredType As TypeSymbol
174Public Sub RegisterInferredType(inferredType As TypeSymbol, inferredFromLocation As SyntaxNodeOrToken, inferredTypeByAssumption As Boolean)
293Dim firstInferredType As TypeSymbol = Nothing
355type As TypeSymbol,
412Public ReadOnly ParameterType As TypeSymbol
416Public Sub New(graph As InferenceGraph, expression As BoundExpression, parameterType As TypeSymbol, parameter As ParameterSymbol)
494Dim argumentType As TypeSymbol = Nothing
560Dim expressionType As TypeSymbol
608Public ReadOnly DelegateReturnType As TypeSymbol
626delegateReturnType As TypeSymbol,
700delegateReturnType As TypeSymbol,
702ByRef typeArguments As ImmutableArray(Of TypeSymbol),
874Dim inferredTypes(arity - 1) As TypeSymbol
883Dim inferredType As TypeSymbol = typeParameterNode.InferredType
924Dim targetType As TypeSymbol = param.Type
1020targetType As TypeSymbol,
1062parameterType As TypeSymbol,
1096Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1120parameterType As TypeSymbol,
1145parameterType As TypeSymbol,
1169ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, binder.Compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
1180parameterType As TypeSymbol,
1233ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, binder.Compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
1239Private Shared Function ArgumentTypePossiblyMatchesParamarrayShape(argument As BoundExpression, paramType As TypeSymbol) As Boolean
1240Dim argumentType As TypeSymbol = argument.Type
1277inferredType As TypeSymbol,
1292parameterType As TypeSymbol
1318Dim elementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1356argumentType As TypeSymbol,
1358parameterType As TypeSymbol,
1392Dim parameterElementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1393Dim argumentElementTypes As ImmutableArray(Of TypeSymbol) = Nothing
1607argumentType As TypeSymbol,
1609parameterType As TypeSymbol,
1767ByRef baseSearchType As TypeSymbol,
1768ByRef fixedType As TypeSymbol
1803Dim matchingBase As TypeSymbol = Nothing
1822Private Shared Function SetMatchIfNothingOrEqual(type As TypeSymbol, ByRef match As TypeSymbol) As Boolean
1837Private Function FindMatchingBaseInterface(derivedType As TypeSymbol, baseInterface As TypeSymbol, ByRef match As TypeSymbol) As Boolean
1870Private Function FindMatchingBaseClass(derivedType As TypeSymbol, baseClass As TypeSymbol, ByRef match As TypeSymbol) As Boolean
1909parameterType As TypeSymbol,
1924Dim returnType As TypeSymbol = invokeMethod.ReturnType
1954Dim targetReturnType As TypeSymbol = fromMethod.ReturnType
1980parameterType As TypeSymbol,
1989Dim anonymousLambdaType As TypeSymbol = Nothing
2053Dim returnType As TypeSymbol = invokeMethod.ReturnType
2111Dim lambdaReturnType As TypeSymbol
2134Dim returnTypeInfo As KeyValuePair(Of TypeSymbol, ReadOnlyBindingDiagnostic(Of AssemblySymbol)) = unboundLambda.InferReturnType(inferenceSignature)
2188Debug.Assert(TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T), TypeCompareKind.ConsiderEverything) OrElse
2189TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T), TypeCompareKind.ConsiderEverything) OrElse
2190TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T), TypeCompareKind.ConsiderEverything))
2238ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, argument.GetBinderFromLambda().Compilation.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
2246Public Function ConstructParameterTypeIfNeeded(parameterType As TypeSymbol) As TypeSymbol
2255Dim newType As TypeSymbol
Symbols\ArrayTypeSymbol.vb (21)
26Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, compilation As VisualBasicCompilation) As ArrayTypeSymbol
33Friend Shared Function CreateVBArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, declaringAssembly As AssemblySymbol) As ArrayTypeSymbol
42elementType As TypeSymbol,
67Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), compilation As VisualBasicCompilation) As ArrayTypeSymbol
71Friend Shared Function CreateSZArray(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), declaringAssembly As AssemblySymbol) As ArrayTypeSymbol
78Private Shared Function GetSZArrayInterfaces(elementType As TypeSymbol, declaringAssembly As AssemblySymbol) As ImmutableArray(Of NamedTypeSymbol)
167Public MustOverride ReadOnly Property ElementType As TypeSymbol
319Public NotOverridable Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
355Dim current As TypeSymbol = Me
365Friend MustOverride Function WithElementType(elementType As TypeSymbol) As ArrayTypeSymbol
388Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
477Private ReadOnly _elementType As TypeSymbol
481Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol)
496Public NotOverridable Overrides ReadOnly Property ElementType As TypeSymbol
551Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), systemArray As NamedTypeSymbol, interfaces As ImmutableArray(Of NamedTypeSymbol))
582Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
600Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol)
630Public Sub New(elementType As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier), rank As Integer, systemArray As NamedTypeSymbol)
634Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
653elementType As TypeSymbol,
686Friend Overrides Function WithElementType(newElementType As TypeSymbol) As ArrayTypeSymbol
Symbols\ConstraintsHelper.vb (19)
385type As TypeSymbol,
412type As TypeSymbol,
435Private ReadOnly s_checkConstraintsSingleTypeFunc As Func(Of TypeSymbol, CheckConstraintsDiagnosticsBuilders, Boolean) = AddressOf CheckConstraintsSingleType
437Private Function CheckConstraintsSingleType(type As TypeSymbol, diagnostics As CheckConstraintsDiagnosticsBuilders) As Boolean
618typeArguments As ImmutableArray(Of TypeSymbol),
648typeArgument As TypeSymbol,
762Public Function GetNonInterfaceConstraint(typeParameter As TypeParameterSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As TypeSymbol
763Dim result As TypeSymbol = Nothing
767Dim candidate As TypeSymbol = Nothing
797Dim result As TypeSymbol = Nothing
919typeArgument As TypeSymbol,
920constraintType As TypeSymbol,
934typeArgument As TypeSymbol,
992typeArgument As TypeSymbol,
1012typeArgument As TypeSymbol,
1019Dim containingType = TryCast(constructedSymbol, TypeSymbol)
1121Private Function IsNullableTypeOrTypeParameter(type As TypeSymbol, <[In], Out> ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol)) As Boolean
1207Private Function ContainsTypeConstraint(constraints As ArrayBuilder(Of TypeParameterConstraint), constraintType As TypeSymbol) As Boolean
1232Debug.Assert(Not TypeSymbol.Equals(type.ConstructedFrom, type, TypeCompareKind.ConsiderEverything))
Symbols\Metadata\PE\MemberRefMetadataDecoder.vb (22)
26Private ReadOnly _containingType As TypeSymbol
28Public Sub New(moduleSymbol As PEModuleSymbol, containingType As TypeSymbol)
41Protected Overrides Function GetGenericMethodTypeParamSymbol(position As Integer) As TypeSymbol
48Protected Overrides Function GetGenericTypeParamSymbol(position As Integer) As TypeSymbol
124Dim targetParamInfo As ParamInfo(Of TypeSymbol)() = Me.DecodeSignatureParametersOrThrow(signaturePointer, signatureHeader, typeParamCount)
133Dim fieldInfo As FieldInfo(Of TypeSymbol) = Me.DecodeFieldSignature(signaturePointer)
145Private Shared Function FindFieldBySignature(targetTypeSymbol As TypeSymbol, targetMemberName As String, fieldInfo As FieldInfo(Of TypeSymbol)) As FieldSymbol
147Dim type As TypeSymbol = Nothing
148Dim customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)) = Nothing
154TypeSymbol.Equals(field.Type, type, TypeCompareKind.AllIgnoreOptionsForVB) AndAlso
166Private Shared Function FindMethodBySignature(targetTypeSymbol As TypeSymbol, targetMemberName As String, targetMemberSignatureHeader As SignatureHeader, targetMemberTypeParamCount As Integer, targetParamInfo As ParamInfo(Of TypeSymbol)()) As MethodSymbol
184Private Shared Function MethodSymbolMatchesParamInfo(candidateMethod As MethodSymbol, targetParamInfo As ParamInfo(Of TypeSymbol)()) As Boolean
194candidateMethod = candidateMethod.Construct(StaticCast(Of TypeSymbol).From(IndexedTypeParameterSymbol.Take(candidateMethod.Arity)))
210Private Shared Function ParametersMatch(candidateParam As ParameterSymbol, ByRef targetParam As ParamInfo(Of TypeSymbol)) As Boolean
219If Not TypeSymbol.Equals(candidateParam.Type, targetParam.Type, TypeCompareKind.AllIgnoreOptionsForVB) Then
231Private Shared Function ReturnTypesMatch(candidateMethod As MethodSymbol, ByRef targetReturnParam As ParamInfo(Of TypeSymbol)) As Boolean
232Dim candidateReturnType As TypeSymbol = candidateMethod.ReturnType
233Dim targetReturnType As TypeSymbol = targetReturnParam.Type
236If Not TypeSymbol.Equals(candidateReturnType, targetReturnType, TypeCompareKind.AllIgnoreOptionsForVB) OrElse candidateMethod.ReturnsByRef <> targetReturnParam.IsByRef Then
248Private Shared Function CustomModifiersMatch(candidateReturnTypeCustomModifiers As ImmutableArray(Of CustomModifier), targetReturnTypeCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As Boolean
Symbols\Metadata\PE\MetadataDecoder.vb (26)
19Inherits MetadataDecoder(Of PEModuleSymbol, TypeSymbol, MethodSymbol, FieldSymbol, Symbol)
72Protected Overrides Function GetGenericMethodTypeParamSymbol(position As Integer) As TypeSymbol
87Protected Overrides Function GetGenericTypeParamSymbol(position As Integer) As TypeSymbol
105Protected Overrides Function GetTypeHandleToTypeMap() As ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol)
109Protected Overrides Function GetTypeRefHandleToTypeMap() As ConcurrentDictionary(Of TypeReferenceHandle, TypeSymbol)
114container As TypeSymbol,
116) As TypeSymbol
129) As TypeSymbol
145Protected Overrides Function LookupTopLevelTypeDefSymbol(moduleName As String, ByRef emittedName As MetadataTypeName, <Out> ByRef isNoPiaLocalType As Boolean) As TypeSymbol
171Protected Overloads Overrides Function LookupTopLevelTypeDefSymbol(ByRef emittedName As MetadataTypeName, <Out> ByRef isNoPiaLocalType As Boolean) As TypeSymbol
192Public Shared Function IsOrClosedOverATypeFromAssemblies(this As TypeSymbol, assemblies As ImmutableArray(Of AssemblySymbol)) As Boolean
242) As TypeSymbol
244Dim result As TypeSymbol
248Dim baseType As TypeSymbol = Nothing
273Dim cache As ConcurrentDictionary(Of TypeDefinitionHandle, TypeSymbol) = GetTypeHandleToTypeMap()
276Dim newresult As TypeSymbol = cache.GetOrAdd(typeDef, result)
290baseType As TypeSymbol,
421Protected Overrides Function FindMethodSymbolInType(typeSymbol As TypeSymbol, targetMethodDef As MethodDefinitionHandle) As MethodSymbol
446Protected Overrides Function FindFieldSymbolInType(typeSymbol As TypeSymbol, fieldDef As FieldDefinitionHandle) As FieldSymbol
459Friend Overrides Function GetSymbolForMemberRef(memberRef As MemberReferenceHandle, Optional scope As TypeSymbol = Nothing, Optional methodsOnly As Boolean = False) As Symbol
460Dim targetTypeSymbol As TypeSymbol = GetMemberRefTypeSymbol(memberRef)
468If scope IsNot Nothing AndAlso Not TypeSymbol.Equals(targetTypeSymbol, scope, TypeCompareKind.ConsiderEverything) AndAlso Not targetTypeSymbol.IsBaseTypeOrInterfaceOf(scope, CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
489Protected Overrides Sub EnqueueTypeSymbolInterfacesAndBaseTypes(typeDefsToSearch As Queue(Of TypeDefinitionHandle), typeSymbolsToSearch As Queue(Of TypeSymbol), typeSymbol As TypeSymbol)
497Protected Overrides Sub EnqueueTypeSymbol(typeDefsToSearch As Queue(Of TypeDefinitionHandle), typeSymbolsToSearch As Queue(Of TypeSymbol), typeSymbol As TypeSymbol)
Symbols\Metadata\PE\PEParameterSymbol.vb (13)
26Private ReadOnly _type As TypeSymbol
71ByRef parameter As ParamInfo(Of TypeSymbol),
82type As TypeSymbol,
103type As TypeSymbol,
138refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
139type As TypeSymbol,
141customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
157type As TypeSymbol,
215type As TypeSymbol,
237refCustomModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
238type As TypeSymbol,
240customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
466Public Overrides ReadOnly Property Type As TypeSymbol
Symbols\Metadata\PE\SymbolFactory.vb (25)
11Inherits SymbolFactory(Of PEModuleSymbol, TypeSymbol)
18elementType As TypeSymbol,
19customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol)),
22) As TypeSymbol
33Friend Overrides Function GetSpecialType(moduleSymbol As PEModuleSymbol, specialType As SpecialType) As TypeSymbol
37Friend Overrides Function GetSystemTypeSymbol(moduleSymbol As PEModuleSymbol) As TypeSymbol
41Friend Overrides Function GetEnumUnderlyingType(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As TypeSymbol
45Friend Overrides Function GetPrimitiveTypeCode(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As Microsoft.Cci.PrimitiveTypeCode
49Friend Overrides Function GetSZArrayTypeSymbol(moduleSymbol As PEModuleSymbol, elementType As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol
60Friend Overrides Function GetUnsupportedMetadataTypeSymbol(moduleSymbol As PEModuleSymbol, exception As BadImageFormatException) As TypeSymbol
64Friend Overrides Function MakePointerTypeSymbol(moduleSymbol As PEModuleSymbol, type As TypeSymbol, customModifiers As ImmutableArray(Of ModifierInfo(Of TypeSymbol))) As TypeSymbol
70genericTypeDef As TypeSymbol,
71arguments As ImmutableArray(Of KeyValuePair(Of TypeSymbol, ImmutableArray(Of ModifierInfo(Of TypeSymbol)))),
73) As TypeSymbol
140Return DirectCast(constructedType, TypeSymbol)
143Friend Overrides Function MakeUnboundIfGeneric(moduleSymbol As PEModuleSymbol, type As TypeSymbol) As TypeSymbol
148Friend Overrides Function MakeFunctionPointerTypeSymbol(moduleSymbol As PEModuleSymbol, callingConvention As Cci.CallingConvention, retAndParamTypes As ImmutableArray(Of ParamInfo(Of TypeSymbol))) As TypeSymbol
Symbols\MethodSymbol.vb (15)
75Public MustOverride ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol)
153Public MustOverride ReadOnly Property ReturnType As TypeSymbol
569Dim returnType As TypeSymbol = Me.ReturnType
611Protected Sub CheckCanConstructAndTypeArguments(typeArguments As ImmutableArray(Of TypeSymbol))
622Public Overridable Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As MethodSymbol
637Public Function Construct(ParamArray typeArguments() As TypeSymbol) As MethodSymbol
713Dim unificationCheckedTypes As HashSet(Of TypeSymbol) = Nothing
783Public Overridable ReadOnly Property ReceiverType As TypeSymbol
797Public Overridable Function GetTypeInferredDuringReduction(reducedFromTypeParameter As TypeParameterSymbol) As TypeSymbol
804Friend Overridable ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol))
806Return ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty
817Friend Function ReduceExtensionMethod(instanceType As TypeSymbol, proximity As Integer, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol
825Public Function ReduceExtensionMethod(instanceType As TypeSymbol, ByRef useSiteInfo As CompoundUseSiteInfo(Of AssemblySymbol), languageVersion As LanguageVersion) As MethodSymbol
1002Return Me.ReduceExtensionMethod(receiverType.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(receiverType)), CompoundUseSiteInfo(Of AssemblySymbol).Discarded, LanguageVersion.Latest)
1177Return Construct(DirectCast(typeArguments, TypeSymbol()))
Symbols\ReducedExtensionMethodSymbol.vb (32)
22Private ReadOnly _receiverType As TypeSymbol
24Private ReadOnly _fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol))
28Private _lazyReturnType As TypeSymbol
36instanceType As TypeSymbol,
63Dim receiverType As TypeSymbol = possiblyExtensionMethod.Parameters(0).Type
69Dim fixWithArray As ImmutableArray(Of TypeSymbol) = Nothing
78Dim typeArguments As ImmutableArray(Of TypeSymbol) = Nothing
126Dim fixWith = ArrayBuilder(Of TypeSymbol).GetInstance(toFixCount)
189Dim fixedTypeParameters = ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).Empty
192Dim fixed = ArrayBuilder(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)).GetInstance(typeParametersToFixArray.Length)
195fixed.Add(New KeyValuePair(Of TypeParameterSymbol, TypeSymbol)(typeParametersToFixArray(i), fixWithArray(i)))
207receiverType As TypeSymbol,
209fixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol)),
230Dim curryTypeArguments(curriedFromMethod.Arity - 1) As TypeSymbol
236Dim fixed As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) = fixedTypeParameters(i)
264Public Overrides ReadOnly Property ReceiverType As TypeSymbol
270Friend Overrides ReadOnly Property FixedTypeParameters As ImmutableArray(Of KeyValuePair(Of TypeParameterSymbol, TypeSymbol))
276Public Overrides Function GetTypeInferredDuringReduction(reducedFromTypeParameter As TypeParameterSymbol) As TypeSymbol
285For Each pair As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In _fixedTypeParameters
286If TypeSymbol.Equals(pair.Key, reducedFromTypeParameter, TypeCompareKind.ConsiderEverything) Then
310Dim resultTypeArguments(_curriedFromMethod.Arity - 1) As TypeSymbol
312For Each pair As KeyValuePair(Of TypeParameterSymbol, TypeSymbol) In _fixedTypeParameters
377Public Overrides ReadOnly Property TypeArguments As ImmutableArray(Of TypeSymbol)
379Return StaticCast(Of TypeSymbol).From(_curriedTypeParameters)
389Public Overrides ReadOnly Property ReturnType As TypeSymbol
392Dim type As TypeSymbol = _curriedFromMethod.ReturnType
725Friend Overrides ReadOnly Property ConstraintTypesNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
822Public Overrides Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
844Private _lazyType As TypeSymbol
857Public Overrides ReadOnly Property Type As TypeSymbol
861Dim paramType As TypeSymbol = m_CurriedFromParameter.Type
893Public MustOverride Overrides ReadOnly Property Type As TypeSymbol
Symbols\Retargeting\RetargetingSymbolTranslator.vb (20)
136Return marshallingInfo.WithTranslatedTypes(Of TypeSymbol, RetargetingSymbolTranslator)(
137Function(type, translator) translator.Retarget(DirectCast(type, TypeSymbol), RetargetOptions.RetargetPrimitiveTypesByTypeCode), Me)
140Public Function Retarget(symbol As TypeSymbol, options As RetargetOptions) As TypeSymbol
141Return DirectCast(symbol.Accept(Me, options), TypeSymbol)
317Dim cached As TypeSymbol = Nothing
451Dim newArg = New TypeWithModifiers(DirectCast(arg.Type.Accept(Me, RetargetOptions.RetargetPrimitiveTypesByTypeCode), TypeSymbol),
454If Not anythingRetargeted AndAlso (modifiersHaveChanged OrElse Not TypeSymbol.Equals(newArg.Type, arg.Type, TypeCompareKind.ConsiderEverything)) Then
542Private Function IsOrClosedOverAnExplicitLocalType(symbol As TypeSymbol) As Boolean
586Dim oldElement As TypeSymbol = type.ElementType
587Dim newElement As TypeSymbol = Retarget(oldElement, RetargetOptions.RetargetPrimitiveTypesByTypeCode)
721Dim oldConstantType As TypeSymbol = DirectCast(oldConstant.TypeInternal, TypeSymbol)
722Dim newConstantType As TypeSymbol = If(oldConstantType Is Nothing,
739newConstantValue = Retarget(DirectCast(oldConstantValue, TypeSymbol), RetargetOptions.RetargetPrimitiveTypesByTypeCode)
852Public Function Retarget(sequence As ImmutableArray(Of TypeSymbol)) As ImmutableArray(Of TypeSymbol)
853Dim result = ArrayBuilder(Of TypeSymbol).GetInstance(sequence.Length)
855For Each ts As TypeSymbol In sequence
1055If TypeSymbol.Equals(retargetedEvent.Type, retargetedEventType, TypeCompareKind.ConsiderEverything) Then
Symbols\SignatureOnlyMethodSymbol.vb (6)
22Private ReadOnly _containingType As TypeSymbol
28Private ReadOnly _returnType As TypeSymbol
34Public Sub New(ByVal name As String, ByVal m_containingType As TypeSymbol, ByVal methodKind As MethodKind, ByVal callingConvention As CallingConvention, ByVal typeParameters As ImmutableArray(Of TypeParameterSymbol), ByVal parameters As ImmutableArray(Of ParameterSymbol),
35ByVal returnsByRef As Boolean, ByVal returnType As TypeSymbol, ByVal returnTypeCustomModifiers As ImmutableArray(Of CustomModifier), refCustomModifiers As ImmutableArray(Of CustomModifier),
88Public Overrides ReadOnly Property ReturnType() As TypeSymbol
180Public Overrides ReadOnly Property TypeArguments() As ImmutableArray(Of TypeSymbol)
Symbols\Source\LocalSymbol.vb (23)
25Private _lazyType As TypeSymbol
48type As TypeSymbol) As LocalSymbol
61type As TypeSymbol,
70Friend Shared Function Create(originalVariable As LocalSymbol, type As TypeSymbol) As LocalSymbol
102Friend Sub New(container As Symbol, type As TypeSymbol)
123Public Overridable ReadOnly Property Type As TypeSymbol
152Public Sub SetType(type As TypeSymbol)
162Friend Overridable Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
493type As TypeSymbol)
604Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
606Dim type As TypeSymbol = ComputeTypeInternal(If(containingBinder, _binder))
610Friend Overridable Function ComputeTypeInternal(containingBinder As Binder) As TypeSymbol
650type As TypeSymbol,
694Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol
696Dim type As TypeSymbol = Nothing
762Friend Overrides Function ComputeType(Optional containingBinder As Binder = Nothing) As TypeSymbol
768Dim type As TypeSymbol = Nothing
812Public Sub New(value As ConstantValue, type As TypeSymbol, expression As BoundExpression, diagnostics As ReadOnlyBindingDiagnostic(Of AssemblySymbol))
848Friend Overrides Function ComputeTypeInternal(localBinder As Binder) As TypeSymbol
850Dim declType As TypeSymbol = Nothing
851Dim type As TypeSymbol = Nothing
918Private Sub SetConstantExpression(type As TypeSymbol, constantValue As ConstantValue, expression As BoundExpression, diagnostics As ReadOnlyBindingDiagnostic(Of AssemblySymbol))
947Public Sub New(originalVariable As LocalSymbol, type As TypeSymbol)
Symbols\Source\SourceDelegateMethodSymbol.vb (13)
27Private ReadOnly _returnType As TypeSymbol
33returnType As TypeSymbol)
48Public Overrides ReadOnly Property ReturnType As TypeSymbol
79Dim returnType As TypeSymbol = BindReturnType(syntax, binder, diagnostics)
109Private Shared Function BindReturnType(syntax As VisualBasicSyntaxNode, binder As Binder, diagnostics As BindingDiagnosticBag) As TypeSymbol
216voidType As TypeSymbol,
217objectType As TypeSymbol,
218intPtrType As TypeSymbol,
249returnType As TypeSymbol,
276iAsyncResultType As TypeSymbol,
277objectType As TypeSymbol,
278asyncCallbackType As TypeSymbol,
324iAsyncResultType As TypeSymbol,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (29)
491If TypeSymbol.Equals(iface, implementedInterface, TypeCompareKind.ConsiderEverything) Then
575type As TypeSymbol,
612type As TypeSymbol,
1044For Each constraint As TypeSymbol In param.ConstraintTypesNoUseSiteDiagnostics
1110Dim type As TypeSymbol = [event].Type
3001If Not Equals(TryCast(sym, TypeSymbol), type, TypeCompareKind.ConsiderEverything) Then
3046Dim asType = TryCast(firstAssociatedSymbol, TypeSymbol)
3796Debug.Assert(Not TypeSymbol.Equals([interface], other, TypeCompareKind.ConsiderEverything))
3822Debug.Assert(interface2.IsGenericType AndAlso TypeSymbol.Equals(interface1.OriginalDefinition, interface2.OriginalDefinition, TypeCompareKind.ConsiderEverything))
3913If (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3917ElseIf (Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3922ElseIf (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3928Debug.Assert(Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything))
3994If (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
3998ElseIf (Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
4003ElseIf (TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything)) Then
4009Debug.Assert(Not TypeSymbol.Equals(directInterface1, interface1, TypeCompareKind.ConsiderEverything) AndAlso Not TypeSymbol.Equals(directInterface2, interface2, TypeCompareKind.ConsiderEverything))
4066Inherits EqualityComparer(Of TypeSymbol)
4080Public Overrides Function Equals(type1 As TypeSymbol, type2 As TypeSymbol) As Boolean
4086Public Overrides Function GetHashCode(obj As TypeSymbol) As Integer
Symbols\Source\SourceNamedTypeSymbol.vb (11)
65Private _lazyCoClassType As TypeSymbol = ErrorTypeSymbol.UnknownResultType
887Dim constraintTypes1 = New HashSet(Of TypeSymbol)
1227Dim interfacesInThisPartial As New HashSet(Of TypeSymbol)()
1347If TypeSymbol.Equals(bt, base, TypeCompareKind.ConsiderEverything) Then
1840Debug.Assert(TypeSymbol.Equals(underlyingType, Me._lazyEnumUnderlyingType, TypeCompareKind.ConsiderEverything))
2012Friend Overrides ReadOnly Property CoClassType As TypeSymbol
2016Interlocked.CompareExchange(_lazyCoClassType, Nothing, DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
2023DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
2301Debug.Assert(DirectCast(argument.TypeInternal, TypeSymbol).Equals(DeclaringCompilation.GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything))
2308DirectCast(argument.ValueInternal, TypeSymbol),
2309DirectCast(ErrorTypeSymbol.UnknownResultType, TypeSymbol))
Symbols\Symbol.vb (12)
991Friend Function DeriveUseSiteInfoFromType(type As TypeSymbol) As UseSiteInfo(Of AssemblySymbol)
1127Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(Of T As TypeSymbol)(types As ImmutableArray(Of T), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1138Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(modifiers As ImmutableArray(Of CustomModifier), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1140Dim info = DirectCast(modifier.Modifier, TypeSymbol).GetUnificationUseSiteDiagnosticRecursive(owner, checkedTypes)
1149Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(parameters As ImmutableArray(Of ParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1163Friend Overloads Shared Function GetUnificationUseSiteDiagnosticRecursive(typeParameters As ImmutableArray(Of TypeParameterSymbol), owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1372Protected Shared Function ConstructTypeArguments(ParamArray typeArguments() As ITypeSymbol) As ImmutableArray(Of TypeSymbol)
1373Dim builder = ArrayBuilder(Of TypeSymbol).GetInstance(typeArguments.Length)
1375builder.Add(typeArg.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(typeArguments)))
1380Protected Shared Function ConstructTypeArguments(typeArguments As ImmutableArray(Of ITypeSymbol), typeArgumentNullableAnnotations As ImmutableArray(Of CodeAnalysis.NullableAnnotation)) As ImmutableArray(Of TypeSymbol)
1390Return typeArguments.SelectAsArray(Function(typeArg) typeArg.EnsureVbSymbolOrNothing(Of TypeSymbol)(NameOf(typeArguments)))
Symbols\SynthesizedSymbols\SynthesizedIntrinsicOperatorSymbol.vb (9)
13Private ReadOnly _returnType As TypeSymbol
15Public Sub New(container As NamedTypeSymbol, name As String, rightType As TypeSymbol, returnType As TypeSymbol)
24Public Sub New(container As NamedTypeSymbol, name As String, returnType As TypeSymbol)
60Public Overrides ReadOnly Property ReturnType As TypeSymbol
79TypeSymbol.Equals(m_containingType, other.m_containingType, TypeCompareKind.ConsiderEverything) AndAlso
80TypeSymbol.Equals(_returnType, other._returnType, TypeCompareKind.ConsiderEverything) Then
83If Not TypeSymbol.Equals(_parameters(i).Type, other._parameters(i).Type, TypeCompareKind.ConsiderEverything) Then
191Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String)
Symbols\SynthesizedSymbols\SynthesizedParameterSymbol.vb (9)
21Protected ReadOnly _type As TypeSymbol
32Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, name As String)
232Public NotOverridable Overrides ReadOnly Property Type As TypeSymbol
274Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, Optional name As String = "")
286Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, isOptional As Boolean, defaultValue As ConstantValue)
294Public Shared Function Create(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String,
306Dim valueParameterType As TypeSymbol = propertySymbol.Type
392Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String,
427Public Sub New(container As MethodSymbol, type As TypeSymbol, ordinal As Integer, isByRef As Boolean, name As String, location As Location)
Symbols\Tuples\TupleTypeSymbol.vb (24)
43Private ReadOnly _elementTypes As ImmutableArray(Of TypeSymbol)
83Public Overrides ReadOnly Property TupleElementTypes As ImmutableArray(Of TypeSymbol)
221Friend Overrides ReadOnly Property TypeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol)
223Return ImmutableArray(Of TypeSymbol).Empty
338elementNames As ImmutableArray(Of String), elementTypes As ImmutableArray(Of TypeSymbol),
347elementTypes As ImmutableArray(Of TypeSymbol), errorPositions As ImmutableArray(Of Boolean))
366elementTypes As ImmutableArray(Of TypeSymbol),
418Dim elementTypes As ImmutableArray(Of TypeSymbol)
421Dim tupleElementTypes As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics(TupleTypeSymbol.RestPosition - 1).TupleElementTypes
422Dim instance As ArrayBuilder(Of TypeSymbol) = ArrayBuilder(Of TypeSymbol).GetInstance(TupleTypeSymbol.RestPosition - 1 + tupleElementTypes.Length)
466Dim typeArgumentsNoUseSiteDiagnostics As ImmutableArray(Of TypeSymbol) = tupleCompatibleType.TypeArgumentsNoUseSiteDiagnostics
517Friend Shared Sub AddElementTypes(underlyingTupleType As NamedTypeSymbol, tupleElementTypes As ArrayBuilder(Of TypeSymbol))
548Private Shared Function GetTupleUnderlyingType(elementTypes As ImmutableArray(Of TypeSymbol), syntax As SyntaxNode, compilation As VisualBasicCompilation, diagnostics As BindingDiagnosticBag) As NamedTypeSymbol
559Dim namedTypeSymbol As NamedTypeSymbol = wellKnownType.Construct(ImmutableArray.Create(Of TypeSymbol)(elementTypes, (chainLength - 1) * (TupleTypeSymbol.RestPosition - 1), remainder))
568Dim typeArguments As ImmutableArray(Of TypeSymbol) = ImmutableArray.Create(Of TypeSymbol)(elementTypes, ([loop] - 1) * (TupleTypeSymbol.RestPosition - 1), TupleTypeSymbol.RestPosition - 1).Add(namedTypeSymbol)
976Public Overrides Function Equals(obj As TypeSymbol, comparison As TypeCompareKind) As Boolean
1027Friend Overrides Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
1063Public Shared Function TransformToTupleIfCompatible(target As TypeSymbol) As TypeSymbol
1064Dim result As TypeSymbol
1073Public Overrides Function Construct(typeArguments As ImmutableArray(Of TypeSymbol)) As NamedTypeSymbol
1111Friend Shared Sub ReportNamesMismatchesIfAny(destination As TypeSymbol, literal As BoundTupleLiteral, diagnostics As BindingDiagnosticBag)
Symbols\TypeSubstitution.vb (10)
154Public Function GetTypeArgumentsFor(originalDefinition As NamedTypeSymbol, <Out> ByRef hasTypeArgumentsCustomModifiers As Boolean) As ImmutableArray(Of TypeSymbol)
160Dim result = ArrayBuilder(Of TypeSymbol).GetInstance(originalDefinition.Arity, fillWithValue:=Nothing)
244Dim value As TypeSymbol = pair.Value.Type
379args() As TypeSymbol,
480Private Shared ReadOnly s_withoutModifiers As Func(Of TypeSymbol, TypeWithModifiers) = Function(arg) New TypeWithModifiers(arg)
485args As ImmutableArray(Of TypeSymbol),
497args As ImmutableArray(Of TypeSymbol),
861Public Function SubstituteCustomModifiers(type As TypeSymbol, customModifiers As ImmutableArray(Of CustomModifier)) As ImmutableArray(Of CustomModifier)
879If Not TypeSymbol.Equals(modifier, substituted, TypeCompareKind.ConsiderEverything) Then
888If Not TypeSymbol.Equals(modifier, substituted, TypeCompareKind.ConsiderEverything) Then
Symbols\TypeSymbol.vb (20)
34Private Shared ReadOnly s_EmptyTypeSymbols() As TypeSymbol = Array.Empty(Of TypeSymbol)
59Public Shared ReadOnly Property EmptyTypeSymbolsList As IList(Of TypeSymbol)
70Public Shadows ReadOnly Property OriginalDefinition As TypeSymbol
76Protected Overridable ReadOnly Property OriginalTypeSymbolDefinition As TypeSymbol
316Public Overloads Shared Operator =(left As TypeSymbol, right As TypeSymbol) As Boolean
321Public Overloads Shared Operator <>(left As TypeSymbol, right As TypeSymbol) As Boolean
326Public Overloads Shared Operator =(left As Symbol, right As TypeSymbol) As Boolean
331Public Overloads Shared Operator <>(left As Symbol, right As TypeSymbol) As Boolean
336Public Overloads Shared Operator =(left As TypeSymbol, right As Symbol) As Boolean
341Public Overloads Shared Operator <>(left As TypeSymbol, right As Symbol) As Boolean
345Public Overloads Shared Function Equals(left As TypeSymbol, right As TypeSymbol, comparison As TypeCompareKind) As Boolean
350Return Equals(TryCast(obj, TypeSymbol), TypeCompareKind.ConsiderEverything)
354Return Equals(TryCast(other, TypeSymbol), compareKind)
359Public MustOverride Overloads Function Equals(other As TypeSymbol, comparison As TypeCompareKind) As Boolean
474Public Overridable ReadOnly Property TupleElementTypes() As ImmutableArray(Of TypeSymbol)
534Friend MustOverride Overloads Function GetUnificationUseSiteDiagnosticRecursive(owner As Symbol, ByRef checkedTypes As HashSet(Of TypeSymbol)) As DiagnosticInfo
Symbols\TypeSymbolExtensions.vb (148)
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
1302Friend Function IsWellKnownTypeLock(typeSymbol As TypeSymbol) As Boolean
1313Friend Function IsWellKnownTypeUnmanagedType(typeSymbol As TypeSymbol) As Boolean
1323Private Function IsWellKnownCompilerServicesTopLevelType(typeSymbol As TypeSymbol, name As String) As Boolean
1332Friend Function IsCompilerServicesTopLevelType(typeSymbol As TypeSymbol) As Boolean
1337Friend Function IsMicrosoftCodeAnalysisEmbeddedAttribute(typeSymbol As TypeSymbol) As Boolean
1348Private Function IsContainedInNamespace(typeSymbol As TypeSymbol, outerNS As String, midNS As String, Optional innerNS As String = Nothing) As Boolean
Symbols\WellKnownMembers.vb (30)
343Return TypeSymbol.Equals(DirectCast(type, TypeSymbol), GetWellKnownType(WellKnownType.System_Type), TypeCompareKind.ConsiderEverything)
422ByVal comparer As SignatureComparer(Of MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol),
522Inherits SignatureComparer(Of MethodSymbol, FieldSymbol, PropertySymbol, TypeSymbol, ParameterSymbol)
529Protected Overrides Function GetMDArrayElementType(type As TypeSymbol) As TypeSymbol
543Protected Overrides Function MatchArrayRank(type As TypeSymbol, countOfDimensions As Integer) As Boolean
557Protected Overrides Function GetSZArrayElementType(type As TypeSymbol) As TypeSymbol
571Protected Overrides Function GetFieldType(field As FieldSymbol) As TypeSymbol
575Protected Overrides Function GetPropertyType(prop As PropertySymbol) As TypeSymbol
579Protected Overrides Function GetGenericTypeArgument(ByVal type As TypeSymbol, ByVal argumentIndex As Integer) As TypeSymbol
598Protected Overrides Function GetGenericTypeDefinition(type As TypeSymbol) As TypeSymbol
625Protected Overrides Function GetParamType(ByVal parameter As ParameterSymbol) As TypeSymbol
629Protected Overrides Function GetPointedToType(type As TypeSymbol) As TypeSymbol
633Protected Overrides Function GetReturnType(method As MethodSymbol) As TypeSymbol
649Protected Overrides Function IsGenericMethodTypeParam(type As TypeSymbol, paramPosition As Integer) As Boolean
663Protected Overrides Function IsGenericTypeParam(type As TypeSymbol, paramPosition As Integer) As Boolean
677Protected Overrides Function MatchTypeToTypeId(type As TypeSymbol, typeId As Integer) As Boolean
691Protected Overrides Function MatchTypeToTypeId(type As TypeSymbol, typeId As Integer) As Boolean
701Friend Function SynthesizeTupleNamesAttribute(type As TypeSymbol) As SynthesizedAttributeData
717Public Shared Function Encode(type As TypeSymbol) As ImmutableArray(Of String)
728Public Shared Function Encode(type As TypeSymbol, stringType As TypeSymbol) As ImmutableArray(Of TypedConstant)
745Friend Shared Function TryGetNames(type As TypeSymbol, namesBuilder As ArrayBuilder(Of String)) As Boolean
746type.VisitType(Function(t As TypeSymbol, builder As ArrayBuilder(Of String)) AddNames(t, builder), namesBuilder)
750Private Shared Function AddNames(type As TypeSymbol, namesBuilder As ArrayBuilder(Of String)) As Boolean
Utilities\TypeUnification.vb (7)
17Public Shared Function CanUnify(containingGenericType As NamedTypeSymbol, t1 As TypeSymbol, t2 As TypeSymbol) As Boolean
22If TypeSymbol.Equals(t1, t2, TypeCompareKind.ConsiderEverything) Then
122Return Not nt2.IsGenericType AndAlso TypeSymbol.Equals(nt1, nt2, TypeCompareKind.ConsiderEverything)
128If nt2.Arity <> arity OrElse Not TypeSymbol.Equals(nt2.OriginalDefinition, nt1.OriginalDefinition, TypeCompareKind.ConsiderEverything) Then
239Private Shared Function Contains(type As TypeSymbol, typeParam As TypeParameterSymbol) As Boolean
258Return TypeSymbol.Equals(type, typeParam, TypeCompareKind.ConsiderEverything)