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

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

Issue 1305183010: - Reorder the priority of flags in the test harness when passed to the VM: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | tests/language/assertion_test.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')
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 "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/ast_transformer.h" 9 #include "vm/ast_transformer.h"
10 #include "vm/bootstrap.h" 10 #include "vm/bootstrap.h"
(...skipping 9094 matching lines...) Expand 10 before | Expand all | Expand 10 after
9105 } 9105 }
9106 return condition; 9106 return condition;
9107 } 9107 }
9108 9108
9109 9109
9110 AstNode* Parser::ParseAssertStatement() { 9110 AstNode* Parser::ParseAssertStatement() {
9111 TRACE_PARSER("ParseAssertStatement"); 9111 TRACE_PARSER("ParseAssertStatement");
9112 ConsumeToken(); // Consume assert keyword. 9112 ConsumeToken(); // Consume assert keyword.
9113 ExpectToken(Token::kLPAREN); 9113 ExpectToken(Token::kLPAREN);
9114 const intptr_t condition_pos = TokenPos(); 9114 const intptr_t condition_pos = TokenPos();
9115 if (!I->flags().asserts() && !I->flags().type_checks()) { 9115 if (!I->flags().asserts()) {
9116 SkipExpr(); 9116 SkipExpr();
9117 ExpectToken(Token::kRPAREN); 9117 ExpectToken(Token::kRPAREN);
9118 return NULL; 9118 return NULL;
9119 } 9119 }
9120 AstNode* condition = ParseAwaitableExpr(kAllowConst, kConsumeCascades, NULL); 9120 AstNode* condition = ParseAwaitableExpr(kAllowConst, kConsumeCascades, NULL);
9121 const intptr_t condition_end = TokenPos(); 9121 const intptr_t condition_end = TokenPos();
9122 ExpectToken(Token::kRPAREN); 9122 ExpectToken(Token::kRPAREN);
9123 condition = InsertClosureCallNodes(condition); 9123 condition = InsertClosureCallNodes(condition);
9124 condition = new(Z) UnaryOpNode(condition_pos, Token::kNOT, condition); 9124 condition = new(Z) UnaryOpNode(condition_pos, Token::kNOT, condition);
9125 AstNode* assert_throw = MakeAssertCall(condition_pos, condition_end); 9125 AstNode* assert_throw = MakeAssertCall(condition_pos, condition_end);
(...skipping 5137 matching lines...) Expand 10 before | Expand all | Expand 10 after
14263 void Parser::SkipQualIdent() { 14263 void Parser::SkipQualIdent() {
14264 ASSERT(IsIdentifier()); 14264 ASSERT(IsIdentifier());
14265 ConsumeToken(); 14265 ConsumeToken();
14266 if (CurrentToken() == Token::kPERIOD) { 14266 if (CurrentToken() == Token::kPERIOD) {
14267 ConsumeToken(); // Consume the kPERIOD token. 14267 ConsumeToken(); // Consume the kPERIOD token.
14268 ExpectIdentifier("identifier expected after '.'"); 14268 ExpectIdentifier("identifier expected after '.'");
14269 } 14269 }
14270 } 14270 }
14271 14271
14272 } // namespace dart 14272 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | tests/language/assertion_test.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698