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

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

Issue 10908152: Add missing dot in comment (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/parser.h" 5 #include "vm/parser.h"
6 6
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/compiler_stats.h" 10 #include "vm/compiler_stats.h"
(...skipping 4891 matching lines...) Expand 10 before | Expand all | Expand 10 after
4902 } 4902 }
4903 // Skip optional metadata. 4903 // Skip optional metadata.
4904 if (CurrentToken() == Token::kAT) { 4904 if (CurrentToken() == Token::kAT) {
4905 const intptr_t saved_pos = TokenPos(); 4905 const intptr_t saved_pos = TokenPos();
4906 SkipMetadata(); 4906 SkipMetadata();
4907 const bool is_var_decl = IsVariableDeclaration(); 4907 const bool is_var_decl = IsVariableDeclaration();
4908 SetPosition(saved_pos); 4908 SetPosition(saved_pos);
4909 return is_var_decl; 4909 return is_var_decl;
4910 } 4910 }
4911 if ((CurrentToken() != Token::kIDENT) && (CurrentToken() != Token::kCONST)) { 4911 if ((CurrentToken() != Token::kIDENT) && (CurrentToken() != Token::kCONST)) {
4912 // Not a legal type identifier or const keyword or metadata 4912 // Not a legal type identifier or const keyword or metadata.
4913 return false; 4913 return false;
4914 } 4914 }
4915 const intptr_t saved_pos = TokenPos(); 4915 const intptr_t saved_pos = TokenPos();
4916 bool is_var_decl = false; 4916 bool is_var_decl = false;
4917 bool have_type = false; 4917 bool have_type = false;
4918 if (CurrentToken() == Token::kCONST) { 4918 if (CurrentToken() == Token::kCONST) {
4919 ConsumeToken(); 4919 ConsumeToken();
4920 have_type = true; // Type is Dynamic. 4920 have_type = true; // Type is Dynamic.
4921 } 4921 }
4922 if (IsIdentifier()) { // Type or variable name. 4922 if (IsIdentifier()) { // Type or variable name.
(...skipping 4547 matching lines...) Expand 10 before | Expand all | Expand 10 after
9470 void Parser::SkipQualIdent() { 9470 void Parser::SkipQualIdent() {
9471 ASSERT(IsIdentifier()); 9471 ASSERT(IsIdentifier());
9472 ConsumeToken(); 9472 ConsumeToken();
9473 if (CurrentToken() == Token::kPERIOD) { 9473 if (CurrentToken() == Token::kPERIOD) {
9474 ConsumeToken(); // Consume the kPERIOD token. 9474 ConsumeToken(); // Consume the kPERIOD token.
9475 ExpectIdentifier("identifier expected after '.'"); 9475 ExpectIdentifier("identifier expected after '.'");
9476 } 9476 }
9477 } 9477 }
9478 9478
9479 } // namespace dart 9479 } // 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