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

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

Issue 2357803002: Add SyntacticEntity, an interface shared by AstNode and Token. (Closed)
Patch Set: Remove redundant comment Created 4 years, 3 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
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.generated.element_resolver; 5 library analyzer.src.generated.element_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 2594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2605 */ 2605 */
2606 SyntheticIdentifier(this.name, this.targetIdentifier); 2606 SyntheticIdentifier(this.name, this.targetIdentifier);
2607 2607
2608 @override 2608 @override
2609 Token get beginToken => null; 2609 Token get beginToken => null;
2610 2610
2611 @override 2611 @override
2612 Element get bestElement => null; 2612 Element get bestElement => null;
2613 2613
2614 @override 2614 @override
2615 Iterable get childEntities { 2615 Iterable<SyntacticEntity> get childEntities {
2616 // Should never be called, since a SyntheticIdentifier never appears in the 2616 // Should never be called, since a SyntheticIdentifier never appears in the
2617 // AST--it is just used for lookup. 2617 // AST--it is just used for lookup.
2618 assert(false); 2618 assert(false);
2619 return new ChildEntities(); 2619 return new ChildEntities();
2620 } 2620 }
2621 2621
2622 @override 2622 @override
2623 Token get endToken => null; 2623 Token get endToken => null;
2624 2624
2625 @override 2625 @override
(...skipping 10 matching lines...) Expand all
2636 2636
2637 @override 2637 @override
2638 Element get staticElement => null; 2638 Element get staticElement => null;
2639 2639
2640 @override 2640 @override
2641 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => null; 2641 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => null;
2642 2642
2643 @override 2643 @override
2644 void visitChildren(AstVisitor visitor) {} 2644 void visitChildren(AstVisitor visitor) {}
2645 } 2645 }
OLDNEW
« pkg/analyzer/lib/dart/ast/token.dart ('K') | « pkg/analyzer/lib/src/dart/ast/ast.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698