Chromium Code Reviews| 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) { |