162 references to Compilation
Microsoft.CodeAnalysis.VisualBasic (162)
Binding\Binder.vb (13)
70
_compilation = containingBinder.
Compilation
347
Return If(TryCast(containingMember, ModuleSymbol), If(containingMember?.ContainingModule, Me.
Compilation
.SourceModule))
429
Return GetSpecialType(
Compilation
, typeId, node, diagBag, reportedAnError, suppressUseSiteError:=False)
438
Return GetSpecialType(
Compilation
, typeId, node, diagBag, reportedAnError, suppressUseSiteError)
470
Return GetWellKnownType(Me.
Compilation
, type, syntax, diagBag)
500
Dim rootNamespace = Me.
Compilation
.Options.RootNamespace
537
Not TypeSymbol.Equals(DirectCast(parameterType, NamedTypeSymbol).TypeArgumentsNoUseSiteDiagnostics(0), Me.
Compilation
.GetWellKnownType(WellKnownType.System_Xml_Linq_XElement), TypeCompareKind.ConsiderEverything) Then
592
Return GetWellKnownTypeMember(Me.
Compilation
, member, syntax, diagBag)
938
If container IsNot Nothing AndAlso container <>
Compilation
.Assembly AndAlso container <>
Compilation
.Assembly.CorLibrary Then
956
Compilation
.SourceModule IsNot symbol.ContainingModule AndAlso
963
ElseIf Not
Compilation
.Assembly.RuntimeSupportsDefaultInterfaceImplementation Then
1081
Dim ctor As Symbol = GetWellKnownTypeMember(Me.
Compilation
, attributeCtor, useSiteInfo)
Binding\Binder_AnonymousTypes.vb (1)
46
Me.
Compilation
.AnonymousTypeManager.ConstructAnonymousTypeSymbol(typeDescr)
Binding\Binder_Attributes.vb (11)
83
Return New SourceAttributeData(
Compilation
, node.GetReference(), DirectCast(boundAttribute.Type, NamedTypeSymbol), boundAttribute.Constructor, args, namedArgs, isConditionallyOmitted, hasErrors:=visitor.HasErrors)
190
Dim localUseSiteInfo = If(useSiteInfo.AccumulatesDependencies, New CompoundUseSiteInfo(Of AssemblySymbol)(
Compilation
.Assembly), CompoundUseSiteInfo(Of AssemblySymbol).DiscardedDependencies)
201
ElseIf Not
Compilation
.GetWellKnownType(WellKnownType.System_Attribute).IsBaseTypeOf(namedType, localUseSiteInfo) Then
488
AccessCheck.GetAccessibilityForErrorMessage(setMethod, Me.
Compilation
.Assembly)))
565
If (Me.
Compilation
.EmbeddedSymbolManager.Embedded <> 0) AndAlso Not expression.HasErrors Then
569
Me.
Compilation
.ContainsSyntaxTree(expression.Syntax.SyntaxTree) Then
598
Debug.Assert(sourceType.ContainingAssembly Is Me.
Compilation
.Assembly)
600
Me.
Compilation
.EmbeddedSymbolManager.MarkSymbolAsReferenced(sourceType)
657
Return type.IsValidTypeForAttributeArgument(Me.
Compilation
)
798
ReportDiagnostic(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, If(conv.Operand.Type, _binder.
Compilation
.GetSpecialType(SpecialType.System_Object)), conv.Type)
884
Dim kind = TypedConstant.GetTypedConstantKind(type, _binder.
Compilation
)
Binding\Binder_Conversions.vb (12)
389
Dim nullableOfT As NamedTypeSymbol =
Compilation
.GetSpecialType(SpecialType.System_Nullable_T)
390
intermediateTargetType =
Compilation
.GetSpecialType(SpecialType.System_Nullable_T).
715
targetGenericDefinition Is
Compilation
.GetWellKnownType(WellKnownType.System_Collections_Generic_List_T) OrElse
716
targetGenericDefinition Is
Compilation
.GetWellKnownType(WellKnownType.System_Collections_ObjectModel_Collection_T) OrElse
717
targetGenericDefinition Is
Compilation
.GetWellKnownType(WellKnownType.System_Collections_ObjectModel_ReadOnlyCollection_T) Then
745
Dim iEnumerable_T As NamedTypeSymbol =
Compilation
.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T)
934
targetType.ContainingModule Is
Compilation
.SourceModule Then
1383
If(targetDelegateType.TypeKind = TypeKind.Delegate AndAlso targetDelegateType.IsFromCompilation(Me.
Compilation
),
1435
If(targetDelegateType.TypeKind = TypeKind.Delegate AndAlso targetDelegateType.IsFromCompilation(Me.
Compilation
),
1620
Debug.Assert(targetType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_IFormattable)) OrElse targetType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_FormattableString)))
1748
Return type.IsOrImplementsIEnumerableOfXElement(
Compilation
, useSiteInfo)
Binding\Binder_Delegates.vb (1)
1252
warnIfResultOfAsyncMethodIsDroppedDueToRelaxation = method.ContainingAssembly Is
Compilation
.Assembly
Binding\Binder_Expressions.vb (9)
51
Dim compilation As VisualBasicCompilation = Me.
Compilation
206
Return New BoundNamespaceExpression(node, Nothing,
Compilation
.GlobalNamespace)
393
Dim disallowInferredNames = Me.
Compilation
.LanguageVersion.DisallowInferredTupleElementNames()
395
inferredType = TupleTypeSymbol.Create(node.GetLocation, elements, locations, elementNames, Me.
Compilation
,
1546
sourceType = ArrayTypeSymbol.CreateVBArray(targetElementType, Nothing, 1,
Compilation
)
1894
Return If(Me.
Compilation
.FeatureStrictEnabled,
2525
If IdentifierComparison.Equals(MissingRuntimeMemberDiagnosticHelper.MyVBNamespace, name) AndAlso Me.
Compilation
.Options.EmbedVbCoreRuntime Then
3409
If Not AddReceiverNamespaces(namespaces, candidate, Me.
Compilation
) Then
4120
Dim inferredArrayType = ArrayTypeSymbol.CreateVBArray(inferredElementType, Nothing, knownSizes.Length,
Compilation
)
Binding\Binder_Imports.vb (2)
107
Dim conflictsWith = binder.
Compilation
.GlobalNamespace.GetMembers(aliasText)
133
Dim aliasSymbol = New AliasSymbol(binder.
Compilation
,
Binding\Binder_Initializers.vb (1)
211
If Me.
Compilation
.IsSubmission AndAlso isLast AndAlso boundStatement.Kind = BoundKind.ExpressionStatement AndAlso Not boundStatement.HasErrors Then
Binding\Binder_InterpolatedString.vb (2)
110
Debug.Assert(targetType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_FormattableString)) OrElse
111
targetType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_IFormattable)))
Binding\Binder_Invocation.vb (4)
1063
Return
Compilation
.GetWellKnownTypeMember(memberId) Is method
1092
If
Compilation
.GetWellKnownType(WellKnownType.Microsoft_VisualBasic_Strings) IsNot method.ContainingType Then
2277
Dim succeeded = method.CheckConstraints(
Compilation
.LanguageVersion, diagnosticLocation, diagnostics, template:=GetNewCompoundUseSiteInfo(diagnostics))
3152
callerInfoValue = ConstantValue.Create(callerInfoOpt.SyntaxTree.GetDisplayPath(callerInfoOpt.Span, Me.
Compilation
.Options.SourceReferenceResolver))
Binding\Binder_Lambda.vb (14)
54
Not returnType.OriginalDefinition.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T)) AndAlso
55
Not returnType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)) Then
173
Not ((source.Flags And SourceMemberFlags.Async) <> 0 AndAlso target.ReturnType Is
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)) AndAlso
181
If Not TypeSymbol.Equals(targetReturnType.OriginalDefinition,
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T), TypeCompareKind.ConsiderEverything) Then
199
((source.Flags And SourceMemberFlags.Async) <> 0 AndAlso target.ReturnType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task))))
205
Compilation
.GetSpecialType(SpecialType.System_Void), ' No need to report use-site error.
242
lambdaSymbol.ReturnType.OriginalDefinition.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T)) Then
301
ControlFlowPass.Analyze(New FlowAnalysisInfo(
Compilation
, lambdaSymbol, block), diagnostics.DiagnosticBag, True)
447
If retType.OriginalDefinition.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T)) Then
451
Debug.Assert(Not retType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)))
773
Dim targetSignature As New UnboundLambda.TargetSignature(ImmutableArray(Of ParameterSymbol).Empty,
Compilation
.GetSpecialType(SpecialType.System_Void), returnsByRef:=False)
813
Return Me.
Compilation
.AnonymousTypeManager.ConstructAnonymousDelegateSymbol(typeDescriptor)
850
commonParameterTypes(i) =
Compilation
.GetSpecialType(SpecialType.System_Object)
863
Compilation
.GetSpecialType(SpecialType.System_Void),
Binding\Binder_Latebound.vb (1)
241
If Not
Compilation
.LanguageVersion.AllowNonTrailingNamedArguments() Then
Binding\Binder_Lookup.vb (13)
171
If Not Me.
Compilation
.Options.EmbedVbCoreRuntime Then
257
AccessCheck.GetAccessibilityForErrorMessage(sym, Me.
Compilation
.Assembly))
409
Dim sourceModule = binder.
Compilation
.SourceModule
420
Dim candidate = binder.
Compilation
.GetSpecialType(specialType)
487
Dim sourceModule = binder.
Compilation
.SourceModule
770
If IsWinRTProjectedInterface(iface, binder.
Compilation
) Then
870
Dim submission = binder.
Compilation
1215
AccessCheck.IsSymbolAccessible(containingType, binder.
Compilation
.Assembly, useSiteInfo)) Then
1220
Dim reduced As MethodSymbol = methods(i).ReduceExtensionMethod(container, proximity, useSiteInfo, binder.
Compilation
.LanguageVersion)
1264
Dim compilation = binder.
Compilation
1336
Dim compilation = binder.
Compilation
1974
Dim submission = binder.
Compilation
2154
If IsWinRTProjectedInterface(iface, binder.
Compilation
) Then
Binding\Binder_Query.vb (3)
1976
Compilation
)
2056
Compilation
)
2162
If
Compilation
.ObjectType.GetMembers(rangeVar.Name).Length > 0 Then
Binding\Binder_Statements.vb (23)
298
If methodSymbol.IsIterator OrElse (methodSymbol.IsAsync AndAlso methodSymbol.ReturnType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task))) Then
748
arrayType = ArrayTypeSymbol.CreateVBArray(redimTargetType, Nothing, boundIndices.Length,
Compilation
)
2264
Compilation
.GetSpecialType(SpecialType.System_Void),
2296
If eventSymbol.DeclaringCompilation IsNot Me.
Compilation
Then
2331
If eventSymbol.DeclaringCompilation IsNot Me.
Compilation
AndAlso TypeOf targetType IsNot MissingMetadataTypeSymbol Then
2340
Debug.Assert(eventSymbol.DeclaringCompilation IsNot Me.
Compilation
)
2352
Debug.Assert(eventSymbol.DeclaringCompilation IsNot Me.
Compilation
)
2359
Dim tokenType As NamedTypeSymbol = Me.
Compilation
.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationToken)
2375
If eventSymbol.DeclaringCompilation IsNot Me.
Compilation
Then
2451
Dim container = If(exprSymbol IsNot Nothing, exprSymbol.ContainingSymbol,
Compilation
.GetSpecialType(SpecialType.System_Object))
2666
warn = [call].Method.IsAsync AndAlso [call].Method.ContainingAssembly Is Me.
Compilation
.Assembly
2699
Dim type As NamedTypeSymbol =
Compilation
.GetWellKnownType(interfaceType)
3488
Dim idisposableType =
Compilation
.GetSpecialType(SpecialType.System_IDisposable)
4836
ElseIf Not exceptionType.IsOrDerivedFromWellKnownClass(WellKnownType.System_Exception,
Compilation
, useSiteInfo) Then
4857
Debug.Assert(exceptionType.IsOrDerivedFromWellKnownClass(WellKnownType.System_Exception,
Compilation
, CompoundUseSiteInfo(Of AssemblySymbol).Discarded))
4872
previousType =
Compilation
.GetWellKnownType(WellKnownType.System_Exception)
4974
If isAsync AndAlso method.ReturnType.OriginalDefinition.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T)) Then
4977
ElseIf isAsync AndAlso method.ReturnType.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task)) Then
4979
Return
Compilation
.GetSpecialType(SpecialType.System_Void)
4983
Return
Compilation
.GetSpecialType(SpecialType.System_Void)
5060
methodReturnType.OriginalDefinition.Equals(
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T)) AndAlso
5220
If Not exceptionType.IsOrDerivedFromWellKnownClass(WellKnownType.System_Exception,
Compilation
, useSiteInfo) Then
5322
If Not
Compilation
.Options.OutputKind.IsApplication() Then
Binding\Binder_Symbols.vb (6)
178
constructedType.CheckConstraintsForNonTuple(
Compilation
.LanguageVersion, syntaxArguments, diagnostics, template:=GetNewCompoundUseSiteInfo(diagnostics))
334
CheckForForwardedType(binder.
Compilation
.Assembly, typeSyntax, diagName, forwardedToAssembly, diagBag)
343
diagInfo = ErrorFactory.ErrorInfo(ERRID.ERR_ForwardedTypeUnavailable3, diagName, binder.
Compilation
.Assembly, forwardedToAssembly)
658
Dim constructorSymbol = TryCast(binder.
Compilation
.GetWellKnownTypeMember(WellKnownMember.System_Runtime_CompilerServices_TupleElementNamesAttribute__ctorTransformNames), MethodSymbol)
678
binder.
Compilation
,
1110
Return SingleLookupResult.Good(binder.
Compilation
.GlobalNamespace)
Binding\Binder_Utils.vb (4)
304
constructedType.CheckConstraints(
Compilation
.LanguageVersion, diagnosticsBuilder, useSiteDiagnosticsBuilder, template:=GetNewCompoundUseSiteInfo(diagBag))
320
Return New CompoundUseSiteInfo(Of AssemblySymbol)(futureDestination,
Compilation
.Assembly)
341
currentType = ArrayTypeSymbol.CreateVBArray(currentType, Nothing, arrayModifier.Rank,
Compilation
)
372
currentType = ArrayTypeSymbol.CreateVBArray(currentType, Nothing, rank,
Compilation
)
Binding\Binder_XmlLiterals.vb (6)
374
Return ArrayTypeSymbol.CreateSZArray(elementType, ImmutableArray(Of CustomModifier).Empty, compilation:=
Compilation
)
674
memberAccess = BadExpression(syntax, ImmutableArray.Create(receiver, name),
Compilation
.GetSpecialType(SpecialType.System_String))
797
Return BadExpression(syntax,
Compilation
.GetSpecialType(SpecialType.System_String))
903
Dim result = BadExpression(syntax,
Compilation
.GetSpecialType(SpecialType.System_String))
1038
Dim type =
Compilation
.GetWellKnownType(WellKnownType.System_Xml_Linq_XObject)
1452
Me.
Compilation
.MarkImportDirectiveAsUsed(Me.SyntaxTree, result.ImportsClausePosition)
Binding\DocumentationCommentCrefBinder.vb (2)
368
Return ImmutableArray.Create(Of Symbol)(Me.
Compilation
.GlobalNamespace)
589
symbols.Add(Me.
Compilation
.GlobalNamespace)
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
99
symbols.Add(Me.
Compilation
.GlobalNamespace)
Binding\EarlyWellKnownAttributeBinder.vb (1)
181
Dim compilation As VisualBasicCompilation = memberAccessBinder.
Compilation
Binding\ExecutableCodeBinder.vb (1)
140
If bestSymbol Is Nothing OrElse Me.
Compilation
.CompareSourceLocations(bestLocation, sourceLocation) > 0 Then
Binding\ImportAliasesBinder.vb (2)
62
Me.
Compilation
.MarkImportDirectiveAsUsed(Me.SyntaxTree, [alias].ImportsClausePosition)
83
Return Me.
Compilation
.SourceModule
Binding\ImportedTypesAndNamespacesMembersBinder.vb (3)
59
Me.
Compilation
.MarkImportDirectiveAsUsed(Me.SyntaxTree, importedSym.ImportsClausePosition)
72
Not DirectCast(currentResult.SingleSymbol, NamespaceSymbol).ContainsTypesAccessibleFrom(
Compilation
.Assembly)) Then
140
Me.
Compilation
.MarkImportDirectiveAsUsed(Me.SyntaxTree, importedSym.ImportsClausePosition)
Binding\MemberSemanticModel.vb (1)
1177
Return RootBinder.
Compilation
Binding\TypesOfImportedNamespacesMembersBinder.vb (2)
48
Me.
Compilation
.MarkImportDirectiveAsUsed(Me.SyntaxTree, importedSym.ImportsClausePosition)
76
Me.
Compilation
.MarkImportDirectiveAsUsed(Me.SyntaxTree, importedSym.ImportsClausePosition)
BoundTree\BoundMethodGroup.vb (1)
61
Dim localUseSiteInfo = If(_withDependencies, New CompoundUseSiteInfo(Of AssemblySymbol)(_lookupBinder.
Compilation
.Assembly), CompoundUseSiteInfo(Of AssemblySymbol).DiscardedDependencies)
Compilation\SyntaxTreeSemanticModel.vb (1)
1340
Return New AliasSymbol(binder.
Compilation
, binder.ContainingNamespaceOrType, aliasName, targetSymbol, declarationSyntax.GetLocation())
Semantics\Conversions.vb (2)
1229
If destination.Equals(binder.
Compilation
.GetWellKnownType(WellKnownType.System_FormattableString)) OrElse
1230
destination.Equals(binder.
Compilation
.GetWellKnownType(WellKnownType.System_IFormattable)) _
Semantics\OverloadResolution.vb (2)
2898
Dim satisfiedConstraints = method.CheckConstraints(binder.
Compilation
.LanguageVersion, diagnosticsBuilder, useSiteDiagnosticsBuilder, template:=useSiteInfo)
3396
binder.
Compilation
.GetWellKnownType(WellKnownType.System_Attribute).IsBaseTypeOf(candidate.Candidate.UnderlyingSymbol.ContainingType, useSiteInfo) Then
Semantics\TypeInference\TypeArgumentInference.vb (9)
193
inferredType = ArrayTypeSymbol.CreateVBArray(arrayType.ElementType, Nothing, arrayType.Rank, arrayLiteral.Binder.
Compilation
.Assembly)
1170
ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, binder.
Compilation
.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
1234
ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, binder.
Compilation
.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
2134
Dim inferenceSignature As New UnboundLambda.TargetSignature(delegateParams, unboundLambda.Binder.
Compilation
.GetSpecialType(SpecialType.System_Void), returnsByRef:=False)
2189
Debug.Assert(TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().
Compilation
.GetWellKnownType(WellKnownType.System_Threading_Tasks_Task_T), TypeCompareKind.ConsiderEverything) OrElse
2190
TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().
Compilation
.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerable_T), TypeCompareKind.ConsiderEverything) OrElse
2191
TypeSymbol.Equals(lambdaReturnNamedType.OriginalDefinition, argument.GetBinderFromLambda().
Compilation
.GetSpecialType(SpecialType.System_Collections_Generic_IEnumerator_T), TypeCompareKind.ConsiderEverything))
2204
unboundLambda.Binder.
Compilation
.GetSpecialType(SpecialType.System_Void),
2239
ElseIf TypeSymbol.Equals(parameterType.OriginalDefinition, argument.GetBinderFromLambda().
Compilation
.GetWellKnownType(WellKnownType.System_Linq_Expressions_Expression_T), TypeCompareKind.ConsiderEverything) Then
Symbols\Source\CustomEventAccessorSymbol.vb (2)
225
binder.
Compilation
.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationToken)
234
binder.
Compilation
.GetWellKnownType(WellKnownType.System_Runtime_InteropServices_WindowsRuntime_EventRegistrationToken)
Symbols\Source\SourceFile.vb (1)
259
binder.
Compilation
.RecordImports(statement)
Symbols\Source\SourceMemberMethodSymbol.vb (1)
983
ReturnsEventSource(prop, binder.
Compilation
) Then
Symbols\Symbol_Attributes.vb (1)
474
If Not boundAttribute.HasErrors AndAlso ValidateAttributeUsage(boundAttribute, attributeSyntax, binder.
Compilation
, symbolPart, diagnostics, uniqueAttributeTypes) Then
Symbols\TypeSymbolExtensions.vb (3)
1085
Return type.ExpressionTargetDelegate(binder.
Compilation
)
1100
Dim expressionArg = ExpressionTargetDelegate(type, binder.
Compilation
)
1111
Return type.ExpressionTargetDelegate(binder.
Compilation
) IsNot Nothing