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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart

Issue 18323004: Add lookupInScope to DeclarationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 mirrors; 5 library mirrors;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 /** 9 /**
10 * The main interface for the whole mirror system. 10 * The main interface for the whole mirror system.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 * 98 *
99 * This is defined to be equivalent to: 99 * This is defined to be equivalent to:
100 * [:mirror.owner != null && mirror.owner is LibraryMirror:] 100 * [:mirror.owner != null && mirror.owner is LibraryMirror:]
101 */ 101 */
102 bool get isTopLevel; 102 bool get isTopLevel;
103 103
104 /** 104 /**
105 * A list of the metadata associated with this declaration. 105 * A list of the metadata associated with this declaration.
106 */ 106 */
107 List<InstanceMirror> get metadata; 107 List<InstanceMirror> get metadata;
108
109 /**
110 * Looks up the potentially qualified [name] in the scope of this declaration.
Andrei Mouravski 2013/07/01 17:46:26 What does "potentially qualified" mean? Further,
Johnni Winther 2013/07/03 05:47:57 Done.
111 * For methods and constructors, the scope includes the parameters.
sra1 2013/07/01 18:57:30 For parameterized classes, does the scope include
Johnni Winther 2013/07/03 05:47:57 Yes. Added note in the documentation.
112 */
113 DeclarationMirror lookupInScope(String name);
108 } 114 }
109 115
110 abstract class ObjectMirror implements Mirror { 116 abstract class ObjectMirror implements Mirror {
111 /** 117 /**
112 * Invokes a getter and returns a mirror on the result. The getter 118 * Invokes a getter and returns a mirror on the result. The getter
113 * can be the implicit getter for a field or a user-defined getter 119 * can be the implicit getter for a field or a user-defined getter
114 * method. 120 * method.
115 */ 121 */
116 InstanceMirror getField(String fieldName); 122 InstanceMirror getField(String fieldName);
117 } 123 }
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 /** 685 /**
680 * Returns the URI where the source originated. 686 * Returns the URI where the source originated.
681 */ 687 */
682 Uri get sourceUri; 688 Uri get sourceUri;
683 689
684 /** 690 /**
685 * Returns the text of this source. 691 * Returns the text of this source.
686 */ 692 */
687 String get sourceText; 693 String get sourceText;
688 } 694 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698