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

Unified Diff: tests/compiler/dart2js/semantic_visitor_test_decl_data.dart

Issue 1417103002: Add ElementKind for factory constructors. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/semantic_visitor_test_decl_data.dart
diff --git a/tests/compiler/dart2js/semantic_visitor_test_decl_data.dart b/tests/compiler/dart2js/semantic_visitor_test_decl_data.dart
index f31b688edd44ace6fa0e11abe0b2269320dea529..1019d8cfdbc3ec22e9c2d6fef73eaf96418d6b85 100644
--- a/tests/compiler/dart2js/semantic_visitor_test_decl_data.dart
+++ b/tests/compiler/dart2js/semantic_visitor_test_decl_data.dart
@@ -536,7 +536,7 @@ const Map<String, List<Test>> DECL_TESTS = const {
''',
const [
const Visit(VisitKind.VISIT_FACTORY_CONSTRUCTOR_DECL,
- element: 'function(C#)',
+ element: 'factory_constructor(C#)',
parameters: '(a,b)',
body: '=>null;'),
const Visit(VisitKind.VISIT_REQUIRED_PARAMETER_DECL,
@@ -556,7 +556,7 @@ const Map<String, List<Test>> DECL_TESTS = const {
''',
const [
const Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL,
- element: 'function(C#)',
+ element: 'factory_constructor(C#)',
parameters: '(a,b)',
target: 'generative_constructor(C#_)',
type: 'C'),
@@ -579,7 +579,7 @@ const Map<String, List<Test>> DECL_TESTS = const {
''',
const [
const Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL,
- element: 'function(C#)',
+ element: 'factory_constructor(C#)',
parameters: '(a,b)',
target: 'generative_constructor(D#)',
type: 'D'),
@@ -602,7 +602,7 @@ const Map<String, List<Test>> DECL_TESTS = const {
''',
const [
const Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL,
- element: 'function(C#)',
+ element: 'factory_constructor(C#)',
parameters: '(a,b)',
target: 'generative_constructor(D#)',
type: 'D<int>'),
@@ -628,9 +628,9 @@ const Map<String, List<Test>> DECL_TESTS = const {
''',
const [
const Visit(VisitKind.VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL,
- element: 'function(C#)',
+ element: 'factory_constructor(C#)',
parameters: '(a,b)',
- target: 'function(D#)',
+ target: 'factory_constructor(D#)',
type: 'D<int>'),
const Visit(VisitKind.VISIT_REQUIRED_PARAMETER_DECL,
element: 'parameter(#a)',

Powered by Google App Engine
This is Rietveld 408576698