| OLD | NEW |
| 1 import 'dart:io'; | 1 import 'dart:io'; |
| 2 | 2 |
| 3 import 'package:analyzer/dart/ast/ast.dart'; | 3 import 'package:analyzer/dart/ast/ast.dart'; |
| 4 import 'package:analyzer/dart/element/element.dart'; | 4 import 'package:analyzer/dart/element/element.dart'; |
| 5 import 'package:analyzer/src/generated/engine.dart'; | 5 import 'package:analyzer/src/generated/engine.dart'; |
| 6 import 'package:analyzer/src/generated/java_io.dart'; | 6 import 'package:analyzer/src/generated/java_io.dart'; |
| 7 import 'package:analyzer/src/generated/sdk.dart'; | 7 import 'package:analyzer/src/generated/sdk.dart'; |
| 8 import 'package:analyzer/src/generated/sdk_io.dart'; | 8 import 'package:analyzer/src/generated/sdk_io.dart'; |
| 9 import 'package:analyzer/src/generated/source.dart'; | 9 import 'package:analyzer/src/generated/source.dart'; |
| 10 import 'package:analyzer/src/summary/flat_buffers.dart' as fb; | 10 import 'package:analyzer/src/summary/flat_buffers.dart' as fb; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 221 } |
| 222 LibraryElement element = context.computeLibraryElement(source); | 222 LibraryElement element = context.computeLibraryElement(source); |
| 223 bundleAssembler.serializeLibraryElement(element); | 223 bundleAssembler.serializeLibraryElement(element); |
| 224 element.importedLibraries.forEach((e) => _serializeLibrary(e.source)); | 224 element.importedLibraries.forEach((e) => _serializeLibrary(e.source)); |
| 225 element.exportedLibraries.forEach((e) => _serializeLibrary(e.source)); | 225 element.exportedLibraries.forEach((e) => _serializeLibrary(e.source)); |
| 226 // Index every unit of the library. | 226 // Index every unit of the library. |
| 227 for (CompilationUnitElement unitElement in element.units) { | 227 for (CompilationUnitElement unitElement in element.units) { |
| 228 Source unitSource = unitElement.source; | 228 Source unitSource = unitElement.source; |
| 229 CompilationUnit unit = | 229 CompilationUnit unit = |
| 230 context.resolveCompilationUnit2(unitSource, source); | 230 context.resolveCompilationUnit2(unitSource, source); |
| 231 indexAssembler.index(unit); | 231 indexAssembler.indexUnit(unit); |
| 232 } | 232 } |
| 233 } | 233 } |
| 234 } | 234 } |
| 235 | 235 |
| 236 class _BuilderOutput { | 236 class _BuilderOutput { |
| 237 final List<int> sum; | 237 final List<int> sum; |
| 238 final List<int> index; | 238 final List<int> index; |
| 239 | 239 |
| 240 _BuilderOutput(this.sum, this.index); | 240 _BuilderOutput(this.sum, this.index); |
| 241 | 241 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 254 } | 254 } |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 | 257 |
| 258 class _Output { | 258 class _Output { |
| 259 final _BuilderOutput spec; | 259 final _BuilderOutput spec; |
| 260 final _BuilderOutput strong; | 260 final _BuilderOutput strong; |
| 261 | 261 |
| 262 _Output(this.spec, this.strong); | 262 _Output(this.spec, this.strong); |
| 263 } | 263 } |
| OLD | NEW |