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

Unified Diff: pkg/compiler/lib/src/typechecker.dart

Issue 2942763002: Late night strong mode cleaning. (Closed)
Patch Set: Created 3 years, 6 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 | « pkg/compiler/lib/src/platform_configuration.dart ('k') | pkg/compiler/testing_strong.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/typechecker.dart
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart
index a4478e7bf384d9be3ab9f67e30c5d66ba1e76433..6f4f91efd8467aabe3c837039bee60237b527a88 100644
--- a/pkg/compiler/lib/src/typechecker.dart
+++ b/pkg/compiler/lib/src/typechecker.dart
@@ -25,12 +25,12 @@ import 'elements/elements.dart'
EnumConstantElement,
ExecutableElement,
FieldElement,
+ FormalElement,
FunctionElement,
GetterElement,
InitializingFormalElement,
LibraryElement,
MemberSignature,
- ParameterElement,
ResolvedAst,
SetterElement,
TypeDeclarationElement,
@@ -654,7 +654,7 @@ class TypeCheckerVisitor extends Visitor<ResolutionDartType> {
type = const ResolutionDynamicType();
returnType = const ResolutionVoidType();
- element.functionSignature.forEachParameter((ParameterElement parameter) {
+ element.functionSignature.forEachParameter((FormalElement parameter) {
if (parameter.isInitializingFormal) {
InitializingFormalElement fieldParameter = parameter;
checkAssignable(parameter, parameter.type,
@@ -1685,7 +1685,7 @@ class TypeCheckerVisitor extends Visitor<ResolutionDartType> {
/** Dart Programming Language Specification: 11.10 Return */
visitReturn(Return node) {
if (identical(node.beginToken.stringValue, 'native')) {
- return;
+ return null;
}
final Node expression = node.expression;
« no previous file with comments | « pkg/compiler/lib/src/platform_configuration.dart ('k') | pkg/compiler/testing_strong.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698