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

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

Issue 2223113002: Add line starts into unlinked units. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: tweaks Created 4 years, 4 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 8388 matching lines...) Expand 10 before | Expand all | Expand 10 after
8399 List<UnlinkedEnumBuilder> _enums; 8399 List<UnlinkedEnumBuilder> _enums;
8400 List<UnlinkedExecutableBuilder> _executables; 8400 List<UnlinkedExecutableBuilder> _executables;
8401 List<UnlinkedExportNonPublicBuilder> _exports; 8401 List<UnlinkedExportNonPublicBuilder> _exports;
8402 String _fallbackModePath; 8402 String _fallbackModePath;
8403 List<UnlinkedImportBuilder> _imports; 8403 List<UnlinkedImportBuilder> _imports;
8404 List<UnlinkedConstBuilder> _libraryAnnotations; 8404 List<UnlinkedConstBuilder> _libraryAnnotations;
8405 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; 8405 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment;
8406 String _libraryName; 8406 String _libraryName;
8407 int _libraryNameLength; 8407 int _libraryNameLength;
8408 int _libraryNameOffset; 8408 int _libraryNameOffset;
8409 List<int> _lineStarts;
8409 List<UnlinkedPartBuilder> _parts; 8410 List<UnlinkedPartBuilder> _parts;
8410 UnlinkedPublicNamespaceBuilder _publicNamespace; 8411 UnlinkedPublicNamespaceBuilder _publicNamespace;
8411 List<UnlinkedReferenceBuilder> _references; 8412 List<UnlinkedReferenceBuilder> _references;
8412 List<UnlinkedTypedefBuilder> _typedefs; 8413 List<UnlinkedTypedefBuilder> _typedefs;
8413 List<UnlinkedVariableBuilder> _variables; 8414 List<UnlinkedVariableBuilder> _variables;
8414 8415
8415 @override 8416 @override
8416 List<UnlinkedClassBuilder> get classes => _classes ??= <UnlinkedClassBuilder>[ ]; 8417 List<UnlinkedClassBuilder> get classes => _classes ??= <UnlinkedClassBuilder>[ ];
8417 8418
8418 /** 8419 /**
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
8537 /** 8538 /**
8538 * Offset of the library name relative to the beginning of the file (or 0 if 8539 * Offset of the library name relative to the beginning of the file (or 0 if
8539 * the library has no name). 8540 * the library has no name).
8540 */ 8541 */
8541 void set libraryNameOffset(int _value) { 8542 void set libraryNameOffset(int _value) {
8542 assert(_value == null || _value >= 0); 8543 assert(_value == null || _value >= 0);
8543 _libraryNameOffset = _value; 8544 _libraryNameOffset = _value;
8544 } 8545 }
8545 8546
8546 @override 8547 @override
8548 List<int> get lineStarts => _lineStarts ??= <int>[];
8549
8550 /**
8551 * Offsets of the first character of each line in the source code.
8552 */
8553 void set lineStarts(List<int> _value) {
8554 assert(_value == null || _value.every((e) => e >= 0));
8555 _lineStarts = _value;
8556 }
8557
8558 @override
8547 List<UnlinkedPartBuilder> get parts => _parts ??= <UnlinkedPartBuilder>[]; 8559 List<UnlinkedPartBuilder> get parts => _parts ??= <UnlinkedPartBuilder>[];
8548 8560
8549 /** 8561 /**
8550 * Part declarations in the compilation unit. 8562 * Part declarations in the compilation unit.
8551 */ 8563 */
8552 void set parts(List<UnlinkedPartBuilder> _value) { 8564 void set parts(List<UnlinkedPartBuilder> _value) {
8553 _parts = _value; 8565 _parts = _value;
8554 } 8566 }
8555 8567
8556 @override 8568 @override
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
8590 @override 8602 @override
8591 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl eBuilder>[]; 8603 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl eBuilder>[];
8592 8604
8593 /** 8605 /**
8594 * Top level variables declared in the compilation unit. 8606 * Top level variables declared in the compilation unit.
8595 */ 8607 */
8596 void set variables(List<UnlinkedVariableBuilder> _value) { 8608 void set variables(List<UnlinkedVariableBuilder> _value) {
8597 _variables = _value; 8609 _variables = _value;
8598 } 8610 }
8599 8611
8600 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<UnlinkedPartBuilder> par ts, UnlinkedPublicNamespaceBuilder publicNamespace, List<UnlinkedReferenceBuilde r> references, List<UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuild er> variables}) 8612 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})
8601 : _classes = classes, 8613 : _classes = classes,
8602 _codeRange = codeRange, 8614 _codeRange = codeRange,
8603 _enums = enums, 8615 _enums = enums,
8604 _executables = executables, 8616 _executables = executables,
8605 _exports = exports, 8617 _exports = exports,
8606 _fallbackModePath = fallbackModePath, 8618 _fallbackModePath = fallbackModePath,
8607 _imports = imports, 8619 _imports = imports,
8608 _libraryAnnotations = libraryAnnotations, 8620 _libraryAnnotations = libraryAnnotations,
8609 _libraryDocumentationComment = libraryDocumentationComment, 8621 _libraryDocumentationComment = libraryDocumentationComment,
8610 _libraryName = libraryName, 8622 _libraryName = libraryName,
8611 _libraryNameLength = libraryNameLength, 8623 _libraryNameLength = libraryNameLength,
8612 _libraryNameOffset = libraryNameOffset, 8624 _libraryNameOffset = libraryNameOffset,
8625 _lineStarts = lineStarts,
8613 _parts = parts, 8626 _parts = parts,
8614 _publicNamespace = publicNamespace, 8627 _publicNamespace = publicNamespace,
8615 _references = references, 8628 _references = references,
8616 _typedefs = typedefs, 8629 _typedefs = typedefs,
8617 _variables = variables; 8630 _variables = variables;
8618 8631
8619 /** 8632 /**
8620 * Flush [informative] data recursively. 8633 * Flush [informative] data recursively.
8621 */ 8634 */
8622 void flushInformative() { 8635 void flushInformative() {
8623 _classes?.forEach((b) => b.flushInformative()); 8636 _classes?.forEach((b) => b.flushInformative());
8624 _codeRange = null; 8637 _codeRange = null;
8625 _enums?.forEach((b) => b.flushInformative()); 8638 _enums?.forEach((b) => b.flushInformative());
8626 _executables?.forEach((b) => b.flushInformative()); 8639 _executables?.forEach((b) => b.flushInformative());
8627 _exports?.forEach((b) => b.flushInformative()); 8640 _exports?.forEach((b) => b.flushInformative());
8628 _imports?.forEach((b) => b.flushInformative()); 8641 _imports?.forEach((b) => b.flushInformative());
8629 _libraryAnnotations?.forEach((b) => b.flushInformative()); 8642 _libraryAnnotations?.forEach((b) => b.flushInformative());
8630 _libraryDocumentationComment = null; 8643 _libraryDocumentationComment = null;
8631 _libraryNameLength = null; 8644 _libraryNameLength = null;
8632 _libraryNameOffset = null; 8645 _libraryNameOffset = null;
8646 _lineStarts = null;
8633 _parts?.forEach((b) => b.flushInformative()); 8647 _parts?.forEach((b) => b.flushInformative());
8634 _publicNamespace?.flushInformative(); 8648 _publicNamespace?.flushInformative();
8635 _references?.forEach((b) => b.flushInformative()); 8649 _references?.forEach((b) => b.flushInformative());
8636 _typedefs?.forEach((b) => b.flushInformative()); 8650 _typedefs?.forEach((b) => b.flushInformative());
8637 _variables?.forEach((b) => b.flushInformative()); 8651 _variables?.forEach((b) => b.flushInformative());
8638 } 8652 }
8639 8653
8640 /** 8654 /**
8641 * Accumulate non-[informative] data into [signature]. 8655 * Accumulate non-[informative] data into [signature].
8642 */ 8656 */
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
8736 fb.Offset offset_classes; 8750 fb.Offset offset_classes;
8737 fb.Offset offset_codeRange; 8751 fb.Offset offset_codeRange;
8738 fb.Offset offset_enums; 8752 fb.Offset offset_enums;
8739 fb.Offset offset_executables; 8753 fb.Offset offset_executables;
8740 fb.Offset offset_exports; 8754 fb.Offset offset_exports;
8741 fb.Offset offset_fallbackModePath; 8755 fb.Offset offset_fallbackModePath;
8742 fb.Offset offset_imports; 8756 fb.Offset offset_imports;
8743 fb.Offset offset_libraryAnnotations; 8757 fb.Offset offset_libraryAnnotations;
8744 fb.Offset offset_libraryDocumentationComment; 8758 fb.Offset offset_libraryDocumentationComment;
8745 fb.Offset offset_libraryName; 8759 fb.Offset offset_libraryName;
8760 fb.Offset offset_lineStarts;
8746 fb.Offset offset_parts; 8761 fb.Offset offset_parts;
8747 fb.Offset offset_publicNamespace; 8762 fb.Offset offset_publicNamespace;
8748 fb.Offset offset_references; 8763 fb.Offset offset_references;
8749 fb.Offset offset_typedefs; 8764 fb.Offset offset_typedefs;
8750 fb.Offset offset_variables; 8765 fb.Offset offset_variables;
8751 if (!(_classes == null || _classes.isEmpty)) { 8766 if (!(_classes == null || _classes.isEmpty)) {
8752 offset_classes = fbBuilder.writeList(_classes.map((b) => b.finish(fbBuilde r)).toList()); 8767 offset_classes = fbBuilder.writeList(_classes.map((b) => b.finish(fbBuilde r)).toList());
8753 } 8768 }
8754 if (_codeRange != null) { 8769 if (_codeRange != null) {
8755 offset_codeRange = _codeRange.finish(fbBuilder); 8770 offset_codeRange = _codeRange.finish(fbBuilder);
(...skipping 15 matching lines...) Expand all
8771 } 8786 }
8772 if (!(_libraryAnnotations == null || _libraryAnnotations.isEmpty)) { 8787 if (!(_libraryAnnotations == null || _libraryAnnotations.isEmpty)) {
8773 offset_libraryAnnotations = fbBuilder.writeList(_libraryAnnotations.map((b ) => b.finish(fbBuilder)).toList()); 8788 offset_libraryAnnotations = fbBuilder.writeList(_libraryAnnotations.map((b ) => b.finish(fbBuilder)).toList());
8774 } 8789 }
8775 if (_libraryDocumentationComment != null) { 8790 if (_libraryDocumentationComment != null) {
8776 offset_libraryDocumentationComment = _libraryDocumentationComment.finish(f bBuilder); 8791 offset_libraryDocumentationComment = _libraryDocumentationComment.finish(f bBuilder);
8777 } 8792 }
8778 if (_libraryName != null) { 8793 if (_libraryName != null) {
8779 offset_libraryName = fbBuilder.writeString(_libraryName); 8794 offset_libraryName = fbBuilder.writeString(_libraryName);
8780 } 8795 }
8796 if (!(_lineStarts == null || _lineStarts.isEmpty)) {
8797 offset_lineStarts = fbBuilder.writeListUint32(_lineStarts);
8798 }
8781 if (!(_parts == null || _parts.isEmpty)) { 8799 if (!(_parts == null || _parts.isEmpty)) {
8782 offset_parts = fbBuilder.writeList(_parts.map((b) => b.finish(fbBuilder)). toList()); 8800 offset_parts = fbBuilder.writeList(_parts.map((b) => b.finish(fbBuilder)). toList());
8783 } 8801 }
8784 if (_publicNamespace != null) { 8802 if (_publicNamespace != null) {
8785 offset_publicNamespace = _publicNamespace.finish(fbBuilder); 8803 offset_publicNamespace = _publicNamespace.finish(fbBuilder);
8786 } 8804 }
8787 if (!(_references == null || _references.isEmpty)) { 8805 if (!(_references == null || _references.isEmpty)) {
8788 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb Builder)).toList()); 8806 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb Builder)).toList());
8789 } 8807 }
8790 if (!(_typedefs == null || _typedefs.isEmpty)) { 8808 if (!(_typedefs == null || _typedefs.isEmpty)) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
8823 } 8841 }
8824 if (offset_libraryName != null) { 8842 if (offset_libraryName != null) {
8825 fbBuilder.addOffset(6, offset_libraryName); 8843 fbBuilder.addOffset(6, offset_libraryName);
8826 } 8844 }
8827 if (_libraryNameLength != null && _libraryNameLength != 0) { 8845 if (_libraryNameLength != null && _libraryNameLength != 0) {
8828 fbBuilder.addUint32(7, _libraryNameLength); 8846 fbBuilder.addUint32(7, _libraryNameLength);
8829 } 8847 }
8830 if (_libraryNameOffset != null && _libraryNameOffset != 0) { 8848 if (_libraryNameOffset != null && _libraryNameOffset != 0) {
8831 fbBuilder.addUint32(8, _libraryNameOffset); 8849 fbBuilder.addUint32(8, _libraryNameOffset);
8832 } 8850 }
8851 if (offset_lineStarts != null) {
8852 fbBuilder.addOffset(17, offset_lineStarts);
8853 }
8833 if (offset_parts != null) { 8854 if (offset_parts != null) {
8834 fbBuilder.addOffset(11, offset_parts); 8855 fbBuilder.addOffset(11, offset_parts);
8835 } 8856 }
8836 if (offset_publicNamespace != null) { 8857 if (offset_publicNamespace != null) {
8837 fbBuilder.addOffset(0, offset_publicNamespace); 8858 fbBuilder.addOffset(0, offset_publicNamespace);
8838 } 8859 }
8839 if (offset_references != null) { 8860 if (offset_references != null) {
8840 fbBuilder.addOffset(1, offset_references); 8861 fbBuilder.addOffset(1, offset_references);
8841 } 8862 }
8842 if (offset_typedefs != null) { 8863 if (offset_typedefs != null) {
(...skipping 29 matching lines...) Expand all
8872 List<idl.UnlinkedEnum> _enums; 8893 List<idl.UnlinkedEnum> _enums;
8873 List<idl.UnlinkedExecutable> _executables; 8894 List<idl.UnlinkedExecutable> _executables;
8874 List<idl.UnlinkedExportNonPublic> _exports; 8895 List<idl.UnlinkedExportNonPublic> _exports;
8875 String _fallbackModePath; 8896 String _fallbackModePath;
8876 List<idl.UnlinkedImport> _imports; 8897 List<idl.UnlinkedImport> _imports;
8877 List<idl.UnlinkedConst> _libraryAnnotations; 8898 List<idl.UnlinkedConst> _libraryAnnotations;
8878 idl.UnlinkedDocumentationComment _libraryDocumentationComment; 8899 idl.UnlinkedDocumentationComment _libraryDocumentationComment;
8879 String _libraryName; 8900 String _libraryName;
8880 int _libraryNameLength; 8901 int _libraryNameLength;
8881 int _libraryNameOffset; 8902 int _libraryNameOffset;
8903 List<int> _lineStarts;
8882 List<idl.UnlinkedPart> _parts; 8904 List<idl.UnlinkedPart> _parts;
8883 idl.UnlinkedPublicNamespace _publicNamespace; 8905 idl.UnlinkedPublicNamespace _publicNamespace;
8884 List<idl.UnlinkedReference> _references; 8906 List<idl.UnlinkedReference> _references;
8885 List<idl.UnlinkedTypedef> _typedefs; 8907 List<idl.UnlinkedTypedef> _typedefs;
8886 List<idl.UnlinkedVariable> _variables; 8908 List<idl.UnlinkedVariable> _variables;
8887 8909
8888 @override 8910 @override
8889 List<idl.UnlinkedClass> get classes { 8911 List<idl.UnlinkedClass> get classes {
8890 _classes ??= const fb.ListReader<idl.UnlinkedClass>(const _UnlinkedClassRead er()).vTableGet(_bc, _bcOffset, 2, const <idl.UnlinkedClass>[]); 8912 _classes ??= const fb.ListReader<idl.UnlinkedClass>(const _UnlinkedClassRead er()).vTableGet(_bc, _bcOffset, 2, const <idl.UnlinkedClass>[]);
8891 return _classes; 8913 return _classes;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
8951 return _libraryNameLength; 8973 return _libraryNameLength;
8952 } 8974 }
8953 8975
8954 @override 8976 @override
8955 int get libraryNameOffset { 8977 int get libraryNameOffset {
8956 _libraryNameOffset ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 8, 0); 8978 _libraryNameOffset ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffset, 8, 0);
8957 return _libraryNameOffset; 8979 return _libraryNameOffset;
8958 } 8980 }
8959 8981
8960 @override 8982 @override
8983 List<int> get lineStarts {
8984 _lineStarts ??= const fb.Uint32ListReader().vTableGet(_bc, _bcOffset, 17, co nst <int>[]);
8985 return _lineStarts;
8986 }
8987
8988 @override
8961 List<idl.UnlinkedPart> get parts { 8989 List<idl.UnlinkedPart> get parts {
8962 _parts ??= const fb.ListReader<idl.UnlinkedPart>(const _UnlinkedPartReader() ).vTableGet(_bc, _bcOffset, 11, const <idl.UnlinkedPart>[]); 8990 _parts ??= const fb.ListReader<idl.UnlinkedPart>(const _UnlinkedPartReader() ).vTableGet(_bc, _bcOffset, 11, const <idl.UnlinkedPart>[]);
8963 return _parts; 8991 return _parts;
8964 } 8992 }
8965 8993
8966 @override 8994 @override
8967 idl.UnlinkedPublicNamespace get publicNamespace { 8995 idl.UnlinkedPublicNamespace get publicNamespace {
8968 _publicNamespace ??= const _UnlinkedPublicNamespaceReader().vTableGet(_bc, _ bcOffset, 0, null); 8996 _publicNamespace ??= const _UnlinkedPublicNamespaceReader().vTableGet(_bc, _ bcOffset, 0, null);
8969 return _publicNamespace; 8997 return _publicNamespace;
8970 } 8998 }
(...skipping 26 matching lines...) Expand all
8997 if (enums.isNotEmpty) _result["enums"] = enums.map((_value) => _value.toJson ()).toList(); 9025 if (enums.isNotEmpty) _result["enums"] = enums.map((_value) => _value.toJson ()).toList();
8998 if (executables.isNotEmpty) _result["executables"] = executables.map((_value ) => _value.toJson()).toList(); 9026 if (executables.isNotEmpty) _result["executables"] = executables.map((_value ) => _value.toJson()).toList();
8999 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value. toJson()).toList(); 9027 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value. toJson()).toList();
9000 if (fallbackModePath != '') _result["fallbackModePath"] = fallbackModePath; 9028 if (fallbackModePath != '') _result["fallbackModePath"] = fallbackModePath;
9001 if (imports.isNotEmpty) _result["imports"] = imports.map((_value) => _value. toJson()).toList(); 9029 if (imports.isNotEmpty) _result["imports"] = imports.map((_value) => _value. toJson()).toList();
9002 if (libraryAnnotations.isNotEmpty) _result["libraryAnnotations"] = libraryAn notations.map((_value) => _value.toJson()).toList(); 9030 if (libraryAnnotations.isNotEmpty) _result["libraryAnnotations"] = libraryAn notations.map((_value) => _value.toJson()).toList();
9003 if (libraryDocumentationComment != null) _result["libraryDocumentationCommen t"] = libraryDocumentationComment.toJson(); 9031 if (libraryDocumentationComment != null) _result["libraryDocumentationCommen t"] = libraryDocumentationComment.toJson();
9004 if (libraryName != '') _result["libraryName"] = libraryName; 9032 if (libraryName != '') _result["libraryName"] = libraryName;
9005 if (libraryNameLength != 0) _result["libraryNameLength"] = libraryNameLength ; 9033 if (libraryNameLength != 0) _result["libraryNameLength"] = libraryNameLength ;
9006 if (libraryNameOffset != 0) _result["libraryNameOffset"] = libraryNameOffset ; 9034 if (libraryNameOffset != 0) _result["libraryNameOffset"] = libraryNameOffset ;
9035 if (lineStarts.isNotEmpty) _result["lineStarts"] = lineStarts;
9007 if (parts.isNotEmpty) _result["parts"] = parts.map((_value) => _value.toJson ()).toList(); 9036 if (parts.isNotEmpty) _result["parts"] = parts.map((_value) => _value.toJson ()).toList();
9008 if (publicNamespace != null) _result["publicNamespace"] = publicNamespace.to Json(); 9037 if (publicNamespace != null) _result["publicNamespace"] = publicNamespace.to Json();
9009 if (references.isNotEmpty) _result["references"] = references.map((_value) = > _value.toJson()).toList(); 9038 if (references.isNotEmpty) _result["references"] = references.map((_value) = > _value.toJson()).toList();
9010 if (typedefs.isNotEmpty) _result["typedefs"] = typedefs.map((_value) => _val ue.toJson()).toList(); 9039 if (typedefs.isNotEmpty) _result["typedefs"] = typedefs.map((_value) => _val ue.toJson()).toList();
9011 if (variables.isNotEmpty) _result["variables"] = variables.map((_value) => _ value.toJson()).toList(); 9040 if (variables.isNotEmpty) _result["variables"] = variables.map((_value) => _ value.toJson()).toList();
9012 return _result; 9041 return _result;
9013 } 9042 }
9014 9043
9015 @override 9044 @override
9016 Map<String, Object> toMap() => { 9045 Map<String, Object> toMap() => {
9017 "classes": classes, 9046 "classes": classes,
9018 "codeRange": codeRange, 9047 "codeRange": codeRange,
9019 "enums": enums, 9048 "enums": enums,
9020 "executables": executables, 9049 "executables": executables,
9021 "exports": exports, 9050 "exports": exports,
9022 "fallbackModePath": fallbackModePath, 9051 "fallbackModePath": fallbackModePath,
9023 "imports": imports, 9052 "imports": imports,
9024 "libraryAnnotations": libraryAnnotations, 9053 "libraryAnnotations": libraryAnnotations,
9025 "libraryDocumentationComment": libraryDocumentationComment, 9054 "libraryDocumentationComment": libraryDocumentationComment,
9026 "libraryName": libraryName, 9055 "libraryName": libraryName,
9027 "libraryNameLength": libraryNameLength, 9056 "libraryNameLength": libraryNameLength,
9028 "libraryNameOffset": libraryNameOffset, 9057 "libraryNameOffset": libraryNameOffset,
9058 "lineStarts": lineStarts,
9029 "parts": parts, 9059 "parts": parts,
9030 "publicNamespace": publicNamespace, 9060 "publicNamespace": publicNamespace,
9031 "references": references, 9061 "references": references,
9032 "typedefs": typedefs, 9062 "typedefs": typedefs,
9033 "variables": variables, 9063 "variables": variables,
9034 }; 9064 };
9035 9065
9036 @override 9066 @override
9037 String toString() => convert.JSON.encode(toJson()); 9067 String toString() => convert.JSON.encode(toJson());
9038 } 9068 }
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
9487 "propagatedTypeSlot": propagatedTypeSlot, 9517 "propagatedTypeSlot": propagatedTypeSlot,
9488 "type": type, 9518 "type": type,
9489 "visibleLength": visibleLength, 9519 "visibleLength": visibleLength,
9490 "visibleOffset": visibleOffset, 9520 "visibleOffset": visibleOffset,
9491 }; 9521 };
9492 9522
9493 @override 9523 @override
9494 String toString() => convert.JSON.encode(toJson()); 9524 String toString() => convert.JSON.encode(toJson());
9495 } 9525 }
9496 9526
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698