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

Side by Side Diff: pkg/analyzer/lib/src/generated/visitors.dart

Issue 1513643009: Clean up package imports and library names (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 engine.ast.visitors; 5 library analyzer.src.generated.visitors;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 8
9 /// An [AstVisitor] that delegates calls to visit methods to all [delegates] 9 /// An [AstVisitor] that delegates calls to visit methods to all [delegates]
10 /// before calling [visitChildren]. 10 /// before calling [visitChildren].
11 class DelegatingAstVisitor<T> implements AstVisitor<T> { 11 class DelegatingAstVisitor<T> implements AstVisitor<T> {
12 Iterable<AstVisitor<T>> _delegates; 12 Iterable<AstVisitor<T>> _delegates;
13 DelegatingAstVisitor(this._delegates); 13 DelegatingAstVisitor(this._delegates);
14 14
15 @override 15 @override
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 return null; 778 return null;
779 } 779 }
780 780
781 @override 781 @override
782 T visitYieldStatement(YieldStatement node) { 782 T visitYieldStatement(YieldStatement node) {
783 _delegates.forEach((delegate) => delegate.visitYieldStatement(node)); 783 _delegates.forEach((delegate) => delegate.visitYieldStatement(node));
784 node.visitChildren(this); 784 node.visitChildren(this);
785 return null; 785 return null;
786 } 786 }
787 } 787 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_general.dart ('k') | pkg/analyzer/lib/src/plugin/options_plugin.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698