| 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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 if (c0_ == '=') { | 766 if (c0_ == '=') { |
| 767 Recognize(Token::kEQ); | 767 Recognize(Token::kEQ); |
| 768 if (c0_ == '=') { | 768 if (c0_ == '=') { |
| 769 Recognize(Token::kEQ_STRICT); | 769 Recognize(Token::kEQ_STRICT); |
| 770 } | 770 } |
| 771 } else if (c0_ == '>') { | 771 } else if (c0_ == '>') { |
| 772 Recognize(Token::kARROW); | 772 Recognize(Token::kARROW); |
| 773 } | 773 } |
| 774 break; | 774 break; |
| 775 | 775 |
| 776 case '.': // . Number | 776 case '.': // . .. Number |
| 777 Recognize(Token::kPERIOD); | 777 Recognize(Token::kPERIOD); |
| 778 if (IsDecimalDigit(c0_)) { | 778 if (c0_ == '.') { |
| 779 Recognize(Token::kCASCADE); |
| 780 } else if (IsDecimalDigit(c0_)) { |
| 779 ScanNumber(true); | 781 ScanNumber(true); |
| 780 } | 782 } |
| 781 break; | 783 break; |
| 782 | 784 |
| 783 case '?': | 785 case '?': |
| 784 Recognize(Token::kCONDITIONAL); | 786 Recognize(Token::kCONDITIONAL); |
| 785 break; | 787 break; |
| 786 | 788 |
| 787 case ':': | 789 case ':': |
| 788 Recognize(Token::kCOLON); | 790 Recognize(Token::kCOLON); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 "%c%"PRIxPTR, kPrivateKeySeparator, key_value); | 947 "%c%"PRIxPTR, kPrivateKeySeparator, key_value); |
| 946 const String& result = String::Handle(String::New(private_key, Heap::kOld)); | 948 const String& result = String::Handle(String::New(private_key, Heap::kOld)); |
| 947 return result.raw(); | 949 return result.raw(); |
| 948 } | 950 } |
| 949 | 951 |
| 950 | 952 |
| 951 void Scanner::InitOnce() { | 953 void Scanner::InitOnce() { |
| 952 } | 954 } |
| 953 | 955 |
| 954 } // namespace dart | 956 } // namespace dart |
| OLD | NEW |