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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart

Issue 2877253003: Don't type promote local functions. (Closed)
Patch Set: Created 3 years, 7 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
Index: pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
index 6982553f7b23b4c6997cb7abad3df77eb0012a6d..8067901f29774c110ea52a15c5a1937fdb37fa34 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
@@ -241,12 +241,14 @@ class KernelAstFactory implements AstFactory<VariableDeclaration> {
Expression initializer,
Token equalsToken,
bool isFinal: false,
- bool isConst: false}) {
+ bool isConst: false,
+ bool isLocalFunction: false}) {
return new KernelVariableDeclaration(name, functionNestingLevel,
type: type,
initializer: initializer,
isFinal: isFinal,
- isConst: isConst)
+ isConst: isConst,
+ isLocalFunction: isLocalFunction)
..fileOffset = offsetForToken(token)
..fileEqualsOffset = offsetForToken(equalsToken);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698