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

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 895583006: Update yield warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix example Created 5 years, 10 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/compiler/lib/src/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 2611192b7ca9cffb378e6c9a833af41840c70e13..3ed5d9724b8dbfb37b38bac57ce565003851d493 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -2470,10 +2470,16 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
LocalFunctionElementX function = new LocalFunctionElementX(
name, node, ElementKind.FUNCTION, Modifiers.EMPTY,
enclosingElement);
- function.functionSignatureCache =
- SignatureResolver.analyze(compiler, node.parameters, node.returnType,
- function, registry, createRealParameters: true);
ResolverTask.processAsyncMarker(compiler, function);
+ function.functionSignatureCache = SignatureResolver.analyze(
+ compiler,
+ node.parameters,
+ node.returnType,
+ function,
+ registry,
+ createRealParameters: true,
+ asyncMarker:
+ inFunctionDeclaration ? AsyncMarker.SYNC : function.asyncMarker);
floitsch 2015/02/04 15:44:57 What does 'inFunctionDeclaration' do? Why does it
Johnni Winther 2015/02/05 08:48:32 [inFunctionDeclaration] is `true` if [function] is
checkLocalDefinitionName(node, function);
registry.defineFunction(node, function);
if (doAddToScope) {

Powered by Google App Engine
This is Rietveld 408576698