| Index: lib/src/utils.dart
|
| diff --git a/lib/src/utils.dart b/lib/src/utils.dart
|
| index 3ebae7785452549532d1662719120c6ff52c067d..979faf306e4e7bbc6d5dfc95c3442541d8772857 100644
|
| --- a/lib/src/utils.dart
|
| +++ b/lib/src/utils.dart
|
| @@ -465,3 +465,7 @@ SourceSpanWithContext createSpanHelper(
|
| var lineText = content.substring(lineStart, lineEnd);
|
| return new SourceSpanWithContext(startLoc, endLoc, text, lineText);
|
| }
|
| +
|
| +bool isInlineJS(Element e) => e is FunctionElement &&
|
| + e.library.source.uri.toString() == 'dart:_foreign_helper' &&
|
| + e.name == 'JS';
|
|
|