5 overrides of Type
Microsoft.CodeAnalysis.VisualBasic (5)
Symbols\Metadata\PE\PEEventSymbol.vb (1)
211
Public Overrides ReadOnly Property
Type
As TypeSymbol
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
184
Public Overrides ReadOnly Property
Type
As TypeSymbol
Symbols\Source\SourceEventSymbol.vb (1)
459
Public Overrides ReadOnly Property
Type
As TypeSymbol
Symbols\SubstitutedEventSymbol.vb (1)
66
Public Overrides ReadOnly Property
Type
As TypeSymbol
Symbols\Tuples\TupleEventSymbol.vb (1)
38
Public Overrides ReadOnly Property
Type
As TypeSymbol
64 references to Type
Microsoft.CodeAnalysis.VisualBasic (35)
Analysis\InitializerRewriter.vb (1)
137
eventAccess:=New BoundEventAccess(syntax, receiver, eventSymbol, eventSymbol.
Type
).MakeCompilerGenerated(),
Binding\Binder_Expressions.vb (1)
3167
eventSymbol.
Type
,
Binding\Binder_Statements.vb (2)
2272
Dim targetType = eventSymbol.
Type
2476
Dim eventType = TryCast(eventSym.
Type
, NamedTypeSymbol)
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
251
eventAccess:=New BoundEventAccess(syntax, withEventsProviderAccess, eventSymbol, eventSymbol.
Type
),
331
eventAccess:=New BoundEventAccess(syntax, withEventsProviderAccess, eventSymbol, eventSymbol.
Type
),
Compilation\ClsComplianceChecker.vb (1)
438
Dim type = symbol.
Type
Compilation\SyntaxTreeSemanticModel.vb (1)
1067
Dim type = TryCast(eventSymbol.
Type
, NamedTypeSymbol)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (2)
549
Return Me._comparer.Equals([event].
Type
, other.
Type
)
Emit\EventSymbolAdapter.vb (1)
84
Return (DirectCast(context.Module, PEModuleBuilder)).Translate(AdaptedEventSymbol.
Type
, syntaxNodeOpt:=DirectCast(context.SyntaxNode, VisualBasicSyntaxNode), diagnostics:=context.Diagnostics)
Emit\NoPia\EmbeddedEvent.vb (1)
38
Return moduleBuilder.Translate(UnderlyingEvent.AdaptedEventSymbol.
Type
, syntaxNodeOpt, diagnostics)
Lowering\LocalRewriter\LocalRewriter_AddRemoveHandler.vb (1)
102
Dim eventType As TypeSymbol = eventSymbol.
Type
Operations\VisualBasicOperationFactory.vb (1)
1483
Dim eventReferenceType As ITypeSymbol = boundRaiseEventStatement.EventSymbol.
Type
Symbols\EventSignatureComparer.vb (3)
130
If Not event1.
Type
.IsSameType(event2.
Type
, comparison) Then
160
_hash = Hash.Combine([event].
Type
, _hash)
Symbols\EventSymbol.vb (4)
169
Dim type = TryCast(Me.
Type
, NamedTypeSymbol)
198
MergeUseSiteInfo(useSiteInfo, DeriveUseSiteInfoFromType(Me.
Type
))
230
errorInfo = Me.
Type
.GetUnificationUseSiteDiagnosticRecursive(Me, checkedTypes:=Nothing)
280
Return Me.
Type
Symbols\Retargeting\RetargetingEventSymbol.vb (1)
186
Return RetargetingTranslator.Retarget(_underlyingEvent.
Type
, RetargetOptions.RetargetPrimitiveTypesByTypeCode)
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
1059
Dim retargetedEventType = Retarget([event].
Type
, RetargetOptions.RetargetPrimitiveTypesByName)
1065
If TypeSymbol.Equals(retargetedEvent.
Type
, retargetedEventType, TypeCompareKind.ConsiderEverything) Then
Symbols\Source\SourceEventSymbol.vb (4)
200
Dim implementedEventType = implementedEvents(0).
Type
205
If Not implemented.
Type
.IsSameType(implementedEventType, TypeCompareKind.IgnoreTupleNames) Then
291
If Not implemented.
Type
.IsSameType(type, TypeCompareKind.IgnoreTupleNames) Then
297
diagnostics.Add(ERRID.ERR_EventImplMismatch5, errLocation, {Me, implemented, implemented.ContainingType, type, implemented.
Type
})
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
1117
Dim type As TypeSymbol = [event].
Type
Symbols\Source\SourceMemberMethodSymbol.vb (2)
828
Dim resolutionResult = Binder.InterpretDelegateBinding(syntheticAddressOf, eventSymbol.
Type
, isForHandles:=True)
840
Dim delegateCreation = typeBinder.ReclassifyAddressOf(syntheticAddressOf, resolutionResult, eventSymbol.
Type
, diagBag, isForHandles:=True,
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (2)
682
If member.
Type
.IsDelegateType() Then
683
Dim invoke As MethodSymbol = DirectCast(member.
Type
, NamedTypeSymbol).DelegateInvokeMethod
Symbols\SubstitutedEventSymbol.vb (1)
70
_originalDefinition.
Type
.InternalSubstituteTypeParameters(TypeSubstitution).AsTypeSymbolOnly(),
Symbols\Tuples\TupleEventSymbol.vb (1)
40
Return Me._underlyingEvent.
Type
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\AttributeTests_Tuples.vb (1)
280
typeSymbols.Add(DirectCast(symbol, EventSymbol).
Type
)
CodeGen\CodeGenEvents.vb (1)
1000
Assert.Equal("Action", DirectCast(ev.OverriddenMember, EventSymbol).
Type
.Name)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (27)
SymbolsTests\Metadata\PE\LoadingEvents.vb (6)
90
Assert.Equal(eventTypeDisplayString, instanceEvent.
Type
.ToTestDisplayString())
98
Assert.Equal(eventTypeDisplayString, staticEvent.
Type
.ToTestDisplayString())
124
Assert.Equal([event].
Type
, accessor.Parameters.Single().Type)
134
Assert.NotEqual(mismatchedAddEvent.
Type
, mismatchedAddEvent.AddMethod.Parameters.Single().Type)
135
Assert.NotEqual(mismatchedRemoveEvent.
Type
, mismatchedRemoveEvent.RemoveMethod.Parameters.Single().Type)
155
Assert.Equal(SpecialType.System_Int32, nonDelegateEvent.
Type
.SpecialType)
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (3)
283
Assert.Equal(SymbolKind.ErrorType, importedField.
[Type]
.Kind)
284
Assert.IsType(Of NoPiaIllegalGenericInstantiationSymbol)(importedField.
[Type]
)
296
Assert.Equal(SymbolKind.NamedType, var1.
[Type]
.Kind)
SymbolsTests\Metadata\WinMdEventTest.vb (4)
1564
Assert.Equal(actionType, eventSymbol.
Type
)
1602
Dim eventType = [event].
Type
1631
Dim eventType = [event].
Type
1706
Assert.Equal(fieldLikeEvent.
Type
, DirectCast(type, NamedTypeSymbol).TypeArguments.Single())
SymbolsTests\Source\EventTests.vb (14)
2433
Assert.Same(e1EventHandler.ContainingType, DirectCast(e1EventHandler.ContainingType.AssociatedSymbol, EventSymbol).
Type
)
2461
Assert.Equal("I1.D", e1.
Type
.ToTestDisplayString())
2497
Assert.Equal("A.E1EventHandler", e1.
Type
.ToTestDisplayString())
2498
Assert.True(e1.
Type
.IsDelegateType())
2499
Assert.DoesNotContain(e1.
Type
, a.GetMembers())
2500
Assert.Same(a, e1.
Type
.ContainingType)
2501
Assert.True(e1.
Type
.IsImplicitlyDeclared)
2513
Assert.Same(e1.
Type
, xSym.ContainingType)
2551
Assert.Equal("A.E1EventHandler", e1.
Type
.ToTestDisplayString())
2552
Assert.True(e1.
Type
.IsDelegateType())
2553
Assert.DoesNotContain(e1.
Type
, a.GetMembers())
2554
Assert.Same(a, e1.
Type
.ContainingType)
2555
Assert.True(e1.
Type
.IsImplicitlyDeclared)
2567
Assert.Same(e1.
Type
, xSym.ContainingType)