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

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

Issue 2757143002: The parameter of synthetic setters should inherit 'covariant'. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/link.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) 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 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 */ 817 */
818 abstract class LinkedUnit extends base.SummaryClass { 818 abstract class LinkedUnit extends base.SummaryClass {
819 /** 819 /**
820 * List of slot ids (referring to [UnlinkedExecutable.constCycleSlot]) 820 * List of slot ids (referring to [UnlinkedExecutable.constCycleSlot])
821 * corresponding to const constructors that are part of cycles. 821 * corresponding to const constructors that are part of cycles.
822 */ 822 */
823 @Id(2) 823 @Id(2)
824 List<int> get constCycles; 824 List<int> get constCycles;
825 825
826 /** 826 /**
827 * List of slot ids (referring to [UnlinkedParam.inheritsCovariantSlot]) 827 * List of slot ids (referring to [UnlinkedParam.inheritsCovariantSlot] or
828 * corresponding to parameters that inherit `@covariant` behavior from a base 828 * [UnlinkedVariable.inheritsCovariantSlot]) corresponding to parameters
829 * class. 829 * that inherit `@covariant` behavior from a base class.
830 */ 830 */
831 @Id(3) 831 @Id(3)
832 List<int> get parametersInheritingCovariant; 832 List<int> get parametersInheritingCovariant;
833 833
834 /** 834 /**
835 * Information about the resolution of references within the compilation 835 * Information about the resolution of references within the compilation
836 * unit. Each element of [UnlinkedUnit.references] has a corresponding 836 * unit. Each element of [UnlinkedUnit.references] has a corresponding
837 * element in this list (at the same index). If this list has additional 837 * element in this list (at the same index). If this list has additional
838 * elements beyond the number of elements in [UnlinkedUnit.references], those 838 * elements beyond the number of elements in [UnlinkedUnit.references], those
839 * additional elements are references that are only referred to implicitly 839 * additional elements are references that are only referred to implicitly
(...skipping 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after
3217 /** 3217 /**
3218 * If this variable is inferable, nonzero slot id identifying which entry in 3218 * If this variable is inferable, nonzero slot id identifying which entry in
3219 * [LinkedLibrary.types] contains the inferred type for this variable. If 3219 * [LinkedLibrary.types] contains the inferred type for this variable. If
3220 * there is no matching entry in [LinkedLibrary.types], then no type was 3220 * there is no matching entry in [LinkedLibrary.types], then no type was
3221 * inferred for this variable, so its static type is `dynamic`. 3221 * inferred for this variable, so its static type is `dynamic`.
3222 */ 3222 */
3223 @Id(9) 3223 @Id(9)
3224 int get inferredTypeSlot; 3224 int get inferredTypeSlot;
3225 3225
3226 /** 3226 /**
3227 * If this is an instance non-final field, a nonzero slot id which is unique
3228 * within this compilation unit. If this id is found in
3229 * [LinkedUnit.parametersInheritingCovariant], then the parameter of the
3230 * synthetic setter inherits `@covariant` behavior from a base class.
3231 *
3232 * Otherwise, zero.
3233 */
3234 @Id(15)
3235 int get inheritsCovariantSlot;
3236
3237 /**
3227 * The synthetic initializer function of the variable. Absent if the variable 3238 * The synthetic initializer function of the variable. Absent if the variable
3228 * does not have an initializer. 3239 * does not have an initializer.
3229 */ 3240 */
3230 @Id(13) 3241 @Id(13)
3231 UnlinkedExecutable get initializer; 3242 UnlinkedExecutable get initializer;
3232 3243
3233 /** 3244 /**
3234 * Indicates whether the variable is declared using the `const` keyword. 3245 * Indicates whether the variable is declared using the `const` keyword.
3235 */ 3246 */
3236 @Id(6) 3247 @Id(6)
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
3296 @Id(11) 3307 @Id(11)
3297 int get visibleLength; 3308 int get visibleLength;
3298 3309
3299 /** 3310 /**
3300 * If a local variable, the beginning of the visible range; zero otherwise. 3311 * If a local variable, the beginning of the visible range; zero otherwise.
3301 */ 3312 */
3302 @informative 3313 @informative
3303 @Id(12) 3314 @Id(12)
3304 int get visibleOffset; 3315 int get visibleOffset;
3305 } 3316 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/link.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698