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

Side by Side Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 2644543005: Element model support for covariant (Closed)
Patch Set: Created 3 years, 11 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /** 5 /**
6 * This file is an "idl" style description of the summary format. It 6 * This file is an "idl" style description of the summary format. It
7 * contains abstract classes which declare the interface for reading data from 7 * contains abstract classes which declare the interface for reading data from
8 * summaries. It is parsed and transformed into code that implements the 8 * summaries. It is parsed and transformed into code that implements the
9 * summary format. 9 * summary format.
10 * 10 *
(...skipping 2544 matching lines...) Expand 10 before | Expand all | Expand 10 after
2555 int get inheritsCovariantSlot; 2555 int get inheritsCovariantSlot;
2556 2556
2557 /** 2557 /**
2558 * The synthetic initializer function of the parameter. Absent if the variabl e 2558 * The synthetic initializer function of the parameter. Absent if the variabl e
2559 * does not have an initializer. 2559 * does not have an initializer.
2560 */ 2560 */
2561 @Id(12) 2561 @Id(12)
2562 UnlinkedExecutable get initializer; 2562 UnlinkedExecutable get initializer;
2563 2563
2564 /** 2564 /**
2565 * Indicates whether this parameter is explicitly marked as being covariant.
2566 */
2567 @Id(15)
2568 bool get isExplicitlyCovariant;
2569
2570 /**
2565 * Indicates whether this is a function-typed parameter. 2571 * Indicates whether this is a function-typed parameter.
2566 */ 2572 */
2567 @Id(5) 2573 @Id(5)
2568 bool get isFunctionTyped; 2574 bool get isFunctionTyped;
2569 2575
2570 /** 2576 /**
2571 * Indicates whether this is an initializing formal parameter (i.e. it is 2577 * Indicates whether this is an initializing formal parameter (i.e. it is
2572 * declared using `this.` syntax). 2578 * declared using `this.` syntax).
2573 */ 2579 */
2574 @Id(6) 2580 @Id(6)
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
3053 @Id(13) 3059 @Id(13)
3054 UnlinkedExecutable get initializer; 3060 UnlinkedExecutable get initializer;
3055 3061
3056 /** 3062 /**
3057 * Indicates whether the variable is declared using the `const` keyword. 3063 * Indicates whether the variable is declared using the `const` keyword.
3058 */ 3064 */
3059 @Id(6) 3065 @Id(6)
3060 bool get isConst; 3066 bool get isConst;
3061 3067
3062 /** 3068 /**
3069 * Indicates whether this variable is declared using the `covariant` keyword.
3070 * This should be false for everything except instance fields.
3071 */
3072 @Id(14)
3073 bool get isCovariant;
3074
3075 /**
3063 * Indicates whether the variable is declared using the `final` keyword. 3076 * Indicates whether the variable is declared using the `final` keyword.
3064 */ 3077 */
3065 @Id(7) 3078 @Id(7)
3066 bool get isFinal; 3079 bool get isFinal;
3067 3080
3068 /** 3081 /**
3069 * Indicates whether the variable is declared using the `static` keyword. 3082 * Indicates whether the variable is declared using the `static` keyword.
3070 * 3083 *
3071 * Note that for top level variables, this flag is false, since they are not 3084 * Note that for top level variables, this flag is false, since they are not
3072 * declared using the `static` keyword (even though they are considered 3085 * declared using the `static` keyword (even though they are considered
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
3112 @Id(11) 3125 @Id(11)
3113 int get visibleLength; 3126 int get visibleLength;
3114 3127
3115 /** 3128 /**
3116 * If a local variable, the beginning of the visible range; zero otherwise. 3129 * If a local variable, the beginning of the visible range; zero otherwise.
3117 */ 3130 */
3118 @informative 3131 @informative
3119 @Id(12) 3132 @Id(12)
3120 int get visibleOffset; 3133 int get visibleOffset;
3121 } 3134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698