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:
Leaf Petersen 2017-12-19 22:03:43 +00:00 committed by commit-bot@chromium.org
parent a6b28dfee6
commit 1ed4096b4e
4 changed files with 5 additions and 5 deletions

View file

@ -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;
}

View file

@ -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>();

View file

@ -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;
}

View file

@ -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;
}