Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: lib/src/compiler/code_generator.dart

Issue 2132763002: Fix null aware generic invocation. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Fix null aware generic invoke Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/compiler/ast_builder.dart ('k') | test/codegen/language/nullaware_opt_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/compiler/code_generator.dart
diff --git a/lib/src/compiler/code_generator.dart b/lib/src/compiler/code_generator.dart
index efd3de99c60dc02ece3c50b063de1bab89e6d39e..c6a700390f429d073f854cae677efa1797b670d9 100644
--- a/lib/src/compiler/code_generator.dart
+++ b/lib/src/compiler/code_generator.dart
@@ -4302,8 +4302,9 @@ class CodeGenerator extends GeneralizingAstVisitor
return AstBuilder.propertyAccess(newTarget, node.propertyName);
} else {
var invoke = node as MethodInvocation;
- return AstBuilder.methodInvoke(
- newTarget, invoke.methodName, invoke.argumentList.arguments);
+ return AstBuilder.methodInvoke(newTarget, invoke.methodName,
+ invoke.typeArguments, invoke.argumentList.arguments)
+ ..staticInvokeType = invoke.staticInvokeType;
}
}
« no previous file with comments | « lib/src/compiler/ast_builder.dart ('k') | test/codegen/language/nullaware_opt_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698