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

Side by Side Diff: pkg/analysis_server/test/abstract_context.dart

Issue 2328043002: Move exception support to its own library (Closed)
Patch Set: 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
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 testing.abstract_context; 5 library testing.abstract_context;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/dart/element/visitor.dart'; 9 import 'package:analyzer/dart/element/visitor.dart';
10 import 'package:analyzer/exception/exception.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 11 import 'package:analyzer/file_system/file_system.dart';
11 import 'package:analyzer/file_system/memory_file_system.dart'; 12 import 'package:analyzer/file_system/memory_file_system.dart';
12 import 'package:analyzer/source/package_map_resolver.dart'; 13 import 'package:analyzer/source/package_map_resolver.dart';
13 import 'package:analyzer/src/generated/engine.dart'; 14 import 'package:analyzer/src/generated/engine.dart';
14 import 'package:analyzer/src/generated/java_engine.dart' show CaughtException;
15 import 'package:analyzer/src/generated/sdk.dart'; 15 import 'package:analyzer/src/generated/sdk.dart';
16 import 'package:analyzer/src/generated/source_io.dart'; 16 import 'package:analyzer/src/generated/source_io.dart';
17 17
18 import 'mock_sdk.dart'; 18 import 'mock_sdk.dart';
19 19
20 /** 20 /**
21 * Finds an [Element] with the given [name]. 21 * Finds an [Element] with the given [name].
22 */ 22 */
23 Element findChildElement(Element root, String name, [ElementKind kind]) { 23 Element findChildElement(Element root, String name, [ElementKind kind]) {
24 Element result = null; 24 Element result = null;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 * [engine.GeneralizingElementVisitor]. 140 * [engine.GeneralizingElementVisitor].
141 */ 141 */
142 class _ElementVisitorFunctionWrapper extends GeneralizingElementVisitor { 142 class _ElementVisitorFunctionWrapper extends GeneralizingElementVisitor {
143 final _ElementVisitorFunction function; 143 final _ElementVisitorFunction function;
144 _ElementVisitorFunctionWrapper(this.function); 144 _ElementVisitorFunctionWrapper(this.function);
145 visitElement(Element element) { 145 visitElement(Element element) {
146 function(element); 146 function(element);
147 super.visitElement(element); 147 super.visitElement(element);
148 } 148 }
149 } 149 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/tree_writer.dart ('k') | pkg/analysis_server/test/analysis_server_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698