Skip to content

Commit dfc2ae5

Browse files
committed
Move getTermIdentifier closer to getIdentifier
1 parent 26cb40a commit dfc2ae5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fluent-syntax/src/parser.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,13 @@ export default class FluentParser {
309309
return new AST.Identifier(name);
310310
}
311311

312+
getTermIdentifier(ps) {
313+
ps.expectChar("-");
314+
const id = this.getIdentifier(ps);
315+
return new AST.Identifier(`-${id.name}`);
316+
317+
}
318+
312319
getVariantKey(ps) {
313320
const ch = ps.current();
314321

@@ -794,11 +801,4 @@ export default class FluentParser {
794801

795802
throw new ParseError("E0014");
796803
}
797-
798-
getTermIdentifier(ps) {
799-
ps.expectChar("-");
800-
const id = this.getIdentifier(ps);
801-
return new AST.Identifier(`-${id.name}`);
802-
803-
}
804804
}

0 commit comments

Comments
 (0)