@@ -17,50 +17,32 @@ internal class DirectiveVisitor : CSharpSyntaxWalker
17
17
/// </summary>
18
18
public IEnumerable < IEntity > BranchesTaken => branchesTaken ;
19
19
20
- public DirectiveVisitor ( Context cx ) : base ( SyntaxWalkerDepth . StructuredTrivia )
21
- {
20
+ public DirectiveVisitor ( Context cx ) : base ( SyntaxWalkerDepth . StructuredTrivia ) =>
22
21
this . cx = cx ;
23
- }
24
22
25
- public override void VisitPragmaWarningDirectiveTrivia ( PragmaWarningDirectiveTriviaSyntax node )
26
- {
23
+ public override void VisitPragmaWarningDirectiveTrivia ( PragmaWarningDirectiveTriviaSyntax node ) =>
27
24
Entities . PragmaWarningDirective . Create ( cx , node ) ;
28
- }
29
25
30
- public override void VisitPragmaChecksumDirectiveTrivia ( PragmaChecksumDirectiveTriviaSyntax node )
31
- {
26
+ public override void VisitPragmaChecksumDirectiveTrivia ( PragmaChecksumDirectiveTriviaSyntax node ) =>
32
27
Entities . PragmaChecksumDirective . Create ( cx , node ) ;
33
- }
34
28
35
- public override void VisitDefineDirectiveTrivia ( DefineDirectiveTriviaSyntax node )
36
- {
29
+ public override void VisitDefineDirectiveTrivia ( DefineDirectiveTriviaSyntax node ) =>
37
30
Entities . DefineDirective . Create ( cx , node ) ;
38
- }
39
31
40
- public override void VisitUndefDirectiveTrivia ( UndefDirectiveTriviaSyntax node )
41
- {
32
+ public override void VisitUndefDirectiveTrivia ( UndefDirectiveTriviaSyntax node ) =>
42
33
Entities . UndefineDirective . Create ( cx , node ) ;
43
- }
44
34
45
- public override void VisitWarningDirectiveTrivia ( WarningDirectiveTriviaSyntax node )
46
- {
35
+ public override void VisitWarningDirectiveTrivia ( WarningDirectiveTriviaSyntax node ) =>
47
36
Entities . WarningDirective . Create ( cx , node ) ;
48
- }
49
37
50
- public override void VisitErrorDirectiveTrivia ( ErrorDirectiveTriviaSyntax node )
51
- {
38
+ public override void VisitErrorDirectiveTrivia ( ErrorDirectiveTriviaSyntax node ) =>
52
39
Entities . ErrorDirective . Create ( cx , node ) ;
53
- }
54
40
55
- public override void VisitNullableDirectiveTrivia ( NullableDirectiveTriviaSyntax node )
56
- {
41
+ public override void VisitNullableDirectiveTrivia ( NullableDirectiveTriviaSyntax node ) =>
57
42
Entities . NullableDirective . Create ( cx , node ) ;
58
- }
59
43
60
- public override void VisitLineDirectiveTrivia ( LineDirectiveTriviaSyntax node )
61
- {
44
+ public override void VisitLineDirectiveTrivia ( LineDirectiveTriviaSyntax node ) =>
62
45
Entities . LineDirective . Create ( cx , node ) ;
63
- }
64
46
65
47
public override void VisitLineSpanDirectiveTrivia ( LineSpanDirectiveTriviaSyntax node ) =>
66
48
Entities . LineSpanDirective . Create ( cx , node ) ;
0 commit comments