Eliminate DQUOT_START/SQUOT_START tokens 49/92249/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Aug 2020 20:53:39 +0000 (22:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 23 Aug 2020 20:58:47 +0000 (22:58 +0200)
commit92a6c34fae26e54f9cf962228374805198b65059
treed56b7ff1717fc326257644440c0922f184766297
parentad89b714e236a41e6e9a1e07fdbacaa864726b9b
Eliminate DQUOT_START/SQUOT_START tokens

Quoted strings are naturally terminated by end marker, potentially
preceded by DQUOT_STRING/SQUOT_STRING. This renders the corresponding
start tokens really just a academic completeness, costing us memory
while not bringing anything to the table.

Skip generation of these tokens, reducing memory usage by up to 4.5%.

JIRA: YANGTOOLS-1089
Change-Id: I0b7ce9bf292b0dd8475d63869ddfd8d2b86a387c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-antlr/src/main/antlr4/org/opendaylight/yangtools/yang/parser/antlr/YangStatementLexer.g4
yang/yang-parser-antlr/src/main/antlr4/org/opendaylight/yangtools/yang/parser/antlr/YangStatementParser.g4
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/repo/ArgumentContextUtils.java