Set language to 2.15 for frontend_server, opt-out all existing files.

I will add new functionality (binary protocol for macro compilation),
and would like to use modern language version.

Change-Id: I2fc0dc57b64b41669e76a81dff76b0eac93808e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/239621
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Konstantin Shcheglov 2022-03-31 14:14:55 +00:00 committed by Commit Bot
parent 815ef172a8
commit cb726901f7
11 changed files with 11 additions and 2 deletions

View file

@ -326,7 +326,7 @@
"name": "frontend_server",
"rootUri": "../pkg/frontend_server",
"packageUri": "lib/",
"languageVersion": "2.7"
"languageVersion": "2.15"
},
{
"name": "frontend_server_client",

View file

@ -1,3 +1,4 @@
// @dart = 2.9
library frontend_server;
import 'dart:async';

View file

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.9
library frontend_server;
import 'dart:async';

View file

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.9
import 'dart:convert';
import 'dart:io';

View file

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.9
import 'package:kernel/ast.dart';
import 'package:kernel/util/graph.dart';

View file

@ -4,7 +4,7 @@ description: A resident kernel compiler
publish_to: none
environment:
sdk: "^2.7.0"
sdk: "^2.15.0"
dependencies:
args: ^2.0.0

View file

@ -1,3 +1,4 @@
// @dart = 2.9
import 'dart:async' show StreamController;
import 'dart:convert' show utf8, LineSplitter;
import 'dart:io' show Directory, File, FileSystemEntity, IOSink, exitCode;

View file

@ -2,6 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE.md file.
// @dart = 2.9
import 'dart:async' show StreamSubscription, Timer;
import 'dart:convert' show jsonEncode;
import 'dart:io' show File, exitCode;

View file

@ -1,3 +1,4 @@
// @dart = 2.9
import 'dart:async';
import 'dart:convert';
import 'dart:io';

View file

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.9
import 'dart:convert';
import 'dart:io';

View file

@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.9
import 'package:frontend_server/src/strong_components.dart';
import 'package:kernel/ast.dart';
import 'package:test/test.dart';