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

Unified Diff: pkg/compiler/lib/src/io/position_information.dart

Issue 1916053003: Add toStructuredText to ConstantExpression and align method names with ConstantValue (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: dartfmt 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/io/position_information.dart
diff --git a/pkg/compiler/lib/src/io/position_information.dart b/pkg/compiler/lib/src/io/position_information.dart
index 38df2215a7153fff167a3b3e4e9c5f53920c5d50..3b01a6fe4140bc01e220ed593568894081b664b3 100644
--- a/pkg/compiler/lib/src/io/position_information.dart
+++ b/pkg/compiler/lib/src/io/position_information.dart
@@ -8,7 +8,8 @@
library dart2js.source_information.position;
import '../common.dart';
-import '../elements/elements.dart' show AstElement, FieldElement, ResolvedAst, ResolvedAstKind;
+import '../elements/elements.dart'
+ show AstElement, FieldElement, ResolvedAst, ResolvedAstKind;
import '../js/js.dart' as js;
import '../js/js_debug.dart';
import '../js/js_source_mapping.dart';
@@ -150,14 +151,14 @@ class PositionSourceInformationBuilder implements SourceInformationBuilder {
SourceInformation buildDeclaration(ResolvedAst resolvedAst) {
if (resolvedAst.kind != ResolvedAstKind.PARSED) {
SourceSpan span = resolvedAst.element.sourcePosition;
- return new PositionSourceInformation(new OffsetSourceLocation(
- sourceFile, span.begin, name));
+ return new PositionSourceInformation(
+ new OffsetSourceLocation(sourceFile, span.begin, name));
} else {
return new PositionSourceInformation(
- new OffsetSourceLocation(sourceFile,
- resolvedAst.node.getBeginToken().charOffset, name),
- new OffsetSourceLocation(sourceFile,
- resolvedAst.node.getEndToken().charOffset, name));
+ new OffsetSourceLocation(
+ sourceFile, resolvedAst.node.getBeginToken().charOffset, name),
+ new OffsetSourceLocation(
+ sourceFile, resolvedAst.node.getEndToken().charOffset, name));
}
}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_dump.dart ('k') | pkg/compiler/lib/src/io/start_end_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698