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

Side by Side Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 1302333006: Support metadata on patches. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove partial renaming 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
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 library dart2js.resolution.members; 5 library dart2js.resolution.members;
6 6
7 import '../common/names.dart' show 7 import '../common/names.dart' show
8 Selectors; 8 Selectors;
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
(...skipping 3765 matching lines...) Expand 10 before | Expand all | Expand 10 after
3776 } 3776 }
3777 if (enclosingElement.isFunction) { 3777 if (enclosingElement.isFunction) {
3778 if (modifiers.isAbstract) { 3778 if (modifiers.isAbstract) {
3779 reportExtraModifier('abstract'); 3779 reportExtraModifier('abstract');
3780 } 3780 }
3781 if (modifiers.isStatic) { 3781 if (modifiers.isStatic) {
3782 reportExtraModifier('static'); 3782 reportExtraModifier('static');
3783 } 3783 }
3784 } 3784 }
3785 if (node.metadata != null) { 3785 if (node.metadata != null) {
3786 variables.metadata = 3786 variables.metadataInternal =
3787 compiler.resolver.resolveMetadata(enclosingElement, node); 3787 compiler.resolver.resolveMetadata(enclosingElement, node);
3788 } 3788 }
3789 visitor.visit(node.definitions); 3789 visitor.visit(node.definitions);
3790 return const NoneResult(); 3790 return const NoneResult();
3791 } 3791 }
3792 3792
3793 ResolutionResult visitWhile(While node) { 3793 ResolutionResult visitWhile(While node) {
3794 visit(node.condition); 3794 visit(node.condition);
3795 visitLoopBodyIn(node, node.body, new BlockScope(scope)); 3795 visitLoopBodyIn(node, node.body, new BlockScope(scope));
3796 return const NoneResult(); 3796 return const NoneResult();
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
4644 } 4644 }
4645 return const NoneResult(); 4645 return const NoneResult();
4646 } 4646 }
4647 } 4647 }
4648 4648
4649 /// Looks up [name] in [scope] and unwraps the result. 4649 /// Looks up [name] in [scope] and unwraps the result.
4650 Element lookupInScope(Compiler compiler, Node node, 4650 Element lookupInScope(Compiler compiler, Node node,
4651 Scope scope, String name) { 4651 Scope scope, String name) {
4652 return Elements.unwrap(scope.lookup(name), compiler, node); 4652 return Elements.unwrap(scope.lookup(name), compiler, node);
4653 } 4653 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698