Skip to content
Snippets Groups Projects
Commit 7e334db1 authored by Natalie Weizenbaum's avatar Natalie Weizenbaum Committed by GitHub
Browse files

Fix some new analysis issues. (#469)

parent c87ab0ad
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ final String _globalConfigPath = (){
}();
main(List<String> args) async {
var configuration;
Configuration configuration;
try {
configuration = new Configuration.parse(args);
} on FormatException catch (error) {
......
......@@ -225,7 +225,7 @@ class BrowserManager {
sink.close();
}));
return await _pool.withResource(() async {
return await _pool.withResource/*<Future<RunnerSuite>>*/(() async {
_channel.sink.add({
"command": "loadSuite",
"url": url.toString(),
......
......@@ -299,8 +299,8 @@ class _Parser {
// prefixes. The analyzer parses "new x.y()" as prefix "x", annotation "y",
// and named constructor null. It parses "new x.y.z()" as prefix "x",
// annotation "y", and named constructor "z".
var className;
var namedConstructor;
String className;
String namedConstructor;
if (identifier is PrefixedIdentifier &&
!_prefixes.contains(identifier.prefix.name) &&
constructorName == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment