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

Side by Side Diff: pkg/analyzer/lib/src/generated/element_resolver.dart

Issue 820773002: Introduce CompletionTarget to take the place of the Node being completed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | Annotate | Revision Log
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 engine.resolver.element_resolver; 5 library engine.resolver.element_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'ast.dart'; 9 import 'ast.dart';
10 import 'element.dart'; 10 import 'element.dart';
(...skipping 3082 matching lines...) Expand 10 before | Expand all | Expand 10 after
3093 */ 3093 */
3094 SyntheticIdentifier(this.name, this.targetIdentifier); 3094 SyntheticIdentifier(this.name, this.targetIdentifier);
3095 3095
3096 @override 3096 @override
3097 sc.Token get beginToken => null; 3097 sc.Token get beginToken => null;
3098 3098
3099 @override 3099 @override
3100 Element get bestElement => null; 3100 Element get bestElement => null;
3101 3101
3102 @override 3102 @override
3103 Iterable get childEntities {
3104 // Should never be called, since a SyntheticIdentifier never appears in the
3105 // AST--it is just used for lookup.
3106 assert(false);
3107 return new ChildEntities();
3108 }
3109
3110 @override
3103 sc.Token get endToken => null; 3111 sc.Token get endToken => null;
3104 3112
3105 @override 3113 @override
3106 int get length => targetIdentifier.length; 3114 int get length => targetIdentifier.length;
3107 3115
3108 @override 3116 @override
3109 int get offset => targetIdentifier.offset; 3117 int get offset => targetIdentifier.offset;
3110 3118
3111 @override 3119 @override
3112 int get precedence => 16; 3120 int get precedence => 16;
3113 3121
3114 @override 3122 @override
3115 Element get propagatedElement => null; 3123 Element get propagatedElement => null;
3116 3124
3117 @override 3125 @override
3118 Element get staticElement => null; 3126 Element get staticElement => null;
3119 3127
3120 @override 3128 @override
3121 accept(AstVisitor visitor) => null; 3129 accept(AstVisitor visitor) => null;
3122 3130
3123 @override 3131 @override
3124 void visitChildren(AstVisitor visitor) { 3132 void visitChildren(AstVisitor visitor) {
3125 } 3133 }
3126 } 3134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698