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

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

Issue 11345035: TypeVariableMirror and TypedefMirror updated. (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 | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/src/mirrors/dart2js_mirror.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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 * Returns the default type for this interface. 342 * Returns the default type for this interface.
343 */ 343 */
344 ClassMirror get defaultFactory; 344 ClassMirror get defaultFactory;
345 } 345 }
346 346
347 /** 347 /**
348 * A type parameter as declared on a generic type. 348 * A type parameter as declared on a generic type.
349 */ 349 */
350 abstract class TypeVariableMirror implements TypeMirror { 350 abstract class TypeVariableMirror implements TypeMirror {
351 /** 351 /**
352 * Return a mirror on the class, interface, or typedef that declared the
353 * type variable.
354 */
355 // Should not be called [declaration] as we then would have two [TypeMirror]
356 // subtypes ([InterfaceMirror] and [TypeVariableMirror]) which have
357 // [declaration()] methods but with different semantics.
358 ClassMirror get declarer;
359
360 /**
361 * Returns the bound of the type parameter. 352 * Returns the bound of the type parameter.
362 */ 353 */
363 TypeMirror get bound; 354 TypeMirror get upperBound;
364 } 355 }
365 356
366 /** 357 /**
367 * A function type. 358 * A function type.
368 */ 359 */
369 abstract class FunctionTypeMirror implements ClassMirror { 360 abstract class FunctionTypeMirror implements ClassMirror {
370 /** 361 /**
371 * Returns the return type of this function type. 362 * Returns the return type of this function type.
372 */ 363 */
373 TypeMirror get returnType; 364 TypeMirror get returnType;
374 365
375 /** 366 /**
376 * Returns the parameters for this function type. 367 * Returns the parameters for this function type.
377 */ 368 */
378 List<ParameterMirror> get parameters; 369 List<ParameterMirror> get parameters;
379 370
380 /** 371 /**
381 * Returns the call method for this function type. 372 * Returns the call method for this function type.
382 */ 373 */
383 MethodMirror get callMethod; 374 MethodMirror get callMethod;
384 } 375 }
385 376
386 /** 377 /**
387 * A typedef. 378 * A typedef.
388 */ 379 */
389 abstract class TypedefMirror implements ClassMirror { 380 abstract class TypedefMirror implements ClassMirror {
390 /** 381 /**
391 * Returns the defining type for this typedef. For instance [:void f(int):] 382 * The defining type for this typedef.
392 * for a [:typedef void f(int):]. 383 *
384 * For instance [:void f(int):] for a [:typedef void f(int):].
393 */ 385 */
394 TypeMirror get definition; 386 TypeMirror get value;
395 } 387 }
396 388
397 /** 389 /**
398 * A member of a type, i.e. a field, method or constructor. 390 * A member of a type, i.e. a field, method or constructor.
399 */ 391 */
400 abstract class MemberMirror implements DeclarationMirror { 392 abstract class MemberMirror implements DeclarationMirror {
401 /** 393 /**
402 * Returns true if this is a top level member, i.e. a member not within a 394 * Returns true if this is a top level member, i.e. a member not within a
403 * type. 395 * type.
404 */ 396 */
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 /** 570 /**
579 * Returns the URI where the source originated. 571 * Returns the URI where the source originated.
580 */ 572 */
581 Uri get uri; 573 Uri get uri;
582 574
583 /** 575 /**
584 * Returns the text of this source. 576 * Returns the text of this source.
585 */ 577 */
586 String get text; 578 String get text;
587 } 579 }
OLDNEW
« no previous file with comments | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/src/mirrors/dart2js_mirror.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698