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

Unified Diff: pkg/compiler/lib/src/types/constants.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/types/constants.dart
diff --git a/pkg/compiler/lib/src/types/constants.dart b/pkg/compiler/lib/src/types/constants.dart
index e7ecab17ab84b6e14b6079674b498e19d5073792..a3b2faa917f308e56224fd7a85be2d8a7e7e743a 100644
--- a/pkg/compiler/lib/src/types/constants.dart
+++ b/pkg/compiler/lib/src/types/constants.dart
@@ -5,11 +5,9 @@
library types.constants;
import '../common.dart';
-import '../compiler.dart' show
- Compiler;
+import '../compiler.dart' show Compiler;
import '../constants/values.dart';
-import '../js_backend/js_backend.dart' show
- SyntheticConstantKind;
+import '../js_backend/js_backend.dart' show SyntheticConstantKind;
import 'types.dart';
/// Computes the [TypeMask] for the constant [value].
@@ -21,8 +19,8 @@ class ConstantValueTypeMasks extends ConstantValueVisitor<TypeMask, Compiler> {
const ConstantValueTypeMasks();
@override
- TypeMask visitConstructed(ConstructedConstantValue constant,
- Compiler compiler) {
+ TypeMask visitConstructed(
+ ConstructedConstantValue constant, Compiler compiler) {
if (compiler.backend.isInterceptorClass(constant.type.element)) {
return compiler.typesTask.nonNullType;
}
@@ -61,8 +59,8 @@ class ConstantValueTypeMasks extends ConstantValueVisitor<TypeMask, Compiler> {
return compiler.typesTask.stringType;
default:
DiagnosticReporter reporter = compiler.reporter;
- reporter.internalError(CURRENT_ELEMENT_SPANNABLE,
- "Unexpected DummyConstantKind.");
+ reporter.internalError(
+ CURRENT_ELEMENT_SPANNABLE, "Unexpected DummyConstantKind.");
return null;
}
}
@@ -86,8 +84,8 @@ class ConstantValueTypeMasks extends ConstantValueVisitor<TypeMask, Compiler> {
}
@override
- TypeMask visitInterceptor(InterceptorConstantValue constant,
- Compiler compiler) {
+ TypeMask visitInterceptor(
+ InterceptorConstantValue constant, Compiler compiler) {
return compiler.typesTask.nonNullType;
}
« no previous file with comments | « pkg/compiler/lib/src/types/abstract_value_domain.dart ('k') | pkg/compiler/lib/src/types/container_type_mask.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698