mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 13:57:58 +00:00
Remove generic comment syntax from pkg/dev_compiler.
Bug: Change-Id: Ifc823c2b703ec70cd97981f08b29396de516f678 Reviewed-on: https://dart-review.googlesource.com/30382 Reviewed-by: Bob Nystrom <rnystrom@google.com> Commit-Queue: Leaf Petersen <leafp@google.com>
This commit is contained in:
parent
a6b28dfee6
commit
1ed4096b4e
|
@ -3,7 +3,7 @@ library test;
|
|||
|
||||
import 'dart:js';
|
||||
|
||||
List/*<T>*/ generic_function/*<T>*/(List/*<T>*/ items, dynamic/*=T*/ seed) {
|
||||
List<T> generic_function<T>(List<T> items, T seed) {
|
||||
var strings = items.map((i) => "$i").toList();
|
||||
return items;
|
||||
}
|
||||
|
|
|
@ -560,7 +560,7 @@ Object _putIfAbsent(weakMap, o, getValue(o)) {
|
|||
/// JavaScript. We may remove the need to call this method completely in the
|
||||
/// future if Dart2Js is refactored so that its function calling conventions
|
||||
/// are more compatible with JavaScript.
|
||||
Function/*=F*/ allowInterop/*<F extends Function>*/(Function/*=F*/ f) => f;
|
||||
F allowInterop<F extends Function>(F f) => f;
|
||||
|
||||
Expando<Function> _interopCaptureThisExpando = new Expando<Function>();
|
||||
|
||||
|
|
|
@ -36,13 +36,13 @@ void printToConsole(String line) {
|
|||
}
|
||||
|
||||
@patch
|
||||
List/*<E>*/ makeListFixedLength/*<E>*/(List/*<E>*/ growableList) {
|
||||
List<E> makeListFixedLength<E>(List<E> growableList) {
|
||||
JSArray.markFixedList(growableList);
|
||||
return growableList;
|
||||
}
|
||||
|
||||
@patch
|
||||
List/*<E>*/ makeFixedListUnmodifiable/*<E>*/(List/*<E>*/ fixedLengthList) {
|
||||
List<E> makeFixedListUnmodifiable<E>(List<E> fixedLengthList) {
|
||||
JSArray.markUnmodifiableList(fixedLengthList);
|
||||
return fixedLengthList;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ void defineProperty(var obj, String property, var value) {
|
|||
|
||||
// Obsolete in dart dev compiler. Added only so that the same version of
|
||||
// dart:html can be used in dart2js an dev compiler.
|
||||
/*=F*/ convertDartClosureToJS/*<F>*/(/*=F*/ closure, int arity) {
|
||||
F convertDartClosureToJS<F>(F closure, int arity) {
|
||||
return closure;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue