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

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

Issue 2301953003: Rerun formatter on dartjs except kernel and shared_messages (Closed)
Patch Set: Created 4 years, 3 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/ssa/graph_builder.dart ('k') | no next file » | 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 01cff2d5f281a33291f931338dffa55057979835..3cf8a5681470731b31fbec03eb9836f952779095 100644
--- a/pkg/compiler/lib/src/typechecker.dart
+++ b/pkg/compiler/lib/src/typechecker.dart
@@ -1776,7 +1776,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
void analyzeVariableInitializer(
Spannable spannable, DartType declaredType, Node initializer) {
if (initializer == null) return;
-
+
DartType expressionType = analyzeNonVoid(initializer);
checkAssignable(spannable, expressionType, declaredType);
}
@@ -1791,9 +1791,7 @@ class TypeCheckerVisitor extends Visitor<DartType> {
message: 'expected identifier or initialization');
if (definition is SendSet) {
SendSet initialization = definition;
- analyzeVariableInitializer(
- initialization.assignmentOperator,
- type,
+ analyzeVariableInitializer(initialization.assignmentOperator, type,
initialization.arguments.head);
// TODO(sigmund): explore inferring a type for `var` using the RHS (like
// DDC does), for example:
« no previous file with comments | « pkg/compiler/lib/src/ssa/graph_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698