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