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

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

Issue 1886893006: Implement SyntheticVariableElementForLink.isSynthetic. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | pkg/analyzer/test/src/summary/linker_test.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) 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 3395 matching lines...) Expand 10 before | Expand all | Expand 10 after
3406 * linking. 3406 * linking.
3407 */ 3407 */
3408 class SyntheticVariableElementForLink implements PropertyInducingElementImpl { 3408 class SyntheticVariableElementForLink implements PropertyInducingElementImpl {
3409 PropertyAccessorElementForLink_Executable _getter; 3409 PropertyAccessorElementForLink_Executable _getter;
3410 PropertyAccessorElementForLink_Executable _setter; 3410 PropertyAccessorElementForLink_Executable _setter;
3411 3411
3412 @override 3412 @override
3413 PropertyAccessorElementForLink_Executable get getter => _getter; 3413 PropertyAccessorElementForLink_Executable get getter => _getter;
3414 3414
3415 @override 3415 @override
3416 bool get isSynthetic => true;
3417
3418 @override
3416 PropertyAccessorElementForLink_Executable get setter => _setter; 3419 PropertyAccessorElementForLink_Executable get setter => _setter;
3417 3420
3418 @override 3421 @override
3419 void set type(DartType inferredType) {} 3422 void set type(DartType inferredType) {}
3420 3423
3421 @override 3424 @override
3422 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 3425 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
3423 } 3426 }
3424 3427
3425 /** 3428 /**
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
3984 List<int> implicitFunctionTypeIndices) => 3987 List<int> implicitFunctionTypeIndices) =>
3985 DynamicTypeImpl.instance; 3988 DynamicTypeImpl.instance;
3986 3989
3987 ReferenceableElementForLink getContainedName(String name) { 3990 ReferenceableElementForLink getContainedName(String name) {
3988 return new NonstaticMemberElementForLink(_constNode); 3991 return new NonstaticMemberElementForLink(_constNode);
3989 } 3992 }
3990 3993
3991 @override 3994 @override
3992 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 3995 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
3993 } 3996 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/linker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698