@@ -323,7 +323,7 @@ flatc.Parser = class {
323
323
324
324
constructor ( text , file , root ) {
325
325
// https://google.github.io/flatbuffers/flatbuffers_grammar.html
326
- this . _tokenizer = new flatc . Parser . Tokenizer ( text , file ) ;
326
+ this . _tokenizer = new flatc . Tokenizer ( text , file ) ;
327
327
this . _root = root ;
328
328
this . _context = root . defineNamespace ( '' ) ;
329
329
}
@@ -524,7 +524,7 @@ flatc.Parser = class {
524
524
}
525
525
} ;
526
526
527
- flatc . Parser . Tokenizer = class {
527
+ flatc . Tokenizer = class {
528
528
529
529
constructor ( text , file ) {
530
530
this . _text = text ;
@@ -549,7 +549,7 @@ flatc.Parser.Tokenizer = class {
549
549
}
550
550
const next = this . _position + this . _token . token . length ;
551
551
while ( this . _position < next ) {
552
- if ( flatc . Parser . Tokenizer . _isNewline ( this . _get ( this . _position ) ) ) {
552
+ if ( flatc . Tokenizer . _isNewline ( this . _get ( this . _position ) ) ) {
553
553
this . _position = this . _newLine ( this . _position ) ;
554
554
this . _lineStart = this . _position ;
555
555
this . _line ++ ;
@@ -690,7 +690,7 @@ flatc.Parser.Tokenizer = class {
690
690
691
691
_skipLine ( ) {
692
692
while ( this . _position < this . _text . length ) {
693
- if ( flatc . Parser . Tokenizer . _isNewline ( this . _get ( this . _position ) ) ) {
693
+ if ( flatc . Tokenizer . _isNewline ( this . _get ( this . _position ) ) ) {
694
694
break ;
695
695
}
696
696
this . _position ++ ;
@@ -700,11 +700,11 @@ flatc.Parser.Tokenizer = class {
700
700
_skipWhitespace ( ) {
701
701
while ( this . _position < this . _text . length ) {
702
702
const c = this . _get ( this . _position ) ;
703
- if ( flatc . Parser . Tokenizer . _isSpace ( c ) ) {
703
+ if ( flatc . Tokenizer . _isSpace ( c ) ) {
704
704
this . _position ++ ;
705
705
continue ;
706
706
}
707
- if ( flatc . Parser . Tokenizer . _isNewline ( c ) ) {
707
+ if ( flatc . Tokenizer . _isNewline ( c ) ) {
708
708
// Implicit Line Continuation
709
709
this . _position = this . _newLine ( this . _position ) ;
710
710
this . _lineStart = this . _position ;
0 commit comments