| Index: pkg/compiler/lib/src/js/js.dart
|
| diff --git a/pkg/compiler/lib/src/js/js.dart b/pkg/compiler/lib/src/js/js.dart
|
| index 274236a9763031f30433d85ab9a9b616fb8b5162..df510a854fcbb38363ccd9028427d0b70f267b38 100644
|
| --- a/pkg/compiler/lib/src/js/js.dart
|
| +++ b/pkg/compiler/lib/src/js/js.dart
|
| @@ -182,6 +182,12 @@ class UnparsedNode extends DeferredString
|
| String get value => _literal.value;
|
| }
|
|
|
| +/// True if the given template consists of just a placeholder. Such templates
|
| +/// are sometimes used to manually promote the type of an expression.
|
| +bool isIdentityTemplate(Template template) {
|
| + return template.ast is InterpolatedExpression;
|
| +}
|
| +
|
| /// Returns `true` if [template] will immediately give a TypeError if the first
|
| /// placeholder is `null` or `undefined`.
|
| bool isNullGuardOnFirstArgument(Template template) {
|
|
|