Debian Codegraph @

internal/ast/lexnode.go

raw symbols SCIP
1 //Copyright 2013 Vastech SA (PTY) LTD
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package ast
16
17 type LexNode interface {
18 LexTerminal() bool
19 String() string
20 }
21
22 func (LexAlt) LexTerminal() bool {
23 return false
24 }
25
26 func (LexGroupPattern) LexTerminal() bool {
27 return false
28 }
29
30 func (*LexIgnoredTokDef) LexTerminal() bool {
31 return false
32 }
33
34 func (LexImports) LexTerminal() bool {
35 return false
36 }
37
38 func (LexOptPattern) LexTerminal() bool {
39 return false
40 }
41
42 func (LexPattern) LexTerminal() bool {
43 return false
44 }
45
46 func (LexProductions) LexTerminal() bool {
47 return false
48 }
49
50 func (*LexRegDef) LexTerminal() bool {
51 return false
52 }
53
54 func (LexRepPattern) LexTerminal() bool {
55 return false
56 }
57
58 func (*LexTokDef) LexTerminal() bool {
59 return false
60 }
61
62 func (*LexCharLit) LexTerminal() bool {
63 return true
64 }
65
66 func (*LexCharRange) LexTerminal() bool {
67 return true
68 }
69
70 func (LexDot) LexTerminal() bool {
71 return true
72 }
73
74 func (LexRegDefId) LexTerminal() bool {
75 return true
76 }