Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: runtime/vm/scanner.cc

Issue 11043010: Eliminate support for old raw string format (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698