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

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

Issue 10779010: Parameters with function types supported + Added features in mirrors implementation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 8 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:uri'); 7 #import('dart:uri');
8 #import('dart2js_mirror.dart'); 8 #import('dart2js_mirror.dart');
9 9
10 /** 10 /**
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 396
397 /** 397 /**
398 * Returns true if this parameter has a default value. 398 * Returns true if this parameter has a default value.
399 */ 399 */
400 bool hasDefaultValue(); 400 bool hasDefaultValue();
401 401
402 /** 402 /**
403 * Returns true if this parameter is optional. 403 * Returns true if this parameter is optional.
404 */ 404 */
405 bool isOptional(); 405 bool isOptional();
406
407 /**
408 * Returns [:true:] iff this parameter is an initializing formal of a
409 * constructor. That is, if it is of the form [:this.x:] where [:x:] is a
410 * field.
411 */
412 bool isInitializingFormal();
413
414 /**
415 * Returns the initialized field, if this parameter is an initializing formal.
416 */
417 FieldMirror initializedField();
406 } 418 }
407 419
408 /** 420 /**
409 * A [Location] describes the span of an entity in Dart source code. 421 * A [Location] describes the span of an entity in Dart source code.
410 * A [Location] should be the minimum span that encloses the declaration of the 422 * A [Location] should be the minimum span that encloses the declaration of the
411 * mirrored entity. 423 * mirrored entity.
412 */ 424 */
413 interface Location { 425 interface Location {
414 /** 426 /**
415 * The character position where the location begins. 427 * The character position where the location begins.
(...skipping 26 matching lines...) Expand all
442 /** 454 /**
443 * Returns the URI where the source originated. 455 * Returns the URI where the source originated.
444 */ 456 */
445 Uri uri(); 457 Uri uri();
446 458
447 /** 459 /**
448 * Returns the text of this source. 460 * Returns the text of this source.
449 */ 461 */
450 String text(); 462 String text();
451 } 463 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698