Index: src/scanner.cc |
diff --git a/src/scanner.cc b/src/scanner.cc |
index cf5a69c142de44b9d4e9d36db1aa911337872899..ad7c7d983c5e375afa7ddea2b1e89d6ac2ea89fd 100644 |
--- a/src/scanner.cc |
+++ b/src/scanner.cc |
@@ -1425,6 +1425,13 @@ double Scanner::DoubleValue() { |
} |
+bool Scanner::ContainsDot() { |
+ DCHECK(is_literal_one_byte()); |
+ Vector<const uint8_t> str = literal_one_byte_string(); |
+ return std::find(str.begin(), str.end(), '.') != str.end(); |
+} |
+ |
+ |
int Scanner::FindSymbol(DuplicateFinder* finder, int value) { |
if (is_literal_one_byte()) { |
return finder->AddOneByteSymbol(literal_one_byte_string(), value); |