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

Side by Side Diff: pkg/analyzer/lib/src/dart/ast/ast.dart

Issue 2314403008: Remove PrintWriter and PrintStringWriter from java_core. (Closed)
Patch Set: remove _printf Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.dart.ast.ast; 5 library analyzer.src.dart.ast.ast;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 } else { 931 } else {
932 if (_propertyMap == null) { 932 if (_propertyMap == null) {
933 _propertyMap = new HashMap<String, Object>(); 933 _propertyMap = new HashMap<String, Object>();
934 } 934 }
935 _propertyMap[name] = value; 935 _propertyMap[name] = value;
936 } 936 }
937 } 937 }
938 938
939 @override 939 @override
940 String toSource() { 940 String toSource() {
941 PrintStringWriter writer = new PrintStringWriter(); 941 StringBuffer buffer = new StringBuffer();
942 accept(new ToSourceVisitor(writer)); 942 accept(new ToSourceVisitor(buffer));
943 return writer.toString(); 943 return buffer.toString();
944 } 944 }
945 945
946 @override 946 @override
947 String toString() => toSource(); 947 String toString() => toSource();
948 948
949 /** 949 /**
950 * Make this node the parent of the given [child] node. Return the child node. 950 * Make this node the parent of the given [child] node. Return the child node.
951 */ 951 */
952 AstNode _becomeParentOf(AstNodeImpl child) { 952 AstNode _becomeParentOf(AstNodeImpl child) {
953 if (child != null) { 953 if (child != null) {
(...skipping 10093 matching lines...) Expand 10 before | Expand all | Expand 10 after
11047 11047
11048 @override 11048 @override
11049 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => 11049 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) =>
11050 visitor.visitYieldStatement(this); 11050 visitor.visitYieldStatement(this);
11051 11051
11052 @override 11052 @override
11053 void visitChildren(AstVisitor visitor) { 11053 void visitChildren(AstVisitor visitor) {
11054 _expression?.accept(visitor); 11054 _expression?.accept(visitor);
11055 } 11055 }
11056 } 11056 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698