Files
sdk/tests/language/metadata/metadata_builtin_test.dart
T
Erik Ernst 6e98c9048c Add tests for using built-in identifier id in metadata @id
Change-Id: I51105e637b4d0bb0be897c5eba3554ff436d9472
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/174645
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2020-12-02 11:16:37 +00:00

126 lines
1.7 KiB
Dart

// Copyright (c) 2020, 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.
// Verify that built-in identifiers can be used to specify metadata.
const abstract = 0;
const as = 0;
const covariant = 0;
const deferred = 0;
const dynamic = 0;
const export = 0;
const external = 0;
const factory = 0;
const Function = 0;
const get = 0;
const implements = 0;
const import = 0;
const interface = 0;
const late = 0;
const library = 0;
const mixin = 0;
const operator = 0;
const part = 0;
const required = 0;
const set = 0;
const static = 0;
const typedef = 0;
@abstract
@as
@covariant
@deferred
@dynamic
@export
@external
@factory
@Function
@get
@implements
@import
@interface
@late
@library
@mixin
@operator
@part
@required
@set
@static
@typedef
void main(
@abstract
@as
@covariant
@deferred
@dynamic
@export
@external
@factory
@Function
@get
@implements
@import
@interface
@late
@library
@mixin
@operator
@part
@required
@set
@static
@typedef
List<String> args,
) {
@abstract
@as
@covariant
@deferred
@dynamic
@export
@external
@factory
@Function
@get
@implements
@import
@interface
@late
@library
@mixin
@operator
@part
@required
@set
@static
@typedef
var x = true;
void f<
@abstract
@as
@covariant
@deferred
@dynamic
@export
@external
@factory
@Function
@get
@implements
@import
@interface
@late
@library
@mixin
@operator
@part
@required
@set
@static
@typedef
X>() {}
}