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

Unified Diff: pkg/compiler/lib/src/native/js.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
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/native/native.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/native/native.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698