Chromium Code Reviews| Index: pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
| diff --git a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
| index 152f2f4e23d29d89175aa71889a9d1eb3ecec486..c281e178e0a85760ef6b5b2e68c5826c4211d776 100644 |
| --- a/pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
| +++ b/pkg/compiler/lib/src/inferrer/inferrer_engine.dart |
| @@ -85,6 +85,17 @@ class InferrerEngine { |
| CommonElements get commonElements => closedWorld.commonElements; |
| + /// Returns `true` if [element] has an `@AssumeDynamic()` annotation. |
| + bool assumeDynamic(Element element) { |
| + return element is MemberElement && annotations.assumeDynamic(element); |
|
Siggi Cherem (dart-lang)
2017/05/02 20:04:22
nit: let's rename annotations too (optimizerHints?
Johnni Winther
2017/05/03 08:05:59
Done.
|
| + } |
| + |
| + /// Returns `true` if [element] has an `@TrustTypeAnnotations()` annotation. |
| + bool trustTypeAnnotations(Element element) { |
| + return element is MemberElement && |
| + annotations.trustTypeAnnotations(element); |
| + } |
| + |
| /** |
| * Applies [f] to all elements in the universe that match |
| * [selector] and [mask]. If [f] returns false, aborts the iteration. |