Files
sdk/tests/compiler/dart2js/annotations/data/basic.dart
T
Johnni Winther e4689c9302 [dart2js] Use new pragma directive syntax.
+ add annotation test.

Change-Id: Ic87e6b5f3f45a7e65de53fb6afacb04fd469e951
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108726
Reviewed-by: Stephen Adams <sra@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2019-07-12 07:27:28 +00:00

39 lines
884 B
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.
main() {
noInline();
tryInline();
noElision();
noThrows();
noSideEffects();
assumeDynamic();
}
/*member: noInline:noInline*/
@pragma('dart2js:noInline')
noInline() {}
/*member: tryInline:tryInline*/
@pragma('dart2js:tryInline')
tryInline() {}
/*member: noElision:noElision*/
@pragma('dart2js:noElision')
noElision() {}
/*member: noThrows:noInline,noThrows*/
@pragma('dart2js:noThrows')
@pragma('dart2js:noInline')
noThrows() {}
/*member: noSideEffects:noInline,noSideEffects*/
@pragma('dart2js:noSideEffects')
@pragma('dart2js:noInline')
noSideEffects() {}
/*member: assumeDynamic:assumeDynamic*/
@pragma('dart2js:assumeDynamic')
assumeDynamic() {}