| OLD | NEW |
| 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 analyzer.test.src.context.context_test; | 5 library analyzer.test.src.context.context_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2431 | 2431 |
| 2432 String topLevelVariable; | 2432 String topLevelVariable; |
| 2433 int get topLevelGetter => 0; | 2433 int get topLevelGetter => 0; |
| 2434 void set topLevelSetter(int value) {} | 2434 void set topLevelSetter(int value) {} |
| 2435 String topLevelFunction(int i) => ''; | 2435 String topLevelFunction(int i) => ''; |
| 2436 | 2436 |
| 2437 typedef String FunctionTypeAlias(int i); | 2437 typedef String FunctionTypeAlias(int i); |
| 2438 | 2438 |
| 2439 enum EnumeratedType {Invalid, Valid} | 2439 enum EnumeratedType {Invalid, Valid} |
| 2440 | 2440 |
| 2441 class A { |
| 2442 const A(x); |
| 2443 } |
| 2444 |
| 2445 @A(const [(_) => null]) |
| 2441 class ClassOne { | 2446 class ClassOne { |
| 2442 int instanceField; | 2447 int instanceField; |
| 2443 static int staticField; | 2448 static int staticField; |
| 2444 | 2449 |
| 2445 ClassOne(); | 2450 ClassOne(); |
| 2446 ClassOne.named(); | 2451 ClassOne.named(); |
| 2447 | 2452 |
| 2448 int get instanceGetter => 0; | 2453 int get instanceGetter => 0; |
| 2449 static String get staticGetter => ''; | 2454 static String get staticGetter => ''; |
| 2450 | 2455 |
| (...skipping 2827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5278 * Initialize the visitor. | 5283 * Initialize the visitor. |
| 5279 */ | 5284 */ |
| 5280 _ElementGatherer(); | 5285 _ElementGatherer(); |
| 5281 | 5286 |
| 5282 @override | 5287 @override |
| 5283 void visitElement(Element element) { | 5288 void visitElement(Element element) { |
| 5284 elements[element] = element; | 5289 elements[element] = element; |
| 5285 super.visitElement(element); | 5290 super.visitElement(element); |
| 5286 } | 5291 } |
| 5287 } | 5292 } |
| OLD | NEW |