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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2988253002: A couple of tweaks. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/kernel/resynthesize.dart » ('j') | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/kernel/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698