Roll engine, patch expression evaluation (#128255)

Roll to engine to 4f4486b00be28183b482bbb74bbed25f4db153fe  pick up dart to 3.1.0-169.0.dev.
Changes since last roll
```
4f4486b00b Roll dart to 3.1.0-169.0.dev (#42602)
```

Manual roll since rolling to dart 3.1.0-169.0.dev requires patching to expression evaluation in flutter tools
This commit is contained in:
Alexander Aprelev
2023-06-07 12:48:42 -07:00
committed by GitHub
parent 848d4f0e7e
commit 09c0706734
6 changed files with 54 additions and 10 deletions

View File

@@ -392,9 +392,13 @@ class FlutterPlatform extends PlatformPlugin {
String isolateId,
String expression,
List<String> definitions,
List<String> definitionTypes,
List<String> typeDefinitions,
List<String> typeBounds,
List<String> typeDefaults,
String libraryUri,
String? klass,
String? method,
bool isStatic,
) async {
if (compiler == null || compiler!.compiler == null) {
@@ -402,7 +406,8 @@ class FlutterPlatform extends PlatformPlugin {
}
final CompilerOutput? compilerOutput =
await compiler!.compiler!.compileExpression(expression, definitions,
typeDefinitions, libraryUri, klass, isStatic);
definitionTypes, typeDefinitions, typeBounds, typeDefaults, libraryUri,
klass, method, isStatic);
if (compilerOutput != null && compilerOutput.expressionData != null) {
return base64.encode(compilerOutput.expressionData!);
}