| OLD | NEW |
| 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 'dart:convert'; |
| 10 import 'builder.dart' as builder; | 11 import 'builder.dart' as builder; |
| 11 | 12 |
| 12 enum PrelinkedReferenceKind { | 13 enum PrelinkedReferenceKind { |
| 13 classOrEnum, | 14 classOrEnum, |
| 14 typedef, | 15 typedef, |
| 15 other, | 16 other, |
| 16 unresolved, | 17 unresolved, |
| 17 } | 18 } |
| 18 | 19 |
| 19 enum UnlinkedExecutableKind { | 20 enum UnlinkedExecutableKind { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 List<PrelinkedDependency> _dependencies; | 65 List<PrelinkedDependency> _dependencies; |
| 65 List<int> _importDependencies; | 66 List<int> _importDependencies; |
| 66 List<PrelinkedReference> _references; | 67 List<PrelinkedReference> _references; |
| 67 | 68 |
| 68 PrelinkedLibrary.fromJson(Map json) | 69 PrelinkedLibrary.fromJson(Map json) |
| 69 : _unlinked = json["unlinked"] == null ? null : new UnlinkedLibrary.fromJson
(json["unlinked"]), | 70 : _unlinked = json["unlinked"] == null ? null : new UnlinkedLibrary.fromJson
(json["unlinked"]), |
| 70 _dependencies = json["dependencies"]?.map((x) => new PrelinkedDependency.f
romJson(x))?.toList(), | 71 _dependencies = json["dependencies"]?.map((x) => new PrelinkedDependency.f
romJson(x))?.toList(), |
| 71 _importDependencies = json["importDependencies"], | 72 _importDependencies = json["importDependencies"], |
| 72 _references = json["references"]?.map((x) => new PrelinkedReference.fromJs
on(x))?.toList(); | 73 _references = json["references"]?.map((x) => new PrelinkedReference.fromJs
on(x))?.toList(); |
| 73 | 74 |
| 75 PrelinkedLibrary.fromBuffer(List<int> buffer) : this.fromJson(JSON.decode(UTF8
.decode(buffer))); |
| 76 |
| 74 UnlinkedLibrary get unlinked => _unlinked; | 77 UnlinkedLibrary get unlinked => _unlinked; |
| 75 List<PrelinkedDependency> get dependencies => _dependencies ?? const <Prelinke
dDependency>[]; | 78 List<PrelinkedDependency> get dependencies => _dependencies ?? const <Prelinke
dDependency>[]; |
| 76 List<int> get importDependencies => _importDependencies ?? const <int>[]; | 79 List<int> get importDependencies => _importDependencies ?? const <int>[]; |
| 77 List<PrelinkedReference> get references => _references ?? const <PrelinkedRefe
rence>[]; | 80 List<PrelinkedReference> get references => _references ?? const <PrelinkedRefe
rence>[]; |
| 78 } | 81 } |
| 79 | 82 |
| 80 class PrelinkedLibraryBuilder { | 83 class PrelinkedLibraryBuilder { |
| 81 final Map _json = {}; | 84 final Map _json = {}; |
| 82 | 85 |
| 83 PrelinkedLibraryBuilder(builder.BuilderContext context); | 86 PrelinkedLibraryBuilder(builder.BuilderContext context); |
| (...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext); | 1274 UnlinkedVariableBuilder builder = new UnlinkedVariableBuilder(builderContext); |
| 1272 builder.name = name; | 1275 builder.name = name; |
| 1273 builder.unit = unit; | 1276 builder.unit = unit; |
| 1274 builder.type = type; | 1277 builder.type = type; |
| 1275 builder.isStatic = isStatic; | 1278 builder.isStatic = isStatic; |
| 1276 builder.isFinal = isFinal; | 1279 builder.isFinal = isFinal; |
| 1277 builder.isConst = isConst; | 1280 builder.isConst = isConst; |
| 1278 return builder.finish(); | 1281 return builder.finish(); |
| 1279 } | 1282 } |
| 1280 | 1283 |
| OLD | NEW |