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

Unified Diff: pkg/compiler/lib/src/cps_ir/optimizers.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/cps_ir/optimizers.dart
diff --git a/pkg/compiler/lib/src/cps_ir/optimizers.dart b/pkg/compiler/lib/src/cps_ir/optimizers.dart
index 2b248fe9a99a4a564a73715c56a7b54d0d2cb876..8af5154a7242debf5e5999ccb07fbc840ec17471 100644
--- a/pkg/compiler/lib/src/cps_ir/optimizers.dart
+++ b/pkg/compiler/lib/src/cps_ir/optimizers.dart
@@ -42,7 +42,7 @@ abstract class Pass {
/// Returns true if [value] is false, null, 0, -0, NaN, or the empty string.
bool isFalsyConstant(ConstantValue value) {
return value.isFalse ||
- value.isNull ||
+ value.isNull ||
value.isZero ||
value.isMinusZero ||
value.isNaN ||
@@ -59,6 +59,10 @@ bool isTruthyConstant(ConstantValue value, {bool strict: false}) {
/// Selectors that do not throw when invoked on the null value.
final List<Selector> selectorsOnNull = <Selector>[
- Selectors.equals, Selectors.hashCode_, Selectors.runtimeType_,
- Selectors.toString_, Selectors.toStringGetter,
- Selectors.noSuchMethodGetter];
+ Selectors.equals,
+ Selectors.hashCode_,
+ Selectors.runtimeType_,
+ Selectors.toString_,
+ Selectors.toStringGetter,
+ Selectors.noSuchMethodGetter
+];
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/optimize_interceptors.dart ('k') | pkg/compiler/lib/src/cps_ir/parent_visitor.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698