diff options
Diffstat (limited to 'src/shared/cplusplus/Lexer.cpp')
-rw-r--r-- | src/shared/cplusplus/Lexer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shared/cplusplus/Lexer.cpp b/src/shared/cplusplus/Lexer.cpp index 3b75c68421..605551e070 100644 --- a/src/shared/cplusplus/Lexer.cpp +++ b/src/shared/cplusplus/Lexer.cpp @@ -281,7 +281,7 @@ void Lexer::scan_helper(Token *tok) yyinp(); if (control()) - tok->string = control()->findOrInsertStringLiteral(yytext, yylen); + tok->string = control()->stringLiteral(yytext, yylen); } break; case '{': @@ -361,7 +361,7 @@ void Lexer::scan_helper(Token *tok) int yylen = _currentChar - yytext; tok->f.kind = T_NUMERIC_LITERAL; if (control()) - tok->number = control()->findOrInsertNumericLiteral(yytext, yylen); + tok->number = control()->numericLiteral(yytext, yylen); } else { tok->f.kind = T_DOT; } @@ -564,7 +564,7 @@ void Lexer::scan_helper(Token *tok) if (_yychar == '>') yyinp(); if (control()) - tok->string = control()->findOrInsertStringLiteral(yytext, yylen); + tok->string = control()->stringLiteral(yytext, yylen); tok->f.kind = T_ANGLE_STRING_LITERAL; } else if (_yychar == '<') { yyinp(); @@ -642,7 +642,7 @@ void Lexer::scan_helper(Token *tok) yyinp(); if (control()) - tok->string = control()->findOrInsertStringLiteral(yytext, yylen); + tok->string = control()->stringLiteral(yytext, yylen); break; } @@ -679,7 +679,7 @@ void Lexer::scan_helper(Token *tok) yyinp(); if (control()) - tok->string = control()->findOrInsertStringLiteral(yytext, yylen); + tok->string = control()->stringLiteral(yytext, yylen); } else if (std::isalpha(ch) || ch == '_' || ch == '$') { const char *yytext = _currentChar - 1; while (std::isalnum(_yychar) || _yychar == '_' || _yychar == '$') @@ -694,7 +694,7 @@ void Lexer::scan_helper(Token *tok) tok->f.kind = classifyOperator(yytext, yylen); if (control()) - tok->identifier = control()->findOrInsertIdentifier(yytext, yylen); + tok->identifier = control()->identifier(yytext, yylen); } break; } else if (std::isdigit(ch)) { @@ -715,7 +715,7 @@ void Lexer::scan_helper(Token *tok) int yylen = _currentChar - yytext; tok->f.kind = T_NUMERIC_LITERAL; if (control()) - tok->number = control()->findOrInsertNumericLiteral(yytext, yylen); + tok->number = control()->numericLiteral(yytext, yylen); break; } else { tok->f.kind = T_ERROR; |