| 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 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 EnumElementImpl typeImpl = type; | 1906 EnumElementImpl typeImpl = type; |
| 1907 if (typeImpl.identifier == identifier) { | 1907 if (typeImpl.identifier == identifier) { |
| 1908 return typeImpl; | 1908 return typeImpl; |
| 1909 } | 1909 } |
| 1910 } | 1910 } |
| 1911 return null; | 1911 return null; |
| 1912 } | 1912 } |
| 1913 | 1913 |
| 1914 @override | 1914 @override |
| 1915 ClassElement getEnum(String enumName) { | 1915 ClassElement getEnum(String enumName) { |
| 1916 for (ClassElement enumDeclaration in _enums) { | 1916 for (ClassElement enumDeclaration in enums) { |
| 1917 if (enumDeclaration.name == enumName) { | 1917 if (enumDeclaration.name == enumName) { |
| 1918 return enumDeclaration; | 1918 return enumDeclaration; |
| 1919 } | 1919 } |
| 1920 } | 1920 } |
| 1921 return null; | 1921 return null; |
| 1922 } | 1922 } |
| 1923 | 1923 |
| 1924 @override | 1924 @override |
| 1925 ClassElement getType(String className) { | 1925 ClassElement getType(String className) { |
| 1926 for (ClassElement type in types) { | 1926 for (ClassElement type in types) { |
| (...skipping 7993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9920 | 9920 |
| 9921 @override | 9921 @override |
| 9922 DartObject computeConstantValue() => null; | 9922 DartObject computeConstantValue() => null; |
| 9923 | 9923 |
| 9924 @override | 9924 @override |
| 9925 void visitChildren(ElementVisitor visitor) { | 9925 void visitChildren(ElementVisitor visitor) { |
| 9926 super.visitChildren(visitor); | 9926 super.visitChildren(visitor); |
| 9927 _initializer?.accept(visitor); | 9927 _initializer?.accept(visitor); |
| 9928 } | 9928 } |
| 9929 } | 9929 } |
| OLD | NEW |