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

Side by Side Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 1391193002: Make computeSignature private to modelx. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dart2js.resolution.members; 5 library dart2js.resolution.members;
6 6
7 import '../common/names.dart' show 7 import '../common/names.dart' show
8 Selectors; 8 Selectors;
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 String name; 612 String name;
613 if (node.name == null) { 613 if (node.name == null) {
614 name = ""; 614 name = "";
615 } else { 615 } else {
616 name = node.name.asIdentifier().source; 616 name = node.name.asIdentifier().source;
617 } 617 }
618 LocalFunctionElementX function = new LocalFunctionElementX( 618 LocalFunctionElementX function = new LocalFunctionElementX(
619 name, node, ElementKind.FUNCTION, Modifiers.EMPTY, 619 name, node, ElementKind.FUNCTION, Modifiers.EMPTY,
620 enclosingElement); 620 enclosingElement);
621 ResolverTask.processAsyncMarker(compiler, function, registry); 621 ResolverTask.processAsyncMarker(compiler, function, registry);
622 function.functionSignatureCache = SignatureResolver.analyze( 622 function.functionSignature = SignatureResolver.analyze(
623 compiler, 623 compiler,
624 node.parameters, 624 node.parameters,
625 node.returnType, 625 node.returnType,
626 function, 626 function,
627 registry, 627 registry,
628 createRealParameters: true, 628 createRealParameters: true,
629 isFunctionExpression: !inFunctionDeclaration); 629 isFunctionExpression: !inFunctionDeclaration);
630 checkLocalDefinitionName(node, function); 630 checkLocalDefinitionName(node, function);
631 registry.defineFunction(node, function); 631 registry.defineFunction(node, function);
632 if (doAddToScope) { 632 if (doAddToScope) {
(...skipping 4058 matching lines...) Expand 10 before | Expand all | Expand 10 after
4691 } 4691 }
4692 return const NoneResult(); 4692 return const NoneResult();
4693 } 4693 }
4694 } 4694 }
4695 4695
4696 /// Looks up [name] in [scope] and unwraps the result. 4696 /// Looks up [name] in [scope] and unwraps the result.
4697 Element lookupInScope(DiagnosticReporter reporter, Node node, 4697 Element lookupInScope(DiagnosticReporter reporter, Node node,
4698 Scope scope, String name) { 4698 Scope scope, String name) {
4699 return Elements.unwrap(scope.lookup(name), reporter, node); 4699 return Elements.unwrap(scope.lookup(name), reporter, node);
4700 } 4700 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/enum_creator.dart ('k') | pkg/compiler/lib/src/resolution/signatures.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698