| 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 astscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/ |
| 16 | |
| 17 | type LexNTNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNTNode# interface { |
| 18 | LexNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNode# |
| 19 | Elementscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNTNode#Element.(int) LexNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNode# |
| 20 | Lenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNTNode#Len.() int |
| 21 | Walkscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNTNode#Walk.(LexNodeVisitorscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNodeVisitor#) LexNodeVisitorscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNodeVisitor# |
| 22 | } |
| 23 | |
| 24 | // Element |
| 25 | |
| 26 | func (this *LexAltscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexAlt#) Elementscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexAlt#Element().(i int) LexNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNode# { |
| 27 | return this.Termsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexAlt#Terms.[i] |
| 28 | } |
| 29 | |
| 30 | func (this *LexGroupPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexGroupPattern#) Elementscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexGroupPattern#Element().(i int) LexNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNode# { |
| 31 | return this.LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexGroupPattern#LexPattern..Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.[i] |
| 32 | } |
| 33 | |
| 34 | func (this *LexOptPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexOptPattern#) Elementscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexOptPattern#Element().(i int) LexNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNode# { |
| 35 | return this.LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexOptPattern#LexPattern..Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.[i] |
| 36 | } |
| 37 | |
| 38 | func (this *LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#) Elementscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Element().(i int) LexNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNode# { |
| 39 | return this.Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.[i] |
| 40 | } |
| 41 | |
| 42 | func (this *LexRepPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexRepPattern#) Elementscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexRepPattern#Element().(i int) LexNodescip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexNode# { |
| 43 | return this.LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexRepPattern#LexPattern..Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.[i] |
| 44 | } |
| 45 | |
| 46 | // Len |
| 47 | |
| 48 | func (this *LexAltscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexAlt#) Lenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexAlt#Len().() int { |
| 49 | return len(this.Termsscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexAlt#Terms.) |
| 50 | } |
| 51 | |
| 52 | func (this *LexGroupPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexGroupPattern#) Lenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexGroupPattern#Len().() int { |
| 53 | return len(this.LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexGroupPattern#LexPattern..Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.) |
| 54 | } |
| 55 | |
| 56 | func (this *LexOptPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexOptPattern#) Lenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexOptPattern#Len().() int { |
| 57 | return len(this.LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexOptPattern#LexPattern..Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.) |
| 58 | } |
| 59 | |
| 60 | func (this *LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#) Lenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Len().() int { |
| 61 | return len(this.Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.) |
| 62 | } |
| 63 | |
| 64 | func (this *LexRepPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexRepPattern#) Lenscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexRepPattern#Len().() int { |
| 65 | return len(this.LexPatternscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexRepPattern#LexPattern..Alternativesscip-go gomod github.com/goccmack/gocc . `github.com/goccmack/gocc/internal/ast`/LexPattern#Alternatives.) |
| 66 | } |