@@ -9,17 +9,12 @@ private module Cached {
9
9
TCommentDirective ( Erb:: CommentDirective g ) or
10
10
TDirective ( Erb:: Directive g ) or
11
11
TGraphqlDirective ( Erb:: GraphqlDirective g ) or
12
- TOutputDirective ( Erb:: OutputDirective g ) { getOpeningTag ( g ) != "<%==" } or
13
- TRawOutputDirective ( Erb:: OutputDirective g ) { getOpeningTag ( g ) = "<%==" } or
12
+ TOutputDirective ( Erb:: OutputDirective g ) or
14
13
TTemplate ( Erb:: Template g ) or
15
14
TToken ( Erb:: Token g ) or
16
15
TComment ( Erb:: Comment g ) or
17
16
TCode ( Erb:: Code g )
18
17
19
- private string getOpeningTag ( Erb:: OutputDirective g ) {
20
- erb_tokeninfo ( any ( Erb:: Token t | erb_ast_node_info ( t , g , 0 , _) ) , 0 , result )
21
- }
22
-
23
18
/**
24
19
* Gets the underlying TreeSitter entity for a given erb AST node.
25
20
*/
@@ -29,7 +24,6 @@ private module Cached {
29
24
n = TDirective ( result ) or
30
25
n = TGraphqlDirective ( result ) or
31
26
n = TOutputDirective ( result ) or
32
- n = TRawOutputDirective ( result ) or
33
27
n = TTemplate ( result ) or
34
28
n = TToken ( result ) or
35
29
n = TComment ( result ) or
@@ -44,7 +38,6 @@ import Cached
44
38
45
39
TAstNode fromGenerated ( Erb:: AstNode n ) { n = toGenerated ( result ) }
46
40
47
- class TDirectiveNode =
48
- TCommentDirective or TDirective or TGraphqlDirective or TOutputDirective or TRawOutputDirective ;
41
+ class TDirectiveNode = TCommentDirective or TDirective or TGraphqlDirective or TOutputDirective ;
49
42
50
43
class TTokenNode = TToken or TComment or TCode ;
0 commit comments