Files
sdk/pkg/vm_service/test/test_package/lib/the_part.dart
T
Ben Konyi 08b4f49249 Split package:vm_service into package:vm_service and package:vm_service_interface
To reduce the headache associated with adding parameters to VM service
APIs, VmServiceInterface has been removed from package:vm_service and
pulled into its own dedicated package:vm_service_interface. This will
help reduce the need for major version bumps of package:vm_service,
which requires manual version bumps through >8 packages in order to make
the latest version available to flutter_tools and DevTools.

This separation of the VmService client from the interface will reduce
the frequency of major version bumps to `package:vm_service` as adding
optional parameters to existing APIs would cause implementers of the
interface to break.

package:vm_service continues to expose a copy of the contents of package:vm_service_interface to avoid breaking google3 rolls until package:dwds can migrate to package:vm_service_interface. package:vm_service will not be published until this copy is removed.

This change also includes:
 - some code cleanup and modernization to both the code generator and
   generated code
 - >=3.0.0 SDK version requirement to allow for new language features

Change-Id: Ib1859c1b4e153fef7ee1f91e67e881bbf42652c2
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330500
Reviewed-by: Derek Xu <derekx@google.com>
Reviewed-by: Devon Carew <devoncarew@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
2023-10-23 17:00:10 +00:00

92 lines
1.1 KiB
Dart

// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// 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.
part of has_part;
void foo() {
print("lalala");
}
class Foo1 {
final foo;
Foo1(this.foo) {
print("hello from foo!");
}
}
class Foo2 {
final foo;
Foo2(this.foo) {
print("hello from foo!");
}
}
class Foo3 {
final foo;
Foo3(this.foo) {
print("hello from foo!");
}
}
class Foo4 {
final foo;
Foo4(this.foo) {
print("hello from foo!");
}
}
class Foo5 {
final foo;
Foo5(this.foo) {
print("hello from foo!");
}
}
class Foo6 {
final foo;
Foo6(this.foo) {
print("hello from foo!");
}
}
class Foo7 {
final foo;
Foo7(this.foo) {
print("hello from foo!");
}
}
class Foo8 {
final foo;
Foo8(this.foo) {
print("hello from foo!");
}
}
class Foo9 {
final foo;
Foo9(this.foo) {
print("hello from foo!");
}
}
class Foo10 {
final foo;
Foo10(this.foo) {
print("hello from foo!");
}
}
var foo2 = foo() as dynamic;