| 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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 func.set_eval_script(script); | 1132 func.set_eval_script(script); |
| 1133 ParsedFunction* parsed_function = new ParsedFunction(isolate, func); | 1133 ParsedFunction* parsed_function = new ParsedFunction(isolate, func); |
| 1134 Parser::ParseFunction(parsed_function); | 1134 Parser::ParseFunction(parsed_function); |
| 1135 return func.raw(); | 1135 return func.raw(); |
| 1136 } else { | 1136 } else { |
| 1137 const Error& error = Error::Handle(isolate->object_store()->sticky_error()); | 1137 const Error& error = Error::Handle(isolate->object_store()->sticky_error()); |
| 1138 isolate->object_store()->clear_sticky_error(); | 1138 isolate->object_store()->clear_sticky_error(); |
| 1139 return error.raw(); | 1139 return error.raw(); |
| 1140 } | 1140 } |
| 1141 UNREACHABLE(); | 1141 UNREACHABLE(); |
| 1142 return NULL; |
| 1142 } | 1143 } |
| 1143 | 1144 |
| 1144 | 1145 |
| 1145 SequenceNode* Parser::ParseStaticFinalGetter(const Function& func) { | 1146 SequenceNode* Parser::ParseStaticFinalGetter(const Function& func) { |
| 1146 TRACE_PARSER("ParseStaticFinalGetter"); | 1147 TRACE_PARSER("ParseStaticFinalGetter"); |
| 1147 ParamList params; | 1148 ParamList params; |
| 1148 ASSERT(func.num_fixed_parameters() == 0); // static. | 1149 ASSERT(func.num_fixed_parameters() == 0); // static. |
| 1149 ASSERT(!func.HasOptionalParameters()); | 1150 ASSERT(!func.HasOptionalParameters()); |
| 1150 ASSERT(AbstractType::Handle(I, func.result_type()).IsResolved()); | 1151 ASSERT(AbstractType::Handle(I, func.result_type()).IsResolved()); |
| 1151 | 1152 |
| (...skipping 11048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12200 void Parser::SkipQualIdent() { | 12201 void Parser::SkipQualIdent() { |
| 12201 ASSERT(IsIdentifier()); | 12202 ASSERT(IsIdentifier()); |
| 12202 ConsumeToken(); | 12203 ConsumeToken(); |
| 12203 if (CurrentToken() == Token::kPERIOD) { | 12204 if (CurrentToken() == Token::kPERIOD) { |
| 12204 ConsumeToken(); // Consume the kPERIOD token. | 12205 ConsumeToken(); // Consume the kPERIOD token. |
| 12205 ExpectIdentifier("identifier expected after '.'"); | 12206 ExpectIdentifier("identifier expected after '.'"); |
| 12206 } | 12207 } |
| 12207 } | 12208 } |
| 12208 | 12209 |
| 12209 } // namespace dart | 12210 } // namespace dart |
| OLD | NEW |