| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/scanner.h" | 5 #include "vm/scanner.h" |
| 6 | 6 |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/object_store.h" | 10 #include "vm/object_store.h" |
| (...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 case ')': | 815 case ')': |
| 816 Recognize(Token::kRPAREN); | 816 Recognize(Token::kRPAREN); |
| 817 break; | 817 break; |
| 818 | 818 |
| 819 case ',': | 819 case ',': |
| 820 Recognize(Token::kCOMMA); | 820 Recognize(Token::kCOMMA); |
| 821 break; | 821 break; |
| 822 | 822 |
| 823 case '@': | 823 case '@': |
| 824 Recognize(Token::kAT); | 824 Recognize(Token::kAT); |
| 825 if ((c0_ == '"') || (c0_ == '\'')) { | |
| 826 ScanLiteralString(true); | |
| 827 } | |
| 828 break; | 825 break; |
| 829 | 826 |
| 830 case 'r': | 827 case 'r': |
| 831 if ((LookaheadChar(1) == '"') || (LookaheadChar(1) == '\'')) { | 828 if ((LookaheadChar(1) == '"') || (LookaheadChar(1) == '\'')) { |
| 832 ReadChar(); | 829 ReadChar(); |
| 833 ScanLiteralString(true); | 830 ScanLiteralString(true); |
| 834 } else { | 831 } else { |
| 835 ScanIdent(); | 832 ScanIdent(); |
| 836 } | 833 } |
| 837 break; | 834 break; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 "%c%#"Px"", kPrivateKeySeparator, key_value); | 949 "%c%#"Px"", kPrivateKeySeparator, key_value); |
| 953 const String& result = String::Handle(String::New(private_key, Heap::kOld)); | 950 const String& result = String::Handle(String::New(private_key, Heap::kOld)); |
| 954 return result.raw(); | 951 return result.raw(); |
| 955 } | 952 } |
| 956 | 953 |
| 957 | 954 |
| 958 void Scanner::InitOnce() { | 955 void Scanner::InitOnce() { |
| 959 } | 956 } |
| 960 | 957 |
| 961 } // namespace dart | 958 } // namespace dart |
| OLD | NEW |