| 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/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  Loading... | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |