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

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

Issue 2459573005: Add UnlinkedUnit.isPartOf flag. (Closed)
Patch Set: tweak the comment Created 4 years, 1 month 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/lib/src/summary/format.fbs » ('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 // 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 8650 matching lines...) Expand 10 before | Expand all | Expand 10 after
8661 } 8661 }
8662 8662
8663 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl. UnlinkedUnit { 8663 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl. UnlinkedUnit {
8664 List<UnlinkedClassBuilder> _classes; 8664 List<UnlinkedClassBuilder> _classes;
8665 CodeRangeBuilder _codeRange; 8665 CodeRangeBuilder _codeRange;
8666 List<UnlinkedEnumBuilder> _enums; 8666 List<UnlinkedEnumBuilder> _enums;
8667 List<UnlinkedExecutableBuilder> _executables; 8667 List<UnlinkedExecutableBuilder> _executables;
8668 List<UnlinkedExportNonPublicBuilder> _exports; 8668 List<UnlinkedExportNonPublicBuilder> _exports;
8669 String _fallbackModePath; 8669 String _fallbackModePath;
8670 List<UnlinkedImportBuilder> _imports; 8670 List<UnlinkedImportBuilder> _imports;
8671 bool _isPartOf;
8671 List<UnlinkedConstBuilder> _libraryAnnotations; 8672 List<UnlinkedConstBuilder> _libraryAnnotations;
8672 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; 8673 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment;
8673 String _libraryName; 8674 String _libraryName;
8674 int _libraryNameLength; 8675 int _libraryNameLength;
8675 int _libraryNameOffset; 8676 int _libraryNameOffset;
8676 List<int> _lineStarts; 8677 List<int> _lineStarts;
8677 List<UnlinkedPartBuilder> _parts; 8678 List<UnlinkedPartBuilder> _parts;
8678 UnlinkedPublicNamespaceBuilder _publicNamespace; 8679 UnlinkedPublicNamespaceBuilder _publicNamespace;
8679 List<UnlinkedReferenceBuilder> _references; 8680 List<UnlinkedReferenceBuilder> _references;
8680 List<UnlinkedTypedefBuilder> _typedefs; 8681 List<UnlinkedTypedefBuilder> _typedefs;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
8749 List<UnlinkedImportBuilder> get imports => _imports ??= <UnlinkedImportBuilder >[]; 8750 List<UnlinkedImportBuilder> get imports => _imports ??= <UnlinkedImportBuilder >[];
8750 8751
8751 /** 8752 /**
8752 * Import declarations in the compilation unit. 8753 * Import declarations in the compilation unit.
8753 */ 8754 */
8754 void set imports(List<UnlinkedImportBuilder> value) { 8755 void set imports(List<UnlinkedImportBuilder> value) {
8755 this._imports = value; 8756 this._imports = value;
8756 } 8757 }
8757 8758
8758 @override 8759 @override
8760 bool get isPartOf => _isPartOf ??= false;
8761
8762 /**
8763 * Indicates whether the unit contains a "part of" declaration.
8764 */
8765 void set isPartOf(bool value) {
8766 this._isPartOf = value;
8767 }
8768
8769 @override
8759 List<UnlinkedConstBuilder> get libraryAnnotations => _libraryAnnotations ??= < UnlinkedConstBuilder>[]; 8770 List<UnlinkedConstBuilder> get libraryAnnotations => _libraryAnnotations ??= < UnlinkedConstBuilder>[];
8760 8771
8761 /** 8772 /**
8762 * Annotations for the library declaration, or the empty list if there is no 8773 * Annotations for the library declaration, or the empty list if there is no
8763 * library declaration. 8774 * library declaration.
8764 */ 8775 */
8765 void set libraryAnnotations(List<UnlinkedConstBuilder> value) { 8776 void set libraryAnnotations(List<UnlinkedConstBuilder> value) {
8766 this._libraryAnnotations = value; 8777 this._libraryAnnotations = value;
8767 } 8778 }
8768 8779
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
8869 @override 8880 @override
8870 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl eBuilder>[]; 8881 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl eBuilder>[];
8871 8882
8872 /** 8883 /**
8873 * Top level variables declared in the compilation unit. 8884 * Top level variables declared in the compilation unit.
8874 */ 8885 */
8875 void set variables(List<UnlinkedVariableBuilder> value) { 8886 void set variables(List<UnlinkedVariableBuilder> value) {
8876 this._variables = value; 8887 this._variables = value;
8877 } 8888 }
8878 8889
8879 UnlinkedUnitBuilder({List<UnlinkedClassBuilder> classes, CodeRangeBuilder code Range, List<UnlinkedEnumBuilder> enums, List<UnlinkedExecutableBuilder> executab les, List<UnlinkedExportNonPublicBuilder> exports, String fallbackModePath, List <UnlinkedImportBuilder> imports, List<UnlinkedConstBuilder> libraryAnnotations, UnlinkedDocumentationCommentBuilder libraryDocumentationComment, String libraryN ame, int libraryNameLength, int libraryNameOffset, List<int> lineStarts, List<Un linkedPartBuilder> parts, UnlinkedPublicNamespaceBuilder publicNamespace, List<U nlinkedReferenceBuilder> references, List<UnlinkedTypedefBuilder> typedefs, List <UnlinkedVariableBuilder> variables}) 8890 UnlinkedUnitBuilder({List<UnlinkedClassBuilder> classes, CodeRangeBuilder code Range, List<UnlinkedEnumBuilder> enums, List<UnlinkedExecutableBuilder> executab les, List<UnlinkedExportNonPublicBuilder> exports, String fallbackModePath, List <UnlinkedImportBuilder> imports, bool isPartOf, List<UnlinkedConstBuilder> libra ryAnnotations, UnlinkedDocumentationCommentBuilder libraryDocumentationComment, String libraryName, int libraryNameLength, int libraryNameOffset, List<int> line Starts, List<UnlinkedPartBuilder> parts, UnlinkedPublicNamespaceBuilder publicNa mespace, List<UnlinkedReferenceBuilder> references, List<UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuilder> variables})
8880 : _classes = classes, 8891 : _classes = classes,
8881 _codeRange = codeRange, 8892 _codeRange = codeRange,
8882 _enums = enums, 8893 _enums = enums,
8883 _executables = executables, 8894 _executables = executables,
8884 _exports = exports, 8895 _exports = exports,
8885 _fallbackModePath = fallbackModePath, 8896 _fallbackModePath = fallbackModePath,
8886 _imports = imports, 8897 _imports = imports,
8898 _isPartOf = isPartOf,
8887 _libraryAnnotations = libraryAnnotations, 8899 _libraryAnnotations = libraryAnnotations,
8888 _libraryDocumentationComment = libraryDocumentationComment, 8900 _libraryDocumentationComment = libraryDocumentationComment,
8889 _libraryName = libraryName, 8901 _libraryName = libraryName,
8890 _libraryNameLength = libraryNameLength, 8902 _libraryNameLength = libraryNameLength,
8891 _libraryNameOffset = libraryNameOffset, 8903 _libraryNameOffset = libraryNameOffset,
8892 _lineStarts = lineStarts, 8904 _lineStarts = lineStarts,
8893 _parts = parts, 8905 _parts = parts,
8894 _publicNamespace = publicNamespace, 8906 _publicNamespace = publicNamespace,
8895 _references = references, 8907 _references = references,
8896 _typedefs = typedefs, 8908 _typedefs = typedefs,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
8999 } 9011 }
9000 if (this._libraryAnnotations == null) { 9012 if (this._libraryAnnotations == null) {
9001 signature.addInt(0); 9013 signature.addInt(0);
9002 } else { 9014 } else {
9003 signature.addInt(this._libraryAnnotations.length); 9015 signature.addInt(this._libraryAnnotations.length);
9004 for (var x in this._libraryAnnotations) { 9016 for (var x in this._libraryAnnotations) {
9005 x?.collectApiSignature(signature); 9017 x?.collectApiSignature(signature);
9006 } 9018 }
9007 } 9019 }
9008 signature.addString(this._fallbackModePath ?? ''); 9020 signature.addString(this._fallbackModePath ?? '');
9021 signature.addBool(this._isPartOf == true);
9009 } 9022 }
9010 9023
9011 List<int> toBuffer() { 9024 List<int> toBuffer() {
9012 fb.Builder fbBuilder = new fb.Builder(); 9025 fb.Builder fbBuilder = new fb.Builder();
9013 return fbBuilder.finish(finish(fbBuilder), "UUnt"); 9026 return fbBuilder.finish(finish(fbBuilder), "UUnt");
9014 } 9027 }
9015 9028
9016 fb.Offset finish(fb.Builder fbBuilder) { 9029 fb.Offset finish(fb.Builder fbBuilder) {
9017 fb.Offset offset_classes; 9030 fb.Offset offset_classes;
9018 fb.Offset offset_codeRange; 9031 fb.Offset offset_codeRange;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
9093 } 9106 }
9094 if (offset_exports != null) { 9107 if (offset_exports != null) {
9095 fbBuilder.addOffset(13, offset_exports); 9108 fbBuilder.addOffset(13, offset_exports);
9096 } 9109 }
9097 if (offset_fallbackModePath != null) { 9110 if (offset_fallbackModePath != null) {
9098 fbBuilder.addOffset(16, offset_fallbackModePath); 9111 fbBuilder.addOffset(16, offset_fallbackModePath);
9099 } 9112 }
9100 if (offset_imports != null) { 9113 if (offset_imports != null) {
9101 fbBuilder.addOffset(5, offset_imports); 9114 fbBuilder.addOffset(5, offset_imports);
9102 } 9115 }
9116 if (_isPartOf == true) {
9117 fbBuilder.addBool(18, true);
9118 }
9103 if (offset_libraryAnnotations != null) { 9119 if (offset_libraryAnnotations != null) {
9104 fbBuilder.addOffset(14, offset_libraryAnnotations); 9120 fbBuilder.addOffset(14, offset_libraryAnnotations);
9105 } 9121 }
9106 if (offset_libraryDocumentationComment != null) { 9122 if (offset_libraryDocumentationComment != null) {
9107 fbBuilder.addOffset(9, offset_libraryDocumentationComment); 9123 fbBuilder.addOffset(9, offset_libraryDocumentationComment);
9108 } 9124 }
9109 if (offset_libraryName != null) { 9125 if (offset_libraryName != null) {
9110 fbBuilder.addOffset(6, offset_libraryName); 9126 fbBuilder.addOffset(6, offset_libraryName);
9111 } 9127 }
9112 if (_libraryNameLength != null && _libraryNameLength != 0) { 9128 if (_libraryNameLength != null && _libraryNameLength != 0) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
9155 9171
9156 _UnlinkedUnitImpl(this._bc, this._bcOffset); 9172 _UnlinkedUnitImpl(this._bc, this._bcOffset);
9157 9173
9158 List<idl.UnlinkedClass> _classes; 9174 List<idl.UnlinkedClass> _classes;
9159 idl.CodeRange _codeRange; 9175 idl.CodeRange _codeRange;
9160 List<idl.UnlinkedEnum> _enums; 9176 List<idl.UnlinkedEnum> _enums;
9161 List<idl.UnlinkedExecutable> _executables; 9177 List<idl.UnlinkedExecutable> _executables;
9162 List<idl.UnlinkedExportNonPublic> _exports; 9178 List<idl.UnlinkedExportNonPublic> _exports;
9163 String _fallbackModePath; 9179 String _fallbackModePath;
9164 List<idl.UnlinkedImport> _imports; 9180 List<idl.UnlinkedImport> _imports;
9181 bool _isPartOf;
9165 List<idl.UnlinkedConst> _libraryAnnotations; 9182 List<idl.UnlinkedConst> _libraryAnnotations;
9166 idl.UnlinkedDocumentationComment _libraryDocumentationComment; 9183 idl.UnlinkedDocumentationComment _libraryDocumentationComment;
9167 String _libraryName; 9184 String _libraryName;
9168 int _libraryNameLength; 9185 int _libraryNameLength;
9169 int _libraryNameOffset; 9186 int _libraryNameOffset;
9170 List<int> _lineStarts; 9187 List<int> _lineStarts;
9171 List<idl.UnlinkedPart> _parts; 9188 List<idl.UnlinkedPart> _parts;
9172 idl.UnlinkedPublicNamespace _publicNamespace; 9189 idl.UnlinkedPublicNamespace _publicNamespace;
9173 List<idl.UnlinkedReference> _references; 9190 List<idl.UnlinkedReference> _references;
9174 List<idl.UnlinkedTypedef> _typedefs; 9191 List<idl.UnlinkedTypedef> _typedefs;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9210 return _fallbackModePath; 9227 return _fallbackModePath;
9211 } 9228 }
9212 9229
9213 @override 9230 @override
9214 List<idl.UnlinkedImport> get imports { 9231 List<idl.UnlinkedImport> get imports {
9215 _imports ??= const fb.ListReader<idl.UnlinkedImport>(const _UnlinkedImportRe ader()).vTableGet(_bc, _bcOffset, 5, const <idl.UnlinkedImport>[]); 9232 _imports ??= const fb.ListReader<idl.UnlinkedImport>(const _UnlinkedImportRe ader()).vTableGet(_bc, _bcOffset, 5, const <idl.UnlinkedImport>[]);
9216 return _imports; 9233 return _imports;
9217 } 9234 }
9218 9235
9219 @override 9236 @override
9237 bool get isPartOf {
9238 _isPartOf ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 18, false);
9239 return _isPartOf;
9240 }
9241
9242 @override
9220 List<idl.UnlinkedConst> get libraryAnnotations { 9243 List<idl.UnlinkedConst> get libraryAnnotations {
9221 _libraryAnnotations ??= const fb.ListReader<idl.UnlinkedConst>(const _Unlink edConstReader()).vTableGet(_bc, _bcOffset, 14, const <idl.UnlinkedConst>[]); 9244 _libraryAnnotations ??= const fb.ListReader<idl.UnlinkedConst>(const _Unlink edConstReader()).vTableGet(_bc, _bcOffset, 14, const <idl.UnlinkedConst>[]);
9222 return _libraryAnnotations; 9245 return _libraryAnnotations;
9223 } 9246 }
9224 9247
9225 @override 9248 @override
9226 idl.UnlinkedDocumentationComment get libraryDocumentationComment { 9249 idl.UnlinkedDocumentationComment get libraryDocumentationComment {
9227 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader() .vTableGet(_bc, _bcOffset, 9, null); 9250 _libraryDocumentationComment ??= const _UnlinkedDocumentationCommentReader() .vTableGet(_bc, _bcOffset, 9, null);
9228 return _libraryDocumentationComment; 9251 return _libraryDocumentationComment;
9229 } 9252 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
9287 @override 9310 @override
9288 Map<String, Object> toJson() { 9311 Map<String, Object> toJson() {
9289 Map<String, Object> _result = <String, Object>{}; 9312 Map<String, Object> _result = <String, Object>{};
9290 if (classes.isNotEmpty) _result["classes"] = classes.map((_value) => _value. toJson()).toList(); 9313 if (classes.isNotEmpty) _result["classes"] = classes.map((_value) => _value. toJson()).toList();
9291 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); 9314 if (codeRange != null) _result["codeRange"] = codeRange.toJson();
9292 if (enums.isNotEmpty) _result["enums"] = enums.map((_value) => _value.toJson ()).toList(); 9315 if (enums.isNotEmpty) _result["enums"] = enums.map((_value) => _value.toJson ()).toList();
9293 if (executables.isNotEmpty) _result["executables"] = executables.map((_value ) => _value.toJson()).toList(); 9316 if (executables.isNotEmpty) _result["executables"] = executables.map((_value ) => _value.toJson()).toList();
9294 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value. toJson()).toList(); 9317 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value. toJson()).toList();
9295 if (fallbackModePath != '') _result["fallbackModePath"] = fallbackModePath; 9318 if (fallbackModePath != '') _result["fallbackModePath"] = fallbackModePath;
9296 if (imports.isNotEmpty) _result["imports"] = imports.map((_value) => _value. toJson()).toList(); 9319 if (imports.isNotEmpty) _result["imports"] = imports.map((_value) => _value. toJson()).toList();
9320 if (isPartOf != false) _result["isPartOf"] = isPartOf;
9297 if (libraryAnnotations.isNotEmpty) _result["libraryAnnotations"] = libraryAn notations.map((_value) => _value.toJson()).toList(); 9321 if (libraryAnnotations.isNotEmpty) _result["libraryAnnotations"] = libraryAn notations.map((_value) => _value.toJson()).toList();
9298 if (libraryDocumentationComment != null) _result["libraryDocumentationCommen t"] = libraryDocumentationComment.toJson(); 9322 if (libraryDocumentationComment != null) _result["libraryDocumentationCommen t"] = libraryDocumentationComment.toJson();
9299 if (libraryName != '') _result["libraryName"] = libraryName; 9323 if (libraryName != '') _result["libraryName"] = libraryName;
9300 if (libraryNameLength != 0) _result["libraryNameLength"] = libraryNameLength ; 9324 if (libraryNameLength != 0) _result["libraryNameLength"] = libraryNameLength ;
9301 if (libraryNameOffset != 0) _result["libraryNameOffset"] = libraryNameOffset ; 9325 if (libraryNameOffset != 0) _result["libraryNameOffset"] = libraryNameOffset ;
9302 if (lineStarts.isNotEmpty) _result["lineStarts"] = lineStarts; 9326 if (lineStarts.isNotEmpty) _result["lineStarts"] = lineStarts;
9303 if (parts.isNotEmpty) _result["parts"] = parts.map((_value) => _value.toJson ()).toList(); 9327 if (parts.isNotEmpty) _result["parts"] = parts.map((_value) => _value.toJson ()).toList();
9304 if (publicNamespace != null) _result["publicNamespace"] = publicNamespace.to Json(); 9328 if (publicNamespace != null) _result["publicNamespace"] = publicNamespace.to Json();
9305 if (references.isNotEmpty) _result["references"] = references.map((_value) = > _value.toJson()).toList(); 9329 if (references.isNotEmpty) _result["references"] = references.map((_value) = > _value.toJson()).toList();
9306 if (typedefs.isNotEmpty) _result["typedefs"] = typedefs.map((_value) => _val ue.toJson()).toList(); 9330 if (typedefs.isNotEmpty) _result["typedefs"] = typedefs.map((_value) => _val ue.toJson()).toList();
9307 if (variables.isNotEmpty) _result["variables"] = variables.map((_value) => _ value.toJson()).toList(); 9331 if (variables.isNotEmpty) _result["variables"] = variables.map((_value) => _ value.toJson()).toList();
9308 return _result; 9332 return _result;
9309 } 9333 }
9310 9334
9311 @override 9335 @override
9312 Map<String, Object> toMap() => { 9336 Map<String, Object> toMap() => {
9313 "classes": classes, 9337 "classes": classes,
9314 "codeRange": codeRange, 9338 "codeRange": codeRange,
9315 "enums": enums, 9339 "enums": enums,
9316 "executables": executables, 9340 "executables": executables,
9317 "exports": exports, 9341 "exports": exports,
9318 "fallbackModePath": fallbackModePath, 9342 "fallbackModePath": fallbackModePath,
9319 "imports": imports, 9343 "imports": imports,
9344 "isPartOf": isPartOf,
9320 "libraryAnnotations": libraryAnnotations, 9345 "libraryAnnotations": libraryAnnotations,
9321 "libraryDocumentationComment": libraryDocumentationComment, 9346 "libraryDocumentationComment": libraryDocumentationComment,
9322 "libraryName": libraryName, 9347 "libraryName": libraryName,
9323 "libraryNameLength": libraryNameLength, 9348 "libraryNameLength": libraryNameLength,
9324 "libraryNameOffset": libraryNameOffset, 9349 "libraryNameOffset": libraryNameOffset,
9325 "lineStarts": lineStarts, 9350 "lineStarts": lineStarts,
9326 "parts": parts, 9351 "parts": parts,
9327 "publicNamespace": publicNamespace, 9352 "publicNamespace": publicNamespace,
9328 "references": references, 9353 "references": references,
9329 "typedefs": typedefs, 9354 "typedefs": typedefs,
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
9784 "propagatedTypeSlot": propagatedTypeSlot, 9809 "propagatedTypeSlot": propagatedTypeSlot,
9785 "type": type, 9810 "type": type,
9786 "visibleLength": visibleLength, 9811 "visibleLength": visibleLength,
9787 "visibleOffset": visibleOffset, 9812 "visibleOffset": visibleOffset,
9788 }; 9813 };
9789 9814
9790 @override 9815 @override
9791 String toString() => convert.JSON.encode(toJson()); 9816 String toString() => convert.JSON.encode(toJson());
9792 } 9817 }
9793 9818
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.fbs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698