25 references to Type
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Expressions.cs (2)
8179
resultType = ((EventSymbol)symbolOpt).
Type
;
8770
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);
FlowAnalysis\EmptyStructTypeCache.cs (1)
209
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)
709
return MakeEventAccess(rewrittenLeft.Syntax, rewrittenReceiver, eventSymbol, null, rewrittenLeft.ResultKind, eventSymbol.
Type
);
Symbols\MemberSymbolExtensions.cs (2)
242
return e.
Type
.CustomModifierCount();
585
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)
587
else if (this.
Type
.IsVoidType())
591
else if (!this.IsNoMoreVisibleThan(this.
Type
, ref useSiteInfo) && (CSharpSyntaxNode as EventDeclarationSyntax)?.ExplicitInterfaceSpecifier == null)
596
diagnostics.Add(ErrorCode.ERR_BadVisEventType, location, this, this.
Type
);
598
else if (!this.
Type
.IsDelegateType() && !this.
Type
.IsErrorType())
627
TypeSymbol overriddenEventType = eventWithCustomModifiers.
Type
;
754
this.
Type
.CheckAllConstraints(compilation, conversions, location, diagnostics);
756
if (compilation.ShouldEmitNativeIntegerAttributes(
Type
))
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3984
eventSymbol.
Type
.Equals(methodParams[0].Type, TypeCompareKind.AllIgnoreOptions);
Symbols\Synthesized\SynthesizedEventAccessorSymbol.cs (1)
128
if (fieldLikeEvent.
Type
.IsDelegateType())
Symbols\TypeSymbol.cs (1)
2017
interfaceMemberReturnType = ((EventSymbol)interfaceMember).
Type
;
Symbols\VarianceSafety.cs (1)
224
@event.
Type
,