| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |