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

Side by Side Diff: pkg/dartdoc/lib/mirrors.dart

Issue 11366004: Update MirrorSystem (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | pkg/dartdoc/lib/mirrors_util.dart » ('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 #library('mirrors'); 5 #library('mirrors');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 #import('dart:uri'); 8 #import('dart:uri');
9 9
10 // TODO(rnystrom): Use "package:" URL (#4968). 10 // TODO(rnystrom): Use "package:" URL (#4968).
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 /** 51 /**
52 * The main interface for the whole mirror system. 52 * The main interface for the whole mirror system.
53 */ 53 */
54 abstract class MirrorSystem { 54 abstract class MirrorSystem {
55 /** 55 /**
56 * Returns an unmodifiable map of all libraries in this mirror system. 56 * Returns an unmodifiable map of all libraries in this mirror system.
57 */ 57 */
58 Map<String, LibraryMirror> get libraries; 58 Map<String, LibraryMirror> get libraries;
59
60 /**
61 * A mirror on the [:Dynamic:] type.
kasperl 2012/10/31 10:34:54 [:Dynamic:] -> [:dynamic:]
Johnni Winther 2012/10/31 10:56:40 Done.
62 */
63 TypeMirror get dynamicType;
64
65 /**
66 * A mirror on the [:void:] type.
67 */
68 TypeMirror get voidType;
59 } 69 }
60 70
61 71
62 /** 72 /**
63 * An entity in the mirror system. 73 * An entity in the mirror system.
64 */ 74 */
65 abstract class Mirror { 75 abstract class Mirror {
66 static const String UNARY_MINUS = 'unary-'; 76 static const String UNARY_MINUS = 'unary-';
67 77
68 /** 78 /**
69 * Returns the mirror system which contains this mirror. 79 * Returns the mirror system which contains this mirror.
70 */ 80 */
71 MirrorSystem get system; 81 MirrorSystem get mirrors;
72 } 82 }
73 83
74 abstract class DeclarationMirror implements Mirror { 84 abstract class DeclarationMirror implements Mirror {
75 /** 85 /**
76 * The simple name of the entity. The simple name is unique within the 86 * The simple name of the entity. The simple name is unique within the
77 * scope of the entity declaration. 87 * scope of the entity declaration.
78 * 88 *
79 * The simple name is in most cases the declared single identifier name of 89 * The simple name is in most cases the declared single identifier name of
80 * the entity, such as 'method' for a method [:void method() {...}:]. For an 90 * the entity, such as 'method' for a method [:void method() {...}:]. For an
81 * unnamed constructor for [:class Foo:] the simple name is 'Foo'. For a 91 * unnamed constructor for [:class Foo:] the simple name is 'Foo'. For a
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 /** 579 /**
570 * Returns the URI where the source originated. 580 * Returns the URI where the source originated.
571 */ 581 */
572 Uri get uri; 582 Uri get uri;
573 583
574 /** 584 /**
575 * Returns the text of this source. 585 * Returns the text of this source.
576 */ 586 */
577 String get text; 587 String get text;
578 } 588 }
OLDNEW
« no previous file with comments | « no previous file | pkg/dartdoc/lib/mirrors_util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698