66 references to Type
Microsoft.CodeAnalysis.CSharp (26)
Binder\Binder_Expressions.cs (2)
8342
resultType = ((EventSymbol)symbolOpt).
Type
;
9113
return new BoundEventAccess(node, receiver, eventSymbol, isUsableAsField, lookupResult, eventSymbol.
Type
, hasErrors: (hasErrors || hasError));
Compiler\ClsComplianceChecker.cs (1)
729
type = ((EventSymbol)symbol).
Type
;
Compiler\MethodBodySynthesizer.cs (1)
348
TypeSymbol delegateType = eventSymbol.
Type
;
Emitter\Model\EventSymbolAdapter.cs (1)
97
return ((PEModuleBuilder)context.Module).Translate(AdaptedEventSymbol.
Type
, syntaxNodeOpt: (CSharpSyntaxNode?)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\NoPia\EmbeddedEvent.cs (1)
46
return moduleBuilder.Translate(UnderlyingEvent.AdaptedEventSymbol.
Type
, syntaxNodeOpt, diagnostics);
FlowAnalysis\EmptyStructTypeCache.cs (1)
210
return (!eventSymbol.HasAssociatedField || ShouldIgnoreStructField(eventSymbol, eventSymbol.
Type
)) ? null : eventSymbol.AssociatedField.AsMember(type);
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
102
TypeSymbol eventType = eventSymbol.
Type
;
Lowering\LocalRewriter\LocalRewriter_ObjectOrCollectionInitializerExpression.cs (1)
745
return MakeEventAccess(rewrittenLeft.Syntax, rewrittenReceiver, eventSymbol, null, rewrittenLeft.ResultKind, eventSymbol.
Type
);
Symbols\MemberSymbolExtensions.cs (2)
476
return e.
Type
.CustomModifierCount();
854
return ((EventSymbol)member).
Type
.ContainsTupleNames();
Symbols\OverriddenOrHiddenMembersHelpers.cs (2)
903
return @event.
Type
.HasCustomModifiers(flagNonDefaultArraySizesOrLowerBounds: false); //can't have custom modifiers on (vs in) type
921
return @event.
Type
.CustomModifierCount();
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1119
if (TypeSymbol.Equals(retargetedEvent.
Type
, targetType.Type, TypeCompareKind.ConsiderEverything2))
Symbols\Source\SourceEventSymbol.cs (8)
654
else if (this.
Type
.IsVoidType())
658
else if (!this.IsNoMoreVisibleThan(this.
Type
, ref useSiteInfo) && (CSharpSyntaxNode as EventDeclarationSyntax)?.ExplicitInterfaceSpecifier == null)
663
diagnostics.Add(ErrorCode.ERR_BadVisEventType, location, this, this.
Type
);
665
else if (!this.
Type
.IsDelegateType() && !this.
Type
.IsErrorType())
699
TypeSymbol overriddenEventType = eventWithCustomModifiers.
Type
;
826
this.
Type
.CheckAllConstraints(compilation, conversions, location, diagnostics);
828
if (compilation.ShouldEmitNativeIntegerAttributes(
Type
))
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4545
eventSymbol.
Type
.Equals(methodParams[0].Type, TypeCompareKind.AllIgnoreOptions);
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
145
if (fieldLikeEvent.
Type
.IsDelegateType())
Symbols\TypeSymbol.cs (1)
2035
interfaceMemberReturnType = ((EventSymbol)interfaceMember).
Type
;
Symbols\VarianceSafety.cs (1)
227
@event.
Type
,
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\EventTests.cs (1)
235
Assert.Equal(@event.
Type
, associatedField.Type);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests_Tuples.cs (1)
296
typeSymbols.Add(((EventSymbol)symbol).
Type
);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\AmbiguousOverrideTests.cs (2)
931
Func<int, Func<EventSymbol, bool>> hasCustomModifierCount = c => e => e.
Type
.CustomModifierCount() == c;
1014
Func<int, Func<EventSymbol, bool>> hasCustomModifierCount = c => e => e.
Type
.CustomModifierCount() == c;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (34)
Symbols\CovariantReturnTests.cs (2)
329
var isCovariant = !eventSymbol.
Type
.Equals(overriddenEvent.
Type
, TypeCompareKind.AllIgnoreOptions);
Symbols\Metadata\PE\LoadCustomModifiers.cs (4)
238
Assert.True(@class.GetMember<EventSymbol>("Event11").
Type
.IsErrorType()); //Can't have modopt on event type
239
Assert.Equal(1, @class.GetMember<EventSymbol>("Event10").
Type
.CustomModifierCount());
240
Assert.True(@class.GetMember<EventSymbol>("Event01").
Type
.IsErrorType()); //Can't have modopt on event type
241
Assert.Equal(0, @class.GetMember<EventSymbol>("Event00").
Type
.CustomModifierCount());
Symbols\Metadata\PE\LoadingEvents.cs (7)
77
Assert.Equal(eventTypeDisplayString, instanceEvent.
Type
.ToTestDisplayString());
86
Assert.Equal(eventTypeDisplayString, staticEvent.
Type
.ToTestDisplayString());
116
Assert.Equal(@event.
Type
, accessor.Parameters.Single().Type);
135
Assert.NotEqual(mismatchedAddEvent.
Type
, mismatchedAddEvent.AddMethod.Parameters.Single().Type);
138
Assert.NotEqual(mismatchedRemoveEvent.
Type
, mismatchedRemoveEvent.RemoveMethod.Parameters.Single().Type);
180
Assert.Equal(SpecialType.System_Int32, nonDelegateEvent.
Type
.SpecialType);
532
Assert.Equal(@event.
Type
, field.Type);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (3)
336
Assert.Equal(SymbolKind.ErrorType, importedField.
Type
.Kind);
337
Assert.IsType<NoPiaIllegalGenericInstantiationSymbol>(importedField.
Type
);
354
Assert.Equal(SymbolKind.NamedType, var1.
Type
.Kind);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (4)
278
Assert.Equal(retargetedClassCEvent1Impl.
Type
.ToTestDisplayString(), interfaceV1Event1.
Type
.ToTestDisplayString());
305
Assert.Equal(retargetedClassCEvent4Impl.
Type
.ToTestDisplayString(), interfaceV1Event4.
Type
.ToTestDisplayString());
Symbols\Source\EventTests.cs (12)
104
Assert.Equal(@event.
Type
, associatedField.Type);
142
Assert.Equal(@event.
Type
, associatedField.Type);
350
Assert.Equal("System.Action<dynamic>", e1.
Type
.ToTestDisplayString());
351
Assert.Equal("System.Action<dynamic>", e2.
Type
.ToTestDisplayString());
610
Assert.Equal("System.Action<System.Object>", e1.
Type
.ToTestDisplayString());
611
Assert.Equal("System.Action<System.Object>", e2.
Type
.ToTestDisplayString());
642
Assert.Equal("System.Action<System.Object>", e1.
Type
.ToTestDisplayString());
643
Assert.Equal("System.Action<System.Object>", e2.
Type
.ToTestDisplayString());
816
Assert.Equal("System.Action<System.Object>", eventSymbol.
Type
.ToTestDisplayString());
2262
var baseEventType = baseEvent.
Type
;
2267
Assert.Equal(baseEventType, event1.
Type
);
2274
Assert.Equal(baseEventType, event2.
Type
);
Symbols\Source\FileModifierTests.cs (1)
2458
verifyConstructedFileType(comp.GetMember<EventSymbol>("C1.E").
Type
);
Symbols\TypeTests.cs (1)
1616
var deleType = (mem as EventSymbol).
Type
;
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Metadata\WinMdEventTests.cs (2)
3349
Assert.Equal(@event.
Type
, fieldType.TypeArguments().Single());
3606
var eventType = @event.
Type
;