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

Side by Side Diff: pkg/analyzer/test/src/task/strong_mode_test.dart

Issue 1323653002: Task to infer static variables (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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) 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 test.src.task.strong_mode_test; 5 library test.src.task.strong_mode_test;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/source.dart'; 9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:analyzer/src/generated/testing/element_factory.dart';
11 import 'package:analyzer/src/task/dart.dart'; 10 import 'package:analyzer/src/task/dart.dart';
12 import 'package:analyzer/src/task/strong_mode.dart'; 11 import 'package:analyzer/src/task/strong_mode.dart';
13 import 'package:analyzer/task/dart.dart'; 12 import 'package:analyzer/task/dart.dart';
14 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
15 14
16 import '../../reflective_tests.dart'; 15 import '../../reflective_tests.dart';
17 import '../../utils.dart'; 16 import '../../utils.dart';
18 import '../context/abstract_context.dart'; 17 import '../context/abstract_context.dart';
19 18
20 main() { 19 main() {
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 } 945 }
947 } 946 }
948 } 947 }
949 '''); 948 ''');
950 CompilationUnit unit = context.resolveCompilationUnit2(source, source); 949 CompilationUnit unit = context.resolveCompilationUnit2(source, source);
951 VariableGatherer gatherer = new VariableGatherer(filter); 950 VariableGatherer gatherer = new VariableGatherer(filter);
952 unit.accept(gatherer); 951 unit.accept(gatherer);
953 return gatherer.results; 952 return gatherer.results;
954 } 953 }
955 } 954 }
OLDNEW
« pkg/analyzer/lib/src/task/strong_mode.dart ('K') | « pkg/analyzer/test/src/task/dart_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698