mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:39:49 +00:00
Update dart2js.noInline docs
Change-Id: Id6870b405d2a379c221a3fc493adc547c84c450b Reviewed-on: https://dart-review.googlesource.com/18506 Commit-Queue: Stephen Adams <sra@google.com> Reviewed-by: Stephen Adams <sra@google.com> Reviewed-by: Kevin Moore <kevmoo@google.com>
This commit is contained in:
parent
24e4d3bb39
commit
4babd94282
|
@ -1,6 +1,6 @@
|
||||||
## 1.1.4
|
## 1.1.4
|
||||||
|
|
||||||
* Add `@dart2js.noInline` and `@dart2js.tryInline` annotations.
|
* Added dart2js.dart.
|
||||||
|
|
||||||
## 1.1.2
|
## 1.1.2
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
// BSD-style license that can be found in the LICENSE file.
|
// BSD-style license that can be found in the LICENSE file.
|
||||||
|
|
||||||
/// Constants for use in metadata annotations to provide hints to dart2js.
|
/// Constants for use in metadata annotations to provide hints to dart2js.
|
||||||
|
///
|
||||||
|
/// This is an experimental feature and not expected to be useful except for low
|
||||||
|
/// level framwork authors.
|
||||||
|
///
|
||||||
|
/// Added at sdk version 2.0.0-dev.6.0
|
||||||
library meta_dart2js;
|
library meta_dart2js;
|
||||||
|
|
||||||
/// An annotation for methods to request that dart2js does not inline the
|
/// An annotation for methods to request that dart2js does not inline the
|
||||||
|
@ -13,7 +17,6 @@ library meta_dart2js;
|
||||||
///
|
///
|
||||||
/// @dart2js.noInline
|
/// @dart2js.noInline
|
||||||
/// String text() => 'A String of unusual size';
|
/// String text() => 'A String of unusual size';
|
||||||
///
|
|
||||||
const _NoInline noInline = const _NoInline();
|
const _NoInline noInline = const _NoInline();
|
||||||
|
|
||||||
/// An annotation for methods method to request that dart2js always inlines the
|
/// An annotation for methods method to request that dart2js always inlines the
|
||||||
|
@ -30,7 +33,7 @@ const _NoInline noInline = const _NoInline();
|
||||||
/// for (int i in "Hello".runes) print(i);
|
/// for (int i in "Hello".runes) print(i);
|
||||||
/// }
|
/// }
|
||||||
///
|
///
|
||||||
/// It is an error to use both `@noInline` and `@tryInline`.
|
/// It is an error to use both `@noInline` and `@tryInline` on the same method.
|
||||||
const _TryInline tryInline = const _TryInline();
|
const _TryInline tryInline = const _TryInline();
|
||||||
|
|
||||||
class _NoInline {
|
class _NoInline {
|
||||||
|
|
Loading…
Reference in a new issue