Index: pkg/analyzer_cli/lib/src/build_mode.dart |
diff --git a/pkg/analyzer_cli/lib/src/build_mode.dart b/pkg/analyzer_cli/lib/src/build_mode.dart |
index 23175b2430dad211bc702333617f67ee91a42e5f..6d3555ff59c2909f88392e28cf8922dd36a7529b 100644 |
--- a/pkg/analyzer_cli/lib/src/build_mode.dart |
+++ b/pkg/analyzer_cli/lib/src/build_mode.dart |
@@ -25,7 +25,6 @@ import 'package:analyzer/src/summary/summarize_ast.dart'; |
import 'package:analyzer/src/summary/summarize_elements.dart'; |
import 'package:analyzer/src/summary/summary_sdk.dart' show SummaryBasedDartSdk; |
import 'package:analyzer/task/dart.dart'; |
-import 'package:analyzer/task/general.dart'; |
import 'package:analyzer_cli/src/analyzer_impl.dart'; |
import 'package:analyzer_cli/src/driver.dart'; |
import 'package:analyzer_cli/src/error_formatter.dart'; |
@@ -359,9 +358,7 @@ class BuildMode { |
} |
return uriToUnit.putIfAbsent(uri, () { |
CompilationUnit unit = context.computeResult(source, PARSED_UNIT); |
- LineInfo lineInfo = context.computeResult(source, LINE_INFO); |
- UnlinkedUnitBuilder unlinkedUnit = |
- serializeAstUnlinked(unit, lineInfo.lineStarts); |
+ UnlinkedUnitBuilder unlinkedUnit = serializeAstUnlinked(unit); |
assembler.addUnlinkedUnit(source, unlinkedUnit); |
return unlinkedUnit; |
}); |