-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 402f856 into dev
- Loading branch information
Showing
11 changed files
with
120 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
pkg/vm/testcases/transformations/resource_identifier/different.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
|
||
void main() { | ||
print(SomeClass.someStaticMethod(42)); | ||
} | ||
|
||
class SomeClass { | ||
@ResourceIdentifier('id') | ||
static someStaticMethod(int i) { | ||
return i + 1; | ||
} | ||
} | ||
|
||
class ResourceIdentifier { | ||
final Object? metadata; | ||
|
||
const ResourceIdentifier([this.metadata]); | ||
} |
15 changes: 15 additions & 0 deletions
15
pkg/vm/testcases/transformations/resource_identifier/different.dart.aot.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
library #lib; | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
abstract class SomeClass extends core::Object { | ||
[@vm.unboxing-info.metadata=()->i] static method someStaticMethod() → dynamic { | ||
return [@vm.direct-call.metadata=dart.core::_IntegerImplementation.+] [@vm.inferred-type.metadata=int (skip check)] #C1.{core::num::+}(1){(core::num) → core::int}; | ||
} | ||
} | ||
static method main() → void { | ||
core::print([@vm.inferred-type.metadata=int] self::SomeClass::someStaticMethod()); | ||
} | ||
constants { | ||
#C1 = 42 | ||
} |
8 changes: 8 additions & 0 deletions
8
pkg/vm/testcases/transformations/resource_identifier/different.dart.json.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"_comment": "Resources referenced by annotated resource identifiers", | ||
"AppTag": "TBD", | ||
"environment": { | ||
"dart.tool.dart2js": false | ||
}, | ||
"identifiers": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,5 @@ CHANNEL dev | |
MAJOR 3 | ||
MINOR 4 | ||
PATCH 0 | ||
PRERELEASE 113 | ||
PRERELEASE 114 | ||
PRERELEASE_PATCH 0 |