File tree Expand file tree Collapse file tree
StyleCop.Analyzers/StyleCop.Analyzers.CodeGeneration Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved.
2+ // Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+ namespace StyleCop . Analyzers . CodeGeneration
5+ {
6+ using Microsoft . CodeAnalysis ;
7+
8+ [ Generator ]
9+ internal sealed class LightupGenerator : ISourceGenerator
10+ {
11+ public void Initialize ( GeneratorInitializationContext context )
12+ {
13+ context . RegisterForSyntaxNotifications ( ( ) => new SyntaxReceiver ( ) ) ;
14+ }
15+
16+ public void Execute ( GeneratorExecutionContext context )
17+ {
18+ if ( context . SyntaxReceiver is not SyntaxReceiver receiver )
19+ {
20+ return ;
21+ }
22+ }
23+
24+ private class SyntaxReceiver : ISyntaxReceiver
25+ {
26+ public void OnVisitSyntaxNode ( SyntaxNode syntaxNode )
27+ {
28+ }
29+ }
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments