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

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

Issue 1660873003: Clone and link all tokens in AstCloner. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/dart/ast/utilities.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.ast.ast; 5 library analyzer.src.dart.ast.ast;
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/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 ..add(_superclass) 1950 ..add(_superclass)
1951 ..add(_withClause) 1951 ..add(_withClause)
1952 ..add(_implementsClause) 1952 ..add(_implementsClause)
1953 ..add(semicolon); 1953 ..add(semicolon);
1954 1954
1955 @override 1955 @override
1956 ClassElement get element => 1956 ClassElement get element =>
1957 _name != null ? (_name.staticElement as ClassElement) : null; 1957 _name != null ? (_name.staticElement as ClassElement) : null;
1958 1958
1959 @override 1959 @override
1960 Token get firstTokenAfterCommentAndMetadata {
1961 if (abstractKeyword != null) {
1962 return abstractKeyword;
1963 }
1964 return typedefKeyword;
1965 }
1966
1967 @override
1960 ImplementsClause get implementsClause => _implementsClause; 1968 ImplementsClause get implementsClause => _implementsClause;
1961 1969
1962 @override 1970 @override
1963 void set implementsClause(ImplementsClause implementsClause) { 1971 void set implementsClause(ImplementsClause implementsClause) {
1964 _implementsClause = _becomeParentOf(implementsClause); 1972 _implementsClause = _becomeParentOf(implementsClause);
1965 } 1973 }
1966 1974
1967 @override 1975 @override
1968 bool get isAbstract => abstractKeyword != null; 1976 bool get isAbstract => abstractKeyword != null;
1969 1977
(...skipping 8826 matching lines...) Expand 10 before | Expand all | Expand 10 after
10796 } 10804 }
10797 10805
10798 @override 10806 @override
10799 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); 10807 accept(AstVisitor visitor) => visitor.visitYieldStatement(this);
10800 10808
10801 @override 10809 @override
10802 void visitChildren(AstVisitor visitor) { 10810 void visitChildren(AstVisitor visitor) {
10803 _safelyVisitChild(_expression, visitor); 10811 _safelyVisitChild(_expression, visitor);
10804 } 10812 }
10805 } 10813 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698