Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a6a3f2c3
Commit
a6a3f2c3
authored
May 09, 2016
by
Phil Quitslund
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3809 from pq/pub-resolver-fix
Remove gratuitous pub resolver from flutter analysis.
parents
5dc74c84
18d971d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
analysis.dart
packages/flutter_tools/lib/src/dart/analysis.dart
+0
-14
No files found.
packages/flutter_tools/lib/src/dart/analysis.dart
View file @
a6a3f2c3
...
...
@@ -6,15 +6,11 @@ import 'dart:collection';
import
'dart:io'
;
import
'package:analyzer/file_system/file_system.dart'
as
file_system
;
import
'package:analyzer/file_system/file_system.dart'
show
Folder
;
import
'package:analyzer/file_system/physical_file_system.dart'
;
import
'package:analyzer/plugin/options.dart'
;
import
'package:analyzer/source/analysis_options_provider.dart'
;
import
'package:analyzer/source/embedder.dart'
;
import
'package:analyzer/source/error_processor.dart'
;
import
'package:analyzer/source/package_map_provider.dart'
;
import
'package:analyzer/source/package_map_resolver.dart'
;
import
'package:analyzer/source/pub_package_map_provider.dart'
;
import
'package:analyzer/src/generated/engine.dart'
;
import
'package:analyzer/src/generated/error.dart'
;
import
'package:analyzer/src/generated/java_io.dart'
;
...
...
@@ -112,16 +108,6 @@ class AnalysisDriver {
if
(
options
.
packageRootPath
!=
null
)
{
JavaFile
packageDirectory
=
new
JavaFile
(
options
.
packageRootPath
);
resolvers
.
add
(
new
PackageUriResolver
(<
JavaFile
>[
packageDirectory
]));
}
else
{
PubPackageMapProvider
pubPackageMapProvider
=
new
PubPackageMapProvider
(
PhysicalResourceProvider
.
INSTANCE
,
sdk
);
PackageMapInfo
packageMapInfo
=
pubPackageMapProvider
.
computePackageMap
(
PhysicalResourceProvider
.
INSTANCE
.
getResource
(
'.'
));
Map
<
String
,
List
<
Folder
>>
packageMap
=
packageMapInfo
.
packageMap
;
if
(
packageMap
!=
null
)
{
resolvers
.
add
(
new
PackageMapUriResolver
(
PhysicalResourceProvider
.
INSTANCE
,
packageMap
));
}
}
resolvers
.
add
(
new
FileUriResolver
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment