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

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

Issue 2786853003: Fix support for uri in part-of directive (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.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/syntactic_entity.dart'; 10 import 'package:analyzer/dart/ast/syntactic_entity.dart';
(...skipping 8440 matching lines...) Expand 10 before | Expand all | Expand 10 after
8451 this.semicolon) 8451 this.semicolon)
8452 : super(comment, metadata) { 8452 : super(comment, metadata) {
8453 _uri = _becomeParentOf(uri); 8453 _uri = _becomeParentOf(uri);
8454 _libraryName = _becomeParentOf(libraryName); 8454 _libraryName = _becomeParentOf(libraryName);
8455 } 8455 }
8456 8456
8457 @override 8457 @override
8458 Iterable<SyntacticEntity> get childEntities => super._childEntities 8458 Iterable<SyntacticEntity> get childEntities => super._childEntities
8459 ..add(partKeyword) 8459 ..add(partKeyword)
8460 ..add(ofKeyword) 8460 ..add(ofKeyword)
8461 ..add(_uri)
8461 ..add(_libraryName) 8462 ..add(_libraryName)
8462 ..add(semicolon); 8463 ..add(semicolon);
8463 8464
8464 @override 8465 @override
8465 Token get endToken => semicolon; 8466 Token get endToken => semicolon;
8466 8467
8467 @override 8468 @override
8468 Token get firstTokenAfterCommentAndMetadata => partKeyword; 8469 Token get firstTokenAfterCommentAndMetadata => partKeyword;
8469 8470
8470 @override 8471 @override
(...skipping 3013 matching lines...) Expand 10 before | Expand all | Expand 10 after
11484 11485
11485 @override 11486 @override
11486 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => 11487 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) =>
11487 visitor.visitYieldStatement(this); 11488 visitor.visitYieldStatement(this);
11488 11489
11489 @override 11490 @override
11490 void visitChildren(AstVisitor visitor) { 11491 void visitChildren(AstVisitor visitor) {
11491 _expression?.accept(visitor); 11492 _expression?.accept(visitor);
11492 } 11493 }
11493 } 11494 }
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