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

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

Issue 2778253002: fix return type of computeNode. (Closed)
Patch Set: Created 3 years, 8 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 | 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) 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 5228 matching lines...) Expand 10 before | Expand all | Expand 10 after
5239 } 5239 }
5240 buffer.write(">"); 5240 buffer.write(">");
5241 } 5241 }
5242 buffer.write(" = "); 5242 buffer.write(" = ");
5243 if (function != null) { 5243 if (function != null) {
5244 (function as ElementImpl).appendTo(buffer); 5244 (function as ElementImpl).appendTo(buffer);
5245 } 5245 }
5246 } 5246 }
5247 5247
5248 @override 5248 @override
5249 FunctionTypeAlias computeNode() => 5249 GenericTypeAlias computeNode() =>
5250 getNodeMatching((node) => node is GenericTypeAlias); 5250 getNodeMatching((node) => node is GenericTypeAlias);
5251 5251
5252 @override 5252 @override
5253 ElementImpl getChild(String identifier) { 5253 ElementImpl getChild(String identifier) {
5254 for (TypeParameterElement typeParameter in typeParameters) { 5254 for (TypeParameterElement typeParameter in typeParameters) {
5255 TypeParameterElementImpl typeParameterImpl = typeParameter; 5255 TypeParameterElementImpl typeParameterImpl = typeParameter;
5256 if (typeParameterImpl.identifier == identifier) { 5256 if (typeParameterImpl.identifier == identifier) {
5257 return typeParameterImpl; 5257 return typeParameterImpl;
5258 } 5258 }
5259 } 5259 }
(...skipping 3859 matching lines...) Expand 10 before | Expand all | Expand 10 after
9119 9119
9120 @override 9120 @override
9121 void visitElement(Element element) { 9121 void visitElement(Element element) {
9122 int offset = element.nameOffset; 9122 int offset = element.nameOffset;
9123 if (offset != -1) { 9123 if (offset != -1) {
9124 map[offset] = element; 9124 map[offset] = element;
9125 } 9125 }
9126 super.visitElement(element); 9126 super.visitElement(element);
9127 } 9127 }
9128 } 9128 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698