| 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 "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 9425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9436 (current_block_->scope->function_level() > 0)) { | 9436 (current_block_->scope->function_level() > 0)) { |
| 9437 // Make sure that the instantiator is captured. | 9437 // Make sure that the instantiator is captured. |
| 9438 CaptureInstantiator(); | 9438 CaptureInstantiator(); |
| 9439 } | 9439 } |
| 9440 // If the type argument vector is not instantiated, we verify in checked | 9440 // If the type argument vector is not instantiated, we verify in checked |
| 9441 // mode at runtime that it is within its declared bounds. | 9441 // mode at runtime that it is within its declared bounds. |
| 9442 new_object = CreateConstructorCallNode( | 9442 new_object = CreateConstructorCallNode( |
| 9443 new_pos, type_arguments, constructor, arguments); | 9443 new_pos, type_arguments, constructor, arguments); |
| 9444 } | 9444 } |
| 9445 if (check_result_type) { | 9445 if (check_result_type) { |
| 9446 const String& dst_name = String::ZoneHandle(Symbols::New("factory result")); | 9446 const String& dst_name = String::ZoneHandle(Symbols::FactoryResult()); |
| 9447 new_object = new AssignableNode(new_pos, new_object, type, dst_name); | 9447 new_object = new AssignableNode(new_pos, new_object, type, dst_name); |
| 9448 } | 9448 } |
| 9449 return new_object; | 9449 return new_object; |
| 9450 } | 9450 } |
| 9451 | 9451 |
| 9452 | 9452 |
| 9453 String& Parser::Interpolate(ArrayNode* values) { | 9453 String& Parser::Interpolate(ArrayNode* values) { |
| 9454 const String& class_name = String::Handle(Symbols::StringBase()); | 9454 const String& class_name = String::Handle(Symbols::StringBase()); |
| 9455 const Class& cls = Class::Handle(LookupCoreClass(class_name)); | 9455 const Class& cls = Class::Handle(LookupCoreClass(class_name)); |
| 9456 ASSERT(!cls.IsNull()); | 9456 ASSERT(!cls.IsNull()); |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10048 void Parser::SkipQualIdent() { | 10048 void Parser::SkipQualIdent() { |
| 10049 ASSERT(IsIdentifier()); | 10049 ASSERT(IsIdentifier()); |
| 10050 ConsumeToken(); | 10050 ConsumeToken(); |
| 10051 if (CurrentToken() == Token::kPERIOD) { | 10051 if (CurrentToken() == Token::kPERIOD) { |
| 10052 ConsumeToken(); // Consume the kPERIOD token. | 10052 ConsumeToken(); // Consume the kPERIOD token. |
| 10053 ExpectIdentifier("identifier expected after '.'"); | 10053 ExpectIdentifier("identifier expected after '.'"); |
| 10054 } | 10054 } |
| 10055 } | 10055 } |
| 10056 | 10056 |
| 10057 } // namespace dart | 10057 } // namespace dart |
| OLD | NEW |