| 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.src.dart.element.element; | 5 library analyzer.src.dart.element.element; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2419 | 2419 |
| 2420 @override | 2420 @override |
| 2421 DynamicTypeImpl type; | 2421 DynamicTypeImpl type; |
| 2422 | 2422 |
| 2423 /** | 2423 /** |
| 2424 * Initialize a newly created instance of this class. Instances of this class | 2424 * Initialize a newly created instance of this class. Instances of this class |
| 2425 * should <b>not</b> be created except as part of creating the type associated | 2425 * should <b>not</b> be created except as part of creating the type associated |
| 2426 * with this element. The single instance of this class should be accessed | 2426 * with this element. The single instance of this class should be accessed |
| 2427 * through the method [instance]. | 2427 * through the method [instance]. |
| 2428 */ | 2428 */ |
| 2429 DynamicElementImpl() : super(Keyword.DYNAMIC.syntax, -1) { | 2429 DynamicElementImpl() : super(Keyword.DYNAMIC.lexeme, -1) { |
| 2430 setModifier(Modifier.SYNTHETIC, true); | 2430 setModifier(Modifier.SYNTHETIC, true); |
| 2431 } | 2431 } |
| 2432 | 2432 |
| 2433 @override | 2433 @override |
| 2434 ElementKind get kind => ElementKind.DYNAMIC; | 2434 ElementKind get kind => ElementKind.DYNAMIC; |
| 2435 | 2435 |
| 2436 @override | 2436 @override |
| 2437 /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor) => null; | 2437 /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor) => null; |
| 2438 } | 2438 } |
| 2439 | 2439 |
| (...skipping 6659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9099 | 9099 |
| 9100 @override | 9100 @override |
| 9101 void visitElement(Element element) { | 9101 void visitElement(Element element) { |
| 9102 int offset = element.nameOffset; | 9102 int offset = element.nameOffset; |
| 9103 if (offset != -1) { | 9103 if (offset != -1) { |
| 9104 map[offset] = element; | 9104 map[offset] = element; |
| 9105 } | 9105 } |
| 9106 super.visitElement(element); | 9106 super.visitElement(element); |
| 9107 } | 9107 } |
| 9108 } | 9108 } |
| OLD | NEW |