Skip to content

Commit afe60e1

Browse files
committed
Update flatc.js
1 parent c5f2d89 commit afe60e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tools/flatc.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ flatc.Parser = class {
323323

324324
constructor(text, file, root) {
325325
// 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);
327327
this._root = root;
328328
this._context = root.defineNamespace('');
329329
}
@@ -524,7 +524,7 @@ flatc.Parser = class {
524524
}
525525
};
526526

527-
flatc.Parser.Tokenizer = class {
527+
flatc.Tokenizer = class {
528528

529529
constructor(text, file) {
530530
this._text = text;
@@ -549,7 +549,7 @@ flatc.Parser.Tokenizer = class {
549549
}
550550
const next = this._position + this._token.token.length;
551551
while (this._position < next) {
552-
if (flatc.Parser.Tokenizer._isNewline(this._get(this._position))) {
552+
if (flatc.Tokenizer._isNewline(this._get(this._position))) {
553553
this._position = this._newLine(this._position);
554554
this._lineStart = this._position;
555555
this._line++;
@@ -690,7 +690,7 @@ flatc.Parser.Tokenizer = class {
690690

691691
_skipLine() {
692692
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))) {
694694
break;
695695
}
696696
this._position++;
@@ -700,11 +700,11 @@ flatc.Parser.Tokenizer = class {
700700
_skipWhitespace() {
701701
while (this._position < this._text.length) {
702702
const c = this._get(this._position);
703-
if (flatc.Parser.Tokenizer._isSpace(c)) {
703+
if (flatc.Tokenizer._isSpace(c)) {
704704
this._position++;
705705
continue;
706706
}
707-
if (flatc.Parser.Tokenizer._isNewline(c)) {
707+
if (flatc.Tokenizer._isNewline(c)) {
708708
// Implicit Line Continuation
709709
this._position = this._newLine(this._position);
710710
this._lineStart = this._position;

0 commit comments

Comments
 (0)