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

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

Issue 1670353002: Enforce LinkedReference.dependency == 0 for contained entities. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add a switch case to clarify. Created 4 years, 10 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 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files".
7 7
8 library analyzer.src.summary.format; 8 library analyzer.src.summary.format;
9 9
10 import 'flat_buffers.dart' as fb; 10 import 'flat_buffers.dart' as fb;
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 int _containingReference; 722 int _containingReference;
723 723
724 @override 724 @override
725 int get dependency => _dependency ??= 0; 725 int get dependency => _dependency ??= 0;
726 726
727 /** 727 /**
728 * Index into [LinkedLibrary.dependencies] indicating which imported library 728 * Index into [LinkedLibrary.dependencies] indicating which imported library
729 * declares the entity being referred to. 729 * declares the entity being referred to.
730 * 730 *
731 * Zero if this entity is contained within another entity (e.g. a class 731 * Zero if this entity is contained within another entity (e.g. a class
732 * member). 732 * member), or if [kind] is [ReferenceKind.prefix].
733 */ 733 */
734 void set dependency(int _value) { 734 void set dependency(int _value) {
735 assert(!_finished); 735 assert(!_finished);
736 assert(_value == null || _value >= 0); 736 assert(_value == null || _value >= 0);
737 _dependency = _value; 737 _dependency = _value;
738 } 738 }
739 739
740 @override 740 @override
741 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum; 741 idl.ReferenceKind get kind => _kind ??= idl.ReferenceKind.classOrEnum;
742 742
(...skipping 4079 matching lines...) Expand 10 before | Expand all | Expand 10 after
4822 "type": type, 4822 "type": type,
4823 "constExpr": constExpr, 4823 "constExpr": constExpr,
4824 "isStatic": isStatic, 4824 "isStatic": isStatic,
4825 "isFinal": isFinal, 4825 "isFinal": isFinal,
4826 "isConst": isConst, 4826 "isConst": isConst,
4827 "propagatedTypeSlot": propagatedTypeSlot, 4827 "propagatedTypeSlot": propagatedTypeSlot,
4828 "inferredTypeSlot": inferredTypeSlot, 4828 "inferredTypeSlot": inferredTypeSlot,
4829 }; 4829 };
4830 } 4830 }
4831 4831
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/idl.dart » ('j') | pkg/analyzer/test/src/summary/summary_common.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698