Skip to content
Snippets Groups Projects
Commit f70ee39b authored by Kevin Moore's avatar Kevin Moore
Browse files

Update to latest dependencies, require dart 2.1, fix lints

parent 283471e7
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ class AnalysisContextManager {
///
/// Throws [AnalyzerErrorGroup] is the file has parsing errors.
CompilationUnit parse(String path) {
var parseResult = _getExistingSession(path).getParsedAstSync(path);
var parseResult = _getExistingSession(path).getParsedUnit(path);
if (parseResult.errors.isNotEmpty) {
throw AnalyzerErrorGroup(parseResult.errors);
}
......
......@@ -2,18 +2,18 @@ name: pub
publish_to: none
environment:
sdk: ">=2.0.0 <3.0.0"
sdk: ">=2.1.0 <3.0.0"
dependencies:
# Note: Pub's test infrastructure assumes that any dependencies used in tests
# will be hosted dependencies.
analyzer: ^0.33.0
analyzer: ^0.35.0
args: ^1.4.1
async: ^2.0.0
collection: ^1.8.0
crypto: ">=1.0.0 <3.0.0"
crypto: ^2.0.0
http: ^0.12.0
http_multi_server: ">=1.0.0 <3.0.0"
http_multi_server: ^2.0.0
http_retry: ^0.1.1
http_throttle: ^1.0.0
meta: ^1.1.0
......
......@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:convert';
import 'dart:async';
import 'dart:convert';
import 'package:shelf/shelf.dart' as shelf;
import 'package:shelf_test_handler/shelf_test_handler.dart';
......
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