Index: pkg/compiler/lib/src/native/js.dart |
diff --git a/pkg/compiler/lib/src/native/js.dart b/pkg/compiler/lib/src/native/js.dart |
index 9108b906e7af8bd51b6cd4bf244e024a54194312..1251fe54a1db7e55b99e784b031dca6e9a011ec8 100644 |
--- a/pkg/compiler/lib/src/native/js.dart |
+++ b/pkg/compiler/lib/src/native/js.dart |
@@ -8,7 +8,6 @@ import '../universe/side_effects.dart' show SideEffects; |
import 'behavior.dart'; |
class HasCapturedPlaceholders extends js.BaseVisitor { |
- |
HasCapturedPlaceholders._(); |
static bool check(js.Node node) { |
@@ -113,7 +112,6 @@ class SideEffectsVisitor extends js.BaseVisitor { |
} |
} |
- |
/// ThrowBehaviorVisitor generates a NativeThrowBehavior describing the |
/// exception behavior of a JavaScript expression. |
/// |
@@ -128,7 +126,6 @@ class SideEffectsVisitor extends js.BaseVisitor { |
/// in the calling context. |
/// |
class ThrowBehaviorVisitor extends js.BaseVisitor<NativeThrowBehavior> { |
- |
ThrowBehaviorVisitor(); |
NativeThrowBehavior analyze(js.Node node) { |
@@ -138,8 +135,8 @@ class ThrowBehaviorVisitor extends js.BaseVisitor<NativeThrowBehavior> { |
// TODO(sra): Add [sequence] functionality to NativeThrowBehavior. |
/// Returns the combined behavior of sequential execution of code having |
/// behavior [first] followed by code having behavior [second]. |
- static NativeThrowBehavior sequence(NativeThrowBehavior first, |
- NativeThrowBehavior second) { |
+ static NativeThrowBehavior sequence( |
+ NativeThrowBehavior first, NativeThrowBehavior second) { |
if (first == NativeThrowBehavior.MUST) return first; |
if (second == NativeThrowBehavior.MUST) return second; |
if (second == NativeThrowBehavior.NEVER) return first; |
@@ -151,9 +148,9 @@ class ThrowBehaviorVisitor extends js.BaseVisitor<NativeThrowBehavior> { |
// TODO(sra): Add [choice] functionality to NativeThrowBehavior. |
/// Returns the combined behavior of a choice between two paths with behaviors |
/// [first] and [second]. |
- static NativeThrowBehavior choice(NativeThrowBehavior first, |
- NativeThrowBehavior second) { |
- if (first == second) return first; // Both paths have same behaviour. |
+ static NativeThrowBehavior choice( |
+ NativeThrowBehavior first, NativeThrowBehavior second) { |
+ if (first == second) return first; // Both paths have same behaviour. |
return NativeThrowBehavior.MAY; |
} |