| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.test.src.summary.summarize_ast_test; | 5 library analyzer.test.src.summary.summarize_ast_test; |
| 6 | 6 |
| 7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
| 8 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
| 9 import 'package:analyzer/src/generated/error.dart'; | 9 import 'package:analyzer/src/generated/error.dart'; |
| 10 import 'package:analyzer/src/generated/parser.dart'; | 10 import 'package:analyzer/src/generated/parser.dart'; |
| 11 import 'package:analyzer/src/generated/scanner.dart'; | 11 import 'package:analyzer/src/generated/scanner.dart'; |
| 12 import 'package:analyzer/src/summary/format.dart'; | 12 import 'package:analyzer/src/summary/idl.dart'; |
| 13 import 'package:analyzer/src/summary/prelink.dart'; | 13 import 'package:analyzer/src/summary/prelink.dart'; |
| 14 import 'package:analyzer/src/summary/summarize_ast.dart'; | 14 import 'package:analyzer/src/summary/summarize_ast.dart'; |
| 15 import 'package:unittest/unittest.dart'; | 15 import 'package:unittest/unittest.dart'; |
| 16 | 16 |
| 17 import '../../reflective_tests.dart'; | 17 import '../../reflective_tests.dart'; |
| 18 import 'summary_common.dart'; | 18 import 'summary_common.dart'; |
| 19 | 19 |
| 20 main() { | 20 main() { |
| 21 groupSep = ' | '; | 21 groupSep = ' | '; |
| 22 runReflectiveTests(UnlinkedSummarizeAstTest); | 22 runReflectiveTests(UnlinkedSummarizeAstTest); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 CompilationUnit _parseText(String text) { | 108 CompilationUnit _parseText(String text) { |
| 109 CharSequenceReader reader = new CharSequenceReader(text); | 109 CharSequenceReader reader = new CharSequenceReader(text); |
| 110 Scanner scanner = | 110 Scanner scanner = |
| 111 new Scanner(null, reader, AnalysisErrorListener.NULL_LISTENER); | 111 new Scanner(null, reader, AnalysisErrorListener.NULL_LISTENER); |
| 112 Token token = scanner.tokenize(); | 112 Token token = scanner.tokenize(); |
| 113 Parser parser = new Parser(null, AnalysisErrorListener.NULL_LISTENER); | 113 Parser parser = new Parser(null, AnalysisErrorListener.NULL_LISTENER); |
| 114 parser.parseGenericMethods = true; | 114 parser.parseGenericMethods = true; |
| 115 return parser.parseCompilationUnit(token); | 115 return parser.parseCompilationUnit(token); |
| 116 } | 116 } |
| 117 } | 117 } |
| OLD | NEW |