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

Unified Diff: pkg/analyzer/lib/src/source/source_resource.dart

Issue 2503803003: Revert "Connect analyzer's AnalysisError object to front_end's CompilationError." (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/lib/src/string_source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/source/source_resource.dart
diff --git a/pkg/analyzer/lib/src/source/source_resource.dart b/pkg/analyzer/lib/src/source/source_resource.dart
index b7fb2d0b76f193f94760a9680ec9579ca9663c62..63b906cb3c884cbfc89ea4bf170fce82acc9cb49 100644
--- a/pkg/analyzer/lib/src/source/source_resource.dart
+++ b/pkg/analyzer/lib/src/source/source_resource.dart
@@ -9,7 +9,6 @@ import 'dart:collection';
import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/source.dart';
-import 'package:source_span/source_span.dart' as source_span;
/**
* A function that can translate the contents of files on disk as they are read.
@@ -36,8 +35,6 @@ class FileSource extends Source {
*/
static final Map<String, int> _idTable = new HashMap<String, int>();
- source_span.SourceFile _sourceFile;
-
/**
* The URI from which this source was originally derived.
*/
@@ -122,10 +119,6 @@ class FileSource extends Source {
String get shortName => file.shortName;
@override
- source_span.SourceFile get sourceFile => _sourceFile ??=
- new source_span.SourceFile(file.readAsStringSync(), url: uri);
-
- @override
UriKind get uriKind => UriKind.fromScheme(uri.scheme);
@override
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/lib/src/string_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698