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
e55b0f52
Unverified
Commit
e55b0f52
authored
Sep 06, 2018
by
Devon Carew
Committed by
GitHub
Sep 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the --use-cfe flag from flutter analyze (#21463)
parent
7e3ebfc7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
28 deletions
+1
-28
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+0
-4
analyze_once.dart
packages/flutter_tools/lib/src/commands/analyze_once.dart
+0
-1
analysis.dart
packages/flutter_tools/lib/src/dart/analysis.dart
+1
-6
analyze_once_test.dart
packages/flutter_tools/test/commands/analyze_once_test.dart
+0
-17
No files found.
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
e55b0f52
...
...
@@ -34,10 +34,6 @@ class AnalyzeCommand extends FlutterCommand {
valueHelp:
'path-to-sdk'
,
help:
'The path to the Dart SDK.'
,
hide:
!
verboseHelp
);
argParser
.
addFlag
(
'use-cfe'
,
help:
'Run the analysis server with the --use-cfe option. This is a '
'temporary flag for use while the analyzer migrates to the CFE.'
,
hide:
!
verboseHelp
);
// Hidden option to enable a benchmarking mode.
argParser
.
addFlag
(
'benchmark'
,
...
...
packages/flutter_tools/lib/src/commands/analyze_once.dart
View file @
e55b0f52
...
...
@@ -76,7 +76,6 @@ class AnalyzeOnce extends AnalyzeBase {
final
AnalysisServer
server
=
new
AnalysisServer
(
sdkPath
,
directories
.
toList
(),
useCfe:
argResults
.
wasParsed
(
'use-cfe'
)
?
argResults
[
'use-cfe'
]
:
null
,
);
StreamSubscription
<
bool
>
subscription
;
...
...
packages/flutter_tools/lib/src/dart/analysis.dart
View file @
e55b0f52
...
...
@@ -14,11 +14,10 @@ import '../base/utils.dart';
import
'../globals.dart'
;
class
AnalysisServer
{
AnalysisServer
(
this
.
sdkPath
,
this
.
directories
,
{
this
.
useCfe
}
);
AnalysisServer
(
this
.
sdkPath
,
this
.
directories
);
final
String
sdkPath
;
final
List
<
String
>
directories
;
final
bool
useCfe
;
Process
_process
;
final
StreamController
<
bool
>
_analyzingController
=
...
...
@@ -38,10 +37,6 @@ class AnalysisServer {
sdkPath
,
];
if
(
useCfe
!=
null
)
{
command
.
add
(
useCfe
?
'--use-cfe'
:
'--no-use-cfe'
);
}
printTrace
(
'dart
${command.skip(1).join(' ')}
'
);
_process
=
await
processManager
.
start
(
command
);
// This callback hookup can't throw.
...
...
packages/flutter_tools/test/commands/analyze_once_test.dart
View file @
e55b0f52
...
...
@@ -178,23 +178,6 @@ StringBuffer bar = StringBuffer('baz');
tryToDelete
(
tempDir
);
}
});
testUsingContext
(
'use-cfe flag is recognized'
,
()
async
{
const
String
contents
=
'''
StringBuffer bar = StringBuffer('
baz
');
'''
;
final
Directory
tempDir
=
fs
.
systemTempDirectory
.
createTempSync
();
tempDir
.
childFile
(
'main.dart'
).
writeAsStringSync
(
contents
);
try
{
await
runCommand
(
command:
new
AnalyzeCommand
(
workingDirectory:
fs
.
directory
(
tempDir
)),
arguments:
<
String
>[
'analyze'
,
'--no-use-cfe'
],
statusTextContains:
<
String
>[
'No issues found!'
],
);
}
finally
{
tempDir
.
deleteSync
(
recursive:
true
);
}
});
});
}
...
...
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