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

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

Issue 1820743002: Issue 26051. Fix for MethodDeclartion.beginToken for external. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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.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/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 7058 matching lines...) Expand 10 before | Expand all | Expand 10 after
7069 */ 7069 */
7070 @override 7070 @override
7071 ExecutableElement get element => 7071 ExecutableElement get element =>
7072 _name != null ? (_name.staticElement as ExecutableElement) : null; 7072 _name != null ? (_name.staticElement as ExecutableElement) : null;
7073 7073
7074 @override 7074 @override
7075 Token get endToken => _body.endToken; 7075 Token get endToken => _body.endToken;
7076 7076
7077 @override 7077 @override
7078 Token get firstTokenAfterCommentAndMetadata { 7078 Token get firstTokenAfterCommentAndMetadata {
7079 if (modifierKeyword != null) { 7079 if (externalKeyword != null) {
7080 return externalKeyword;
7081 } else if (modifierKeyword != null) {
7080 return modifierKeyword; 7082 return modifierKeyword;
7081 } else if (_returnType != null) { 7083 } else if (_returnType != null) {
7082 return _returnType.beginToken; 7084 return _returnType.beginToken;
7083 } else if (propertyKeyword != null) { 7085 } else if (propertyKeyword != null) {
7084 return propertyKeyword; 7086 return propertyKeyword;
7085 } else if (operatorKeyword != null) { 7087 } else if (operatorKeyword != null) {
7086 return operatorKeyword; 7088 return operatorKeyword;
7087 } 7089 }
7088 return _name.beginToken; 7090 return _name.beginToken;
7089 } 7091 }
(...skipping 3984 matching lines...) Expand 10 before | Expand all | Expand 10 after
11074 11076
11075 @override 11077 @override
11076 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => 11078 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) =>
11077 visitor.visitYieldStatement(this); 11079 visitor.visitYieldStatement(this);
11078 11080
11079 @override 11081 @override
11080 void visitChildren(AstVisitor visitor) { 11082 void visitChildren(AstVisitor visitor) {
11081 _expression?.accept(visitor); 11083 _expression?.accept(visitor);
11082 } 11084 }
11083 } 11085 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698