You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r"""Function converted via '#conversion' contains invalid types in its function signature: '#string2'.""",
9802
+
correctionMessageTemplate:
9803
+
r"""Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void, bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop' types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid non-primitive type.""",
var conversion_0 = conversions.validateString(conversion);
9814
+
var string2_0 = conversions.validateString(string2);
9815
+
return new Message(
9816
+
codeJsInteropFunctionToJSTypeViolation,
9817
+
problemMessage:
9818
+
"""Function converted via '${conversion_0}' contains invalid types in its function signature: '${string2_0}'.""",
9819
+
correctionMessage:
9820
+
"""Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void, bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop' types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid non-primitive type.""",
r"""Function converted via 'toJS' contains invalid types in its function signature: '#string2'.""",
10238
-
correctionMessageTemplate:
10239
-
r"""Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void, bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop' types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid non-primitive type.""",
"""Function converted via 'toJS' contains invalid types in its function signature: '${string2_0}'.""",
10254
-
correctionMessage:
10255
-
"""Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void, bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop' types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid non-primitive type.""",
10256
-
arguments: {'string2': string2},
10257
-
);
10258
-
}
10259
-
10260
-
// DO NOT EDIT. THIS FILE IS GENERATED. SEE TOP OF FILE.
r"""`Function.toJS` requires a statically known function type, but Type '#type' is not a precise function type, e.g., `void Function()`.""",
3150
+
r"""Functions converted via '#conversion' require a statically known function type, but Type '#type' is not a precise function type, e.g., `void Function()`.""",
3151
3151
correctionMessageTemplate:
3152
3152
r"""Insert an explicit cast to the expected function type.""",
var conversion_0 = conversions.validateString(conversion);
3161
3163
TypeLabeler labeler =newTypeLabeler();
3162
3164
var type_0 = labeler.labelType(type);
3163
3165
returnnewMessage(
3164
3166
codeJsInteropFunctionToJSRequiresStaticType,
3165
3167
problemMessage:
3166
-
"""`Function.toJS` requires a statically known function type, but Type '${type_0}' is not a precise function type, e.g., `void Function()`."""+
3168
+
"""Functions converted via '${conversion_0}' require a statically known function type, but Type '${type_0}' is not a precise function type, e.g., `void Function()`."""+
3167
3169
labeler.originMessages,
3168
3170
correctionMessage:
3169
3171
"""Insert an explicit cast to the expected function type.""",
0 commit comments