| library; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/rasta/native_is_illegal.dart:5:7: Error: Expected a function body or '=>'. |
| // Try adding {}. |
| // foo() native "foo"; |
| // ^^^^^^ |
| // |
| // pkg/front_end/testcases/rasta/native_is_illegal.dart:8:13: Error: Expected a function body or '=>'. |
| // Try adding {}. |
| // Bar get x native "Bar_get_x"; |
| // ^^^^^^ |
| // |
| // pkg/front_end/testcases/rasta/native_is_illegal.dart:9:20: Error: Expected a function body or '=>'. |
| // Try adding {}. |
| // set x(Bar value) native "Bar_set_x"; |
| // ^^^^^^ |
| // |
| // pkg/front_end/testcases/rasta/native_is_illegal.dart:10:7: Error: Expected a function body or '=>'. |
| // Try adding {}. |
| // f() native "Bar_f"; |
| // ^^^^^^ |
| // |
| // pkg/front_end/testcases/rasta/native_is_illegal.dart:11:17: Error: Expected a function body or '=>'. |
| // Try adding {}. |
| // factory Bar() native "Bar_constructor"; |
| // ^^^^^^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| import "dart:_internal" as _in; |
| |
| class Bar extends core::Object { |
| @#C2 |
| external get x() → self::Bar; |
| @#C4 |
| external set x(self::Bar value) → void; |
| @#C6 |
| external method f() → dynamic; |
| @#C8 |
| external static factory •() → self::Bar; |
| } |
| @#C10 |
| external static method foo() → dynamic; |
| |
| constants { |
| #C1 = "Bar_get_x" |
| #C2 = _in::ExternalName {name:#C1} |
| #C3 = "Bar_set_x" |
| #C4 = _in::ExternalName {name:#C3} |
| #C5 = "Bar_f" |
| #C6 = _in::ExternalName {name:#C5} |
| #C7 = "Bar_constructor" |
| #C8 = _in::ExternalName {name:#C7} |
| #C9 = "foo" |
| #C10 = _in::ExternalName {name:#C9} |
| } |
| |
| |
| Constructor coverage from constants: |
| org-dartlang-testcase:///native_is_illegal.dart: |
| - ExternalName. (from org-dartlang-sdk:///sdk/lib/internal/internal.dart) |
| - Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) |