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

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

Issue 2352433002: support `@virtual` fields, fix #27384 (Closed)
Patch Set: Created 4 years, 3 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library is capable of producing linked summaries from unlinked 6 * This library is capable of producing linked summaries from unlinked
7 * ones (or prelinked ones). It functions by building a miniature 7 * ones (or prelinked ones). It functions by building a miniature
8 * element model to represent the contents of the summaries, and then 8 * element model to represent the contents of the summaries, and then
9 * scanning the element model to gather linked information and adding 9 * scanning the element model to gather linked information and adding
10 * it to the summary data structures. 10 * it to the summary data structures.
(...skipping 3979 matching lines...) Expand 10 before | Expand all | Expand 10 after
3990 * Element representing the parameter of a synthetic setter for a variable 3990 * Element representing the parameter of a synthetic setter for a variable
3991 * resynthesized during linking. 3991 * resynthesized during linking.
3992 */ 3992 */
3993 class ParameterElementForLink_VariableSetter implements ParameterElementImpl { 3993 class ParameterElementForLink_VariableSetter implements ParameterElementImpl {
3994 @override 3994 @override
3995 final PropertyAccessorElementForLink_Variable enclosingElement; 3995 final PropertyAccessorElementForLink_Variable enclosingElement;
3996 3996
3997 ParameterElementForLink_VariableSetter(this.enclosingElement); 3997 ParameterElementForLink_VariableSetter(this.enclosingElement);
3998 3998
3999 @override 3999 @override
4000 bool inheritsCovariant = false;
4001
4002 @override
4000 bool get isCovariant => false; 4003 bool get isCovariant => false;
4001 4004
4002 @override 4005 @override
4003 bool get isSynthetic => true; 4006 bool get isSynthetic => true;
4004 4007
4005 @override 4008 @override
4006 String get name => 'x'; 4009 String get name => 'x';
4007 4010
4008 @override 4011 @override
4009 ParameterKind get parameterKind => ParameterKind.REQUIRED; 4012 ParameterKind get parameterKind => ParameterKind.REQUIRED;
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
4970 * there are no type parameters in scope. 4973 * there are no type parameters in scope.
4971 */ 4974 */
4972 TypeParameterizedElementMixin get _typeParameterContext; 4975 TypeParameterizedElementMixin get _typeParameterContext;
4973 4976
4974 @override 4977 @override
4975 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 4978 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
4976 4979
4977 @override 4980 @override
4978 String toString() => '$enclosingElement.$name'; 4981 String toString() => '$enclosingElement.$name';
4979 } 4982 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/member.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698