Skip to content

Commit

Permalink
Pass the --preview-dart-2 flag to the analysis server.
Browse files Browse the repository at this point in the history
Change-Id: I3b63a63ea26e09cd4e5b84c3933f0f4f6ddc2440
Reviewed-on: https://dart-review.googlesource.com/40465
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Devon Carew <devoncarew@google.com>
  • Loading branch information
devoncarew authored and commit-bot@chromium.org committed Feb 9, 2018
1 parent 06ef399 commit 3ed7f26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/analysis_server/lib/src/analysis_server.dart
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ class AnalysisServer {

defaultContextOptions.generateImplicitErrors = false;
defaultContextOptions.useFastaParser = options.useCFE;
defaultContextOptions.previewDart2 = options.previewDart2;

{
String name = options.newAnalysisDriverLog;
Expand Down

0 comments on commit 3ed7f26

Please sign in to comment.