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

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

Issue 1533823004: Fix owner of mixin forwarding constructors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « runtime/vm/class_finalizer.cc ('k') | tests/language/language_analyzer2.status » ('j') | 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 #include "vm/flags.h" 6 #include "vm/flags.h"
7 7
8 #ifndef DART_PRECOMPILED 8 #ifndef DART_PRECOMPILED
9 9
10 #include "lib/invocation_mirror.h" 10 #include "lib/invocation_mirror.h"
(...skipping 2563 matching lines...) Expand 10 before | Expand all | Expand 10 after
2574 // from a different class. We need to save and restore current 2574 // from a different class. We need to save and restore current
2575 // class, library, and token stream (script). 2575 // class, library, and token stream (script).
2576 ASSERT(current_class().raw() != field.origin()); 2576 ASSERT(current_class().raw() != field.origin());
2577 const Class& saved_class = Class::Handle(Z, current_class().raw()); 2577 const Class& saved_class = Class::Handle(Z, current_class().raw());
2578 const Library& saved_library = Library::Handle(Z, library().raw()); 2578 const Library& saved_library = Library::Handle(Z, library().raw());
2579 const Script& saved_script = Script::Handle(Z, script().raw()); 2579 const Script& saved_script = Script::Handle(Z, script().raw());
2580 const intptr_t saved_token_pos = TokenPos(); 2580 const intptr_t saved_token_pos = TokenPos();
2581 2581
2582 set_current_class(Class::Handle(Z, field.origin())); 2582 set_current_class(Class::Handle(Z, field.origin()));
2583 set_library(Library::Handle(Z, current_class().library())); 2583 set_library(Library::Handle(Z, current_class().library()));
2584 SetScript(Script::Handle(Z, current_class().script()), 2584 SetScript(Script::Handle(Z, current_class().script()), field.token_pos());
2585 field.token_pos());
2586 2585
2587 ASSERT(IsIdentifier()); 2586 ASSERT(IsIdentifier());
2588 ConsumeToken(); 2587 ConsumeToken();
2589 ExpectToken(Token::kASSIGN); 2588 ExpectToken(Token::kASSIGN);
2590 AstNode* init_expr = NULL; 2589 AstNode* init_expr = NULL;
2591 intptr_t expr_pos = TokenPos(); 2590 intptr_t expr_pos = TokenPos();
2592 if (field.is_const()) { 2591 if (field.is_const()) {
2593 init_expr = ParseConstExpr(); 2592 init_expr = ParseConstExpr();
2594 } else { 2593 } else {
2595 init_expr = ParseExpr(kAllowConst, kConsumeCascades); 2594 init_expr = ParseExpr(kAllowConst, kConsumeCascades);
(...skipping 11884 matching lines...) Expand 10 before | Expand all | Expand 10 after
14480 const ArgumentListNode& function_args, 14479 const ArgumentListNode& function_args,
14481 const LocalVariable* temp_for_last_arg, 14480 const LocalVariable* temp_for_last_arg,
14482 bool is_super_invocation) { 14481 bool is_super_invocation) {
14483 UNREACHABLE(); 14482 UNREACHABLE();
14484 return NULL; 14483 return NULL;
14485 } 14484 }
14486 14485
14487 } // namespace dart 14486 } // namespace dart
14488 14487
14489 #endif // DART_PRECOMPILED 14488 #endif // DART_PRECOMPILED
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698