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

Unified Diff: pkg/compiler/lib/src/use_unused_api.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/universe/world_impact.dart ('k') | pkg/compiler/lib/src/util/characters.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/use_unused_api.dart
diff --git a/pkg/compiler/lib/src/use_unused_api.dart b/pkg/compiler/lib/src/use_unused_api.dart
index ed69c6f273f6c5ba1107b33681c6e20f3bf5aaab..d3578f776ed5f0571334a40a2c260dcf8503aa11 100644
--- a/pkg/compiler/lib/src/use_unused_api.dart
+++ b/pkg/compiler/lib/src/use_unused_api.dart
@@ -45,9 +45,8 @@ import 'tree/tree.dart' as tree;
import 'util/util.dart' as util;
import 'world.dart';
-import 'parser/partial_elements.dart' show
- PartialClassElement,
- PartialFunctionElement;
+import 'parser/partial_elements.dart'
+ show PartialClassElement, PartialFunctionElement;
class ElementVisitor extends elements_visitor.BaseElementVisitor {
visitElement(e, a) {}
@@ -93,36 +92,33 @@ useApi([api.ReadStringFromUri uri, compiler.Compiler compiler]) {
class NullConstantConstructorVisitor
extends constants.ConstantConstructorVisitor {
@override
- visitGenerative(constants.GenerativeConstantConstructor constructor, arg) {
- }
+ visitGenerative(constants.GenerativeConstantConstructor constructor, arg) {}
@override
visitRedirectingFactory(
- constants.RedirectingFactoryConstantConstructor constructor, arg) {
- }
+ constants.RedirectingFactoryConstantConstructor constructor, arg) {}
@override
visitRedirectingGenerative(
- constants.RedirectingGenerativeConstantConstructor constructor, arg) {
- }
+ constants.RedirectingGenerativeConstantConstructor constructor, arg) {}
}
-void useConstant([constants.ConstantValue constant,
- constants.ConstantExpression expression,
- constants.ConstructedConstantExpression constructedConstant,
- constants.ConstantSystem cs,
- constants.Environment env]) {
+void useConstant(
+ [constants.ConstantValue constant,
+ constants.ConstantExpression expression,
+ constants.ConstructedConstantExpression constructedConstant,
+ constants.ConstantSystem cs,
+ constants.Environment env]) {
constant.isObject;
cs.isBool(constant);
constructedConstant.computeInstanceType();
constructedConstant.computeInstanceFields();
expression.evaluate(null, null);
new NullConstantConstructorVisitor()
- ..visit(null, null)
- ..visitGenerative(null, null)
- ..visitRedirectingFactory(null, null)
- ..visitRedirectingGenerative(null, null);
-
+ ..visit(null, null)
+ ..visitGenerative(null, null)
+ ..visitRedirectingFactory(null, null)
+ ..visitRedirectingGenerative(null, null);
}
void useNode(tree.Node node) {
@@ -246,12 +242,12 @@ useSsa(ssa.HInstruction instruction) {
new ssa.HStatementSequenceInformation(null);
}
-useIo([io.LineColumnMap map,
- io.LineColumnProvider provider]) {
- map..addFirst(null, null, null)
- ..forEachLine(null)
- ..getFirstElementsInLine(null)
- ..forEachColumn(null, null);
+useIo([io.LineColumnMap map, io.LineColumnProvider provider]) {
+ map
+ ..addFirst(null, null, null)
+ ..forEachLine(null)
+ ..getFirstElementsInLine(null)
+ ..forEachColumn(null, null);
provider.getOffset(null, null);
}
@@ -275,11 +271,11 @@ usedByTests() {
useElements(
[elements.ClassElement e,
- elements.Name n,
- modelx.FieldElementX f,
- PartialClassElement pce,
- PartialFunctionElement pfe,
- elements.LibraryElement l]) {
+ elements.Name n,
+ modelx.FieldElementX f,
+ PartialClassElement pce,
+ PartialFunctionElement pfe,
+ elements.LibraryElement l]) {
e.lookupClassMember(null);
e.lookupInterfaceMember(null);
n.isAccessibleFrom(null);
@@ -290,23 +286,20 @@ useElements(
}
useIr(ir_builder.IrBuilder builder) {
- builder
- ..buildStringConstant(null);
+ builder..buildStringConstant(null);
}
useCompiler(compiler.Compiler c) {
c.libraryLoader
- ..reset()
- ..resetAsync(null)
- ..lookupLibrary(null);
+ ..reset()
+ ..resetAsync(null)
+ ..lookupLibrary(null);
c.forgetElement(null);
c.backend.constantCompilerTask.copyConstantValues(null);
c.currentlyInUserCode();
-
}
-useTypes() {
-}
+useTypes() {}
useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) {
full.Emitter fullEmitter = codeEmitterTask.emitter;
@@ -332,7 +325,7 @@ useSemanticVisitor() {
}
class TreeVisitor1 extends tree_ir.ExpressionVisitor1
- with tree_ir.StatementVisitor1 {
+ with tree_ir.StatementVisitor1 {
noSuchMethod(inv) {}
}
« no previous file with comments | « pkg/compiler/lib/src/universe/world_impact.dart ('k') | pkg/compiler/lib/src/util/characters.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698