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

Side by Side Diff: tests/compiler/dart2js/semantic_visitor_test.dart

Issue 1130773002: Differentiate between unresolved class and constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_structure.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dart2js.semantics_visitor_test; 5 library dart2js.semantics_visitor_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/constants/expressions.dart'; 10 import 'package:compiler/src/constants/expressions.dart';
(...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 targetType: 'Class<Class<int>>', 2261 targetType: 'Class<Class<int>>',
2262 selector: 'CallStructure(arity=2)')), 2262 selector: 'CallStructure(arity=2)')),
2263 const Test( 2263 const Test(
2264 ''' 2264 '''
2265 class Class { 2265 class Class {
2266 Class(a, b); 2266 Class(a, b);
2267 } 2267 }
2268 m() => new Class.unresolved(true, 42); 2268 m() => new Class.unresolved(true, 42);
2269 ''', 2269 ''',
2270 const Visit( 2270 const Visit(
2271 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, 2271 VisitKind.VISIT_UNRESOLVED_CONSTRUCTOR_INVOKE,
2272 arguments: '(true,42)')), 2272 arguments: '(true,42)')),
2273 const Test( 2273 const Test(
2274 ''' 2274 '''
2275 m() => new Unresolved(true, 42); 2275 m() => new Unresolved(true, 42);
2276 ''', 2276 ''',
2277 const Visit( 2277 const Visit(
2278 // TODO(johnniwinther): Update this to 2278 VisitKind.VISIT_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE,
2279 // `VisitKind.ERROR_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE`.
2280 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE,
2281 arguments: '(true,42)')), 2279 arguments: '(true,42)')),
2282 const Test( 2280 const Test(
2283 ''' 2281 '''
2284 abstract class AbstractClass {} 2282 abstract class AbstractClass {}
2285 m() => new AbstractClass(); 2283 m() => new AbstractClass();
2286 ''', 2284 ''',
2287 const Visit( 2285 const Visit(
2288 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, 2286 VisitKind.VISIT_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE,
2289 element: 'generative_constructor(AbstractClass#)', 2287 element: 'generative_constructor(AbstractClass#)',
2290 type: 'AbstractClass', 2288 type: 'AbstractClass',
2291 arguments: '()', 2289 arguments: '()',
2292 selector: 'CallStructure(arity=0)')), 2290 selector: 'CallStructure(arity=0)')),
2293 const Test( 2291 const Test(
2294 ''' 2292 '''
2295 class Class { 2293 class Class {
2296 factory Class(a, b) = Unresolved; 2294 factory Class(a, b) = Unresolved;
2297 } 2295 }
2298 m() => new Class(true, 42); 2296 m() => new Class(true, 42);
2299 ''', 2297 ''',
2300 const Visit( 2298 const Visit(
2301 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 2299 VisitKind.VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
2302 element: 'function(Class#)', 2300 element: 'function(Class#)',
2303 arguments: '(true,42)', 2301 arguments: '(true,42)',
2304 type: 'Class', 2302 type: 'Class',
2305 selector: 'Selector(call, , arity=2)')), 2303 selector: 'CallStructure(arity=2)')),
2306 const Test( 2304 const Test(
2307 ''' 2305 '''
2308 class Class { 2306 class Class {
2309 factory Class(a, b) = Class.named; 2307 factory Class(a, b) = Class.named;
2310 } 2308 }
2311 m() => new Class(true, 42); 2309 m() => new Class(true, 42);
2312 ''', 2310 ''',
2313 const Visit( 2311 const Visit(
2314 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 2312 VisitKind.VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
2315 element: 'function(Class#)', 2313 element: 'function(Class#)',
2316 arguments: '(true,42)', 2314 arguments: '(true,42)',
2317 type: 'Class', 2315 type: 'Class',
2318 selector: 'Selector(call, , arity=2)')), 2316 selector: 'CallStructure(arity=2)')),
2319 const Test( 2317 const Test(
2320 ''' 2318 '''
2321 class Class { 2319 class Class {
2322 factory Class(a, b) = Class.named; 2320 factory Class(a, b) = Class.named;
2323 factory Class.named(a, b) = Class.unresolved; 2321 factory Class.named(a, b) = Class.unresolved;
2324 } 2322 }
2325 m() => new Class(true, 42); 2323 m() => new Class(true, 42);
2326 ''', 2324 ''',
2327 const Visit( 2325 const Visit(
2328 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 2326 VisitKind.VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
2329 element: 'function(Class#)', 2327 element: 'function(Class#)',
2330 arguments: '(true,42)', 2328 arguments: '(true,42)',
2331 type: 'Class', 2329 type: 'Class',
2332 selector: 'Selector(call, , arity=2)')), 2330 selector: 'CallStructure(arity=2)')),
2333 const Test( 2331 const Test(
2334 ''' 2332 '''
2335 abstract class AbstractClass { 2333 abstract class AbstractClass {
2336 AbstractClass(a, b); 2334 AbstractClass(a, b);
2337 } 2335 }
2338 class Class { 2336 class Class {
2339 factory Class(a, b) = AbstractClass; 2337 factory Class(a, b) = AbstractClass;
2340 } 2338 }
2341 m() => new Class(true, 42); 2339 m() => new Class(true, 42);
2342 ''', 2340 ''',
2343 const Visit( 2341 const Visit(
2344 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 2342 VisitKind.VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
2345 element: 'function(Class#)', 2343 element: 'function(Class#)',
2346 arguments: '(true,42)', 2344 arguments: '(true,42)',
2347 type: 'Class', 2345 type: 'Class',
2348 selector: 'Selector(call, , arity=2)')), 2346 selector: 'CallStructure(arity=2)')),
2349 ], 2347 ],
2350 }; 2348 };
2351 2349
2352 const Map<String, List<Test>> DECL_TESTS = const { 2350 const Map<String, List<Test>> DECL_TESTS = const {
2353 'Function declarations': const [ 2351 'Function declarations': const [
2354 const Test( 2352 const Test(
2355 ''' 2353 '''
2356 m(a, b) {} 2354 m(a, b) {}
2357 ''', 2355 ''',
2358 const [ 2356 const [
(...skipping 2913 matching lines...) Expand 10 before | Expand all | Expand 10 after
5272 Node index, 5270 Node index,
5273 IncDecOperator operator, 5271 IncDecOperator operator,
5274 arg) { 5272 arg) {
5275 visits.add(new Visit(VisitKind.VISIT_SUPER_INDEX_PREFIX, 5273 visits.add(new Visit(VisitKind.VISIT_SUPER_INDEX_PREFIX,
5276 getter: indexFunction, setter: indexSetFunction, 5274 getter: indexFunction, setter: indexSetFunction,
5277 index: index, operator: operator)); 5275 index: index, operator: operator));
5278 apply(index, arg); 5276 apply(index, arg);
5279 } 5277 }
5280 5278
5281 @override 5279 @override
5282 errorUnresolvedClassConstructorInvoke( 5280 visitUnresolvedClassConstructorInvoke(
5283 NewExpression node,
5284 Element constructor,
5285 MalformedType type,
5286 NodeList arguments,
5287 Selector selector,
5288 arg) {
5289 // TODO(johnniwinther): Test [type] and [selector].
5290 visits.add(new Visit(
5291 VisitKind.ERROR_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE,
5292 arguments: arguments));
5293 apply(arguments, arg);
5294 }
5295
5296 @override
5297 errorUnresolvedConstructorInvoke(
5298 NewExpression node, 5281 NewExpression node,
5299 Element constructor, 5282 Element constructor,
5300 DartType type, 5283 DartType type,
5301 NodeList arguments, 5284 NodeList arguments,
5302 Selector selector, 5285 Selector selector,
5303 arg) { 5286 arg) {
5304 // TODO(johnniwinther): Test [type] and [selector]. 5287 // TODO(johnniwinther): Test [type] when it is not `dynamic`.
5305 visits.add(new Visit( 5288 visits.add(new Visit(
5306 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, 5289 VisitKind.VISIT_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE,
5307 arguments: arguments)); 5290 arguments: arguments));
5308 apply(arguments, arg); 5291 apply(arguments, arg);
5309 } 5292 }
5293
5294 @override
5295 visitUnresolvedConstructorInvoke(
5296 NewExpression node,
5297 Element constructor,
5298 DartType type,
5299 NodeList arguments,
5300 Selector selector,
5301 arg) {
5302 // TODO(johnniwinther): Test [type] when it is not `dynamic`.
5303 visits.add(new Visit(
5304 VisitKind.VISIT_UNRESOLVED_CONSTRUCTOR_INVOKE,
5305 arguments: arguments));
5306 apply(arguments, arg);
5307 }
5310 5308
5311 @override 5309 @override
5312 visitConstConstructorInvoke( 5310 visitConstConstructorInvoke(
5313 NewExpression node, 5311 NewExpression node,
5314 ConstructedConstantExpression constant, 5312 ConstructedConstantExpression constant,
5315 arg) { 5313 arg) {
5316 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE, 5314 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE,
5317 constant: constant.getText())); 5315 constant: constant.getText()));
5318 } 5316 }
5319 5317
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
5383 visits.add(new Visit( 5381 visits.add(new Visit(
5384 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, 5382 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE,
5385 element: constructor, 5383 element: constructor,
5386 type: type, 5384 type: type,
5387 arguments: arguments, 5385 arguments: arguments,
5388 selector: callStructure)); 5386 selector: callStructure));
5389 apply(arguments, arg); 5387 apply(arguments, arg);
5390 } 5388 }
5391 5389
5392 @override 5390 @override
5393 errorAbstractClassConstructorInvoke( 5391 visitAbstractClassConstructorInvoke(
5394 NewExpression node, 5392 NewExpression node,
5395 ConstructorElement constructor, 5393 ConstructorElement constructor,
5396 InterfaceType type, 5394 InterfaceType type,
5397 NodeList arguments, 5395 NodeList arguments,
5398 CallStructure callStructure, 5396 CallStructure callStructure,
5399 arg) { 5397 arg) {
5400 visits.add(new Visit( 5398 visits.add(new Visit(
5401 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, 5399 VisitKind.VISIT_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE,
5402 element: constructor, 5400 element: constructor,
5403 type: type, 5401 type: type,
5404 arguments: arguments, 5402 arguments: arguments,
5405 selector: callStructure)); 5403 selector: callStructure));
5406 apply(arguments, arg); 5404 apply(arguments, arg);
5407 } 5405 }
5408 5406
5409 @override 5407 @override
5410 errorUnresolvedRedirectingFactoryConstructorInvoke( 5408 visitUnresolvedRedirectingFactoryConstructorInvoke(
5411 NewExpression node, 5409 NewExpression node,
5412 ConstructorElement constructor, 5410 ConstructorElement constructor,
5413 InterfaceType type, 5411 InterfaceType type,
5414 NodeList arguments, 5412 NodeList arguments,
5415 Selector selector, 5413 CallStructure callStructure,
5416 arg) { 5414 arg) {
5417 visits.add(new Visit( 5415 visits.add(new Visit(
5418 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 5416 VisitKind.VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
5419 element: constructor, 5417 element: constructor,
5420 type: type, 5418 type: type,
5421 arguments: arguments, 5419 arguments: arguments,
5422 selector: selector)); 5420 selector: callStructure));
5423 apply(arguments, arg); 5421 apply(arguments, arg);
5424 } 5422 }
5425 } 5423 }
5426 5424
5427 class SemanticDeclarationTestVisitor extends SemanticTestVisitor { 5425 class SemanticDeclarationTestVisitor extends SemanticTestVisitor {
5428 5426
5429 SemanticDeclarationTestVisitor(TreeElements elements) : super(elements); 5427 SemanticDeclarationTestVisitor(TreeElements elements) : super(elements);
5430 5428
5431 @override 5429 @override
5432 errorUnresolvedSuperConstructorInvoke( 5430 errorUnresolvedSuperConstructorInvoke(
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
5895 Node body, 5893 Node body,
5896 arg) { 5894 arg) {
5897 visits.add(new Visit(VisitKind.VISIT_STATIC_SETTER_DECL, 5895 visits.add(new Visit(VisitKind.VISIT_STATIC_SETTER_DECL,
5898 element: setter, parameters: parameters, body: body)); 5896 element: setter, parameters: parameters, body: body));
5899 applyParameters(parameters, arg); 5897 applyParameters(parameters, arg);
5900 apply(body, arg); 5898 apply(body, arg);
5901 return null; 5899 return null;
5902 } 5900 }
5903 5901
5904 @override 5902 @override
5905 errorUnresolvedClassConstructorInvoke( 5903 visitUnresolvedClassConstructorInvoke(
5906 NewExpression node, 5904 NewExpression node,
5907 Element constructor, 5905 Element constructor,
5908 MalformedType type, 5906 MalformedType type,
5909 NodeList arguments, 5907 NodeList arguments,
5910 Selector selector, 5908 Selector selector,
5911 arg) { 5909 arg) {
5912 // TODO(johnniwinther): Test [type] and [selector]. 5910 // TODO(johnniwinther): Test [type] and [selector].
5913 visits.add(new Visit( 5911 visits.add(new Visit(
5914 VisitKind.ERROR_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE, 5912 VisitKind.VISIT_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE,
5915 arguments: arguments)); 5913 arguments: arguments));
5916 apply(arguments, arg); 5914 apply(arguments, arg);
5917 } 5915 }
5918 5916
5919 @override 5917 @override
5920 errorUnresolvedConstructorInvoke( 5918 visitUnresolvedConstructorInvoke(
5921 NewExpression node, 5919 NewExpression node,
5922 Element constructor, 5920 Element constructor,
5923 DartType type, 5921 DartType type,
5924 NodeList arguments, 5922 NodeList arguments,
5925 Selector selector, 5923 Selector selector,
5926 arg) { 5924 arg) {
5927 // TODO(johnniwinther): Test [type] and [selector]. 5925 // TODO(johnniwinther): Test [type] and [selector].
5928 visits.add(new Visit( 5926 visits.add(new Visit(
5929 VisitKind.ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, 5927 VisitKind.VISIT_UNRESOLVED_CONSTRUCTOR_INVOKE,
5930 arguments: arguments)); 5928 arguments: arguments));
5931 apply(arguments, arg); 5929 apply(arguments, arg);
5932 } 5930 }
5933 5931
5934 @override 5932 @override
5935 visitConstConstructorInvoke( 5933 visitConstConstructorInvoke(
5936 NewExpression node, 5934 NewExpression node,
5937 ConstructedConstantExpression constant, 5935 ConstructedConstantExpression constant,
5938 arg) { 5936 arg) {
5939 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE, 5937 visits.add(new Visit(VisitKind.VISIT_CONST_CONSTRUCTOR_INVOKE,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
6006 visits.add(new Visit( 6004 visits.add(new Visit(
6007 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, 6005 VisitKind.VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE,
6008 element: constructor, 6006 element: constructor,
6009 type: type, 6007 type: type,
6010 arguments: arguments, 6008 arguments: arguments,
6011 selector: callStructure)); 6009 selector: callStructure));
6012 apply(arguments, arg); 6010 apply(arguments, arg);
6013 } 6011 }
6014 6012
6015 @override 6013 @override
6016 errorAbstractClassConstructorInvoke( 6014 visitAbstractClassConstructorInvoke(
6017 NewExpression node, 6015 NewExpression node,
6018 ConstructorElement constructor, 6016 ConstructorElement constructor,
6019 InterfaceType type, 6017 InterfaceType type,
6020 NodeList arguments, 6018 NodeList arguments,
6021 CallStructure callStructure, 6019 CallStructure callStructure,
6022 arg) { 6020 arg) {
6023 visits.add(new Visit( 6021 visits.add(new Visit(
6024 VisitKind.ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, 6022 VisitKind.VISIT_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE,
6025 element: constructor, 6023 element: constructor,
6026 type: type, 6024 type: type,
6027 arguments: arguments, 6025 arguments: arguments,
6028 selector: callStructure)); 6026 selector: callStructure));
6029 apply(arguments, arg); 6027 apply(arguments, arg);
6030 } 6028 }
6031 6029
6032 @override 6030 @override
6033 errorUnresolvedRedirectingFactoryConstructorInvoke( 6031 visitUnresolvedRedirectingFactoryConstructorInvoke(
6034 NewExpression node, 6032 NewExpression node,
6035 ConstructorElement constructor, 6033 ConstructorElement constructor,
6036 InterfaceType type, 6034 InterfaceType type,
6037 NodeList arguments, 6035 NodeList arguments,
6038 Selector selector, 6036 CallStructure callStructure,
6039 arg) { 6037 arg) {
6040 visits.add(new Visit( 6038 visits.add(new Visit(
6041 VisitKind.ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 6039 VisitKind.VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
6042 element: constructor, 6040 element: constructor,
6043 type: type, 6041 type: type,
6044 arguments: arguments, 6042 arguments: arguments,
6045 selector: selector)); 6043 selector: callStructure));
6046 apply(arguments, arg); 6044 apply(arguments, arg);
6047 } 6045 }
6048 } 6046 }
6049 6047
6050 enum VisitKind { 6048 enum VisitKind {
6051 VISIT_PARAMETER_GET, 6049 VISIT_PARAMETER_GET,
6052 VISIT_PARAMETER_SET, 6050 VISIT_PARAMETER_SET,
6053 VISIT_PARAMETER_INVOKE, 6051 VISIT_PARAMETER_INVOKE,
6054 VISIT_PARAMETER_COMPOUND, 6052 VISIT_PARAMETER_COMPOUND,
6055 VISIT_PARAMETER_PREFIX, 6053 VISIT_PARAMETER_PREFIX,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
6232 VISIT_CONST_CONSTRUCTOR_INVOKE, 6230 VISIT_CONST_CONSTRUCTOR_INVOKE,
6233 VISIT_GENERATIVE_CONSTRUCTOR_INVOKE, 6231 VISIT_GENERATIVE_CONSTRUCTOR_INVOKE,
6234 VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE, 6232 VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_INVOKE,
6235 VISIT_FACTORY_CONSTRUCTOR_INVOKE, 6233 VISIT_FACTORY_CONSTRUCTOR_INVOKE,
6236 VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 6234 VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
6237 6235
6238 VISIT_SUPER_CONSTRUCTOR_INVOKE, 6236 VISIT_SUPER_CONSTRUCTOR_INVOKE,
6239 VISIT_THIS_CONSTRUCTOR_INVOKE, 6237 VISIT_THIS_CONSTRUCTOR_INVOKE,
6240 VISIT_FIELD_INITIALIZER, 6238 VISIT_FIELD_INITIALIZER,
6241 6239
6242 ERROR_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE, 6240 VISIT_UNRESOLVED_CLASS_CONSTRUCTOR_INVOKE,
6243 ERROR_UNRESOLVED_CONSTRUCTOR_INVOKE, 6241 VISIT_UNRESOLVED_CONSTRUCTOR_INVOKE,
6244 ERROR_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE, 6242 VISIT_ABSTRACT_CLASS_CONSTRUCTOR_INVOKE,
6245 ERROR_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE, 6243 VISIT_UNRESOLVED_REDIRECTING_FACTORY_CONSTRUCTOR_INVOKE,
6246 6244
6247 VISIT_INSTANCE_GETTER_DECL, 6245 VISIT_INSTANCE_GETTER_DECL,
6248 VISIT_INSTANCE_SETTER_DECL, 6246 VISIT_INSTANCE_SETTER_DECL,
6249 VISIT_INSTANCE_METHOD_DECL, 6247 VISIT_INSTANCE_METHOD_DECL,
6250 VISIT_ABSTRACT_GETTER_DECL, 6248 VISIT_ABSTRACT_GETTER_DECL,
6251 VISIT_ABSTRACT_SETTER_DECL, 6249 VISIT_ABSTRACT_SETTER_DECL,
6252 VISIT_ABSTRACT_METHOD_DECL, 6250 VISIT_ABSTRACT_METHOD_DECL,
6253 VISIT_INSTANCE_FIELD_DECL, 6251 VISIT_INSTANCE_FIELD_DECL,
6254 6252
6255 VISIT_GENERATIVE_CONSTRUCTOR_DECL, 6253 VISIT_GENERATIVE_CONSTRUCTOR_DECL,
6256 VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_DECL, 6254 VISIT_REDIRECTING_GENERATIVE_CONSTRUCTOR_DECL,
6257 VISIT_FACTORY_CONSTRUCTOR_DECL, 6255 VISIT_FACTORY_CONSTRUCTOR_DECL,
6258 VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL, 6256 VISIT_REDIRECTING_FACTORY_CONSTRUCTOR_DECL,
6259 6257
6260 VISIT_REQUIRED_PARAMETER_DECL, 6258 VISIT_REQUIRED_PARAMETER_DECL,
6261 VISIT_OPTIONAL_PARAMETER_DECL, 6259 VISIT_OPTIONAL_PARAMETER_DECL,
6262 VISIT_NAMED_PARAMETER_DECL, 6260 VISIT_NAMED_PARAMETER_DECL,
6263 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL, 6261 VISIT_REQUIRED_INITIALIZING_FORMAL_DECL,
6264 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL, 6262 VISIT_OPTIONAL_INITIALIZING_FORMAL_DECL,
6265 VISIT_NAMED_INITIALIZING_FORMAL_DECL, 6263 VISIT_NAMED_INITIALIZING_FORMAL_DECL,
6266 6264
6267 ERROR_UNRESOLVED_POSTFIX, 6265 ERROR_UNRESOLVED_POSTFIX,
6268 6266
6269 // TODO(johnniwinther): Add tests for more error cases. 6267 // TODO(johnniwinther): Add tests for more error cases.
6270 } 6268 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/send_structure.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698