2 implementations of Type
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\EventSymbol.cs (1)
25ITypeSymbol IEventSymbol.Type
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\EventSymbol.vb (1)
278Private ReadOnly Property IEventSymbol_Type As ITypeSymbol Implements IEventSymbol.Type
81 references to Type
Microsoft.AspNetCore.Components.Analyzers (1)
InternalUsageAnalyzer.cs (1)
121VisitDeclarationSymbol(context, @event.Type, @event);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
InternalUsageAnalyzer.cs (1)
121VisitDeclarationSymbol(context, @event.Type, @event);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
281IEventSymbol eventSymbol => eventSymbol.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
136return symbol.Type.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
65var delegateInvoke = (eventSymbol.Type as INamedTypeSymbol)?.DelegateInvokeMethod;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
242=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
166return IsTypeLessAccessibleThanOtherType(eventSymbol.Type, second, []);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
584@event.Type,
Microsoft.CodeAnalysis.CSharp (2)
Operations\CSharpOperationFactory_Methods.cs (1)
138return new EventReferenceOperation(@event, constrainedToType.GetPublicSymbol(), instance, _semanticModel, eventAccessSyntax, @event.Type, isImplicit);
SymbolDisplay\SymbolDisplayVisitor.Members.cs (1)
241symbol.Type.Accept(this.NotFirstVisitor);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
68var namedType = @event.Type as INamedTypeSymbol;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (2)
122@event.Type.GenerateTypeSyntax(), 134type: @event.Type.GenerateTypeSyntax(),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (3)
74var member01 = (typesym.GetMembers("myEvent").Single() as IEventSymbol).Type; 355ResolveAndVerifyTypeSymbol(list[0], (originalSymbols[2] as IEventSymbol).Type, model, comp20); 358ResolveAndVerifyTypeSymbol(list[1], (originalSymbols[2] as IEventSymbol).Type, model, comp20);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenTupleTest.cs (1)
14435e1Tuple = (INamedTypeSymbol)((IEventSymbol)symbolInfo.CandidateSymbols.Single()).Type;
Microsoft.CodeAnalysis.CSharp.Features (1)
ExtractMethod\CSharpSelectionResult.StatementResult.cs (1)
80IEventSymbol eventSymbol => (eventSymbol.Type, false),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (12)
Compilation\SymbolVisitorTests.cs (3)
77symbol.Type.Accept(this); 251symbol.Type.Accept(this); 442symbol.Type.Accept(this, argument);
Symbols\Source\NullablePublicAPITests.cs (5)
641var result = member.Type.NullableAnnotation; 2830Assert.Equal(PublicNullableAnnotation.Annotated, ((IEventSymbol)symInfo.Symbol).Type.NullableAnnotation); 2835Assert.Equal(PublicNullableAnnotation.Annotated, ((IEventSymbol)symInfo.Symbol).Type.NullableAnnotation); 2879Assert.Equal(PublicNullableAnnotation.Annotated, ((IEventSymbol)symInfo.Symbol).Type.NullableAnnotation); 2884Assert.Equal(PublicNullableAnnotation.Annotated, ((IEventSymbol)symInfo.Symbol).Type.NullableAnnotation);
Symbols\SymbolEqualityTests.cs (4)
745var prop1Type = event1.Type; 746var prop2Type = event2.Type; 900var event1Type = event1.Type; // System.EventHandler<T!> 901var event2Type = event2.Type; // System.EventHandler<T!>
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Extensions.cs (1)
821return ((IEventSymbol)symbol).Type;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
68var namedType = @event.Type as INamedTypeSymbol;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (2)
122@event.Type.GenerateTypeSyntax(), 134type: @event.Type.GenerateTypeSyntax(),
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
75Visit(symbol.Type);
Microsoft.CodeAnalysis.Features (11)
ChangeSignature\AbstractChangeSignatureService.cs (2)
131symbol = ev.Type; 300if (eventSymbol.Type is INamedTypeSymbol type && type.DelegateInvokeMethod != null)
Completion\Providers\AbstractOverrideCompletionProvider.cs (1)
73SymbolKind.Event => ((IEventSymbol)symbol).Type,
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (2)
2392=> TypesEquivalent(oldEvent.Type, newEvent.Type, exact);
ExtractInterface\AbstractExtractInterfaceService.cs (1)
384type: @event.Type,
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
128=> symbol.Type.Accept(this);
QuickInfo\CommonSemanticQuickInfoProvider.ErrorVisitor.cs (1)
30=> Visit(symbol.Type);
Shared\Extensions\ISymbolExtensions_Sorting.cs (1)
144var type = ev.Type as INamedTypeSymbol;
Shared\Utilities\ExtractTypeHelpers.cs (1)
204return DoesTypeReferenceTypeParameter(@event.Type, typeParameter, checkedTypes);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementHelpers.cs (1)
166return IsTypeLessAccessibleThanOtherType(eventSymbol.Type, second, []);
Microsoft.CodeAnalysis.VisualBasic (2)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
158symbol.Type.Accept(Me.NotFirstVisitor)
Symbols\EventSymbol.vb (1)
278Private ReadOnly Property IEventSymbol_Type As ITypeSymbol Implements IEventSymbol.Type
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EventGenerator.vb (4)
108Dim invoke = DirectCast([event].Type, INamedTypeSymbol)?.DelegateInvokeMethod 116generator.TypeExpression([event].Type), 140Dim eventType = TryCast([event].Type, INamedTypeSymbol) 187Return SyntaxFactory.SimpleAsClause([event].Type.GenerateTypeSyntax())
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
NavigationBar\VisualBasicEditorNavigationBarItemService_CodeGeneration.vb (1)
166Dim delegateInvokeMethod = DirectCast(eventSymbol.Type, INamedTypeSymbol).DelegateInvokeMethod
Microsoft.CodeAnalysis.VisualBasic.Features (3)
ChangeSignature\VisualBasicChangeSignatureService.vb (1)
337Dim delegateInvokeMethod = DirectCast(DirectCast(semanticModel.GetSymbolInfo(raiseEventStatement.Name, cancellationToken).Symbol, IEventSymbol).Type, INamedTypeSymbol).DelegateInvokeMethod
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (1)
278Dim eventType = TryCast(boundEvent.Type, INamedTypeSymbol)
SignatureHelp\RaiseEventStatementSignatureHelpProvider.vb (1)
113Dim type = DirectCast(eventSymbol.Type, INamedTypeSymbol)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (3)
Compilation\SemanticModelAPITests.vb (2)
4746Assert.Equal("System.Action", symbol.Type.ToTestDisplayString()) 4881Assert.Equal("System.Action", symbol.Type.ToTestDisplayString())
Semantics\GetSemanticInfoTests.vb (1)
3112Assert.Equal(handledEvent0.EventSymbol.Type, commonEventSymbol.Type)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EventGenerator.vb (4)
108Dim invoke = DirectCast([event].Type, INamedTypeSymbol)?.DelegateInvokeMethod 116generator.TypeExpression([event].Type), 140Dim eventType = TryCast([event].Type, INamedTypeSymbol) 187Return SyntaxFactory.SimpleAsClause([event].Type.GenerateTypeSyntax())
Microsoft.CodeAnalysis.Workspaces (9)
Editing\SyntaxGenerator.cs (3)
495TypeExpression(symbol.Type), 528var invoke = symbol.Type.GetMembers("Invoke").FirstOrDefault(m => m.Kind == SymbolKind.Method) as IMethodSymbol; 533TypeExpression(symbol.Type),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
281IEventSymbol eventSymbol => eventSymbol.Type,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
136return symbol.Type.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
65var delegateInvoke = (eventSymbol.Type as INamedTypeSymbol)?.DelegateInvokeMethod;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (2)
242=> this.SignatureTypeEquivalenceComparer.Equals(ev1.Type, ev2.Type);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationSymbolFactory.cs (1)
584@event.Type,
Microsoft.VisualStudio.LanguageServices (2)
Venus\ContainedLanguageCodeSupport.cs (2)
103var eventType = ((IEventSymbol)eventMember).Type; 177var eventType = ((IEventSymbol)eventMember).Type;
Microsoft.VisualStudio.LanguageServices.CSharp (3)
CodeModel\CSharpCodeModelService_Prototype.cs (1)
361builder.Append(GetAsStringForCodeTypeRef(symbol.Type));
ObjectBrowser\DescriptionBuilder.cs (1)
537AddTypeLink(eventSymbol.Type, LinkFlags.None);
Progression\CSharpProgressionLanguageService.cs (1)
117case IEventSymbol f: return f.Type;
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
CodeModel\VisualBasicCodeModelService_Prototype.vb (2)
50Dim eventType = TryCast(eventSymbol.Type, INamedTypeSymbol) 75AppendType(builder, symbol.Type, flags)
ObjectBrowser\DescriptionBuilder.vb (1)
278Dim eventType = eventSymbol.Type