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

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

Issue 2347213002: Rename libraryUri (Closed)
Patch Set: 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
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | 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/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 2591 matching lines...) Expand 10 before | Expand all | Expand 10 after
2602 DottedName _name; 2602 DottedName _name;
2603 2603
2604 @override 2604 @override
2605 Token equalToken; 2605 Token equalToken;
2606 2606
2607 StringLiteral _value; 2607 StringLiteral _value;
2608 2608
2609 @override 2609 @override
2610 Token rightParenthesis; 2610 Token rightParenthesis;
2611 2611
2612 StringLiteral _libraryUri; 2612 StringLiteral _uri;
2613 2613
2614 @override 2614 @override
2615 Source uriSource; 2615 Source uriSource;
2616 2616
2617 ConfigurationImpl( 2617 ConfigurationImpl(
2618 this.ifKeyword, 2618 this.ifKeyword,
2619 this.leftParenthesis, 2619 this.leftParenthesis,
2620 DottedNameImpl name, 2620 DottedNameImpl name,
2621 this.equalToken, 2621 this.equalToken,
2622 StringLiteralImpl value, 2622 StringLiteralImpl value,
2623 this.rightParenthesis, 2623 this.rightParenthesis,
2624 StringLiteralImpl libraryUri) { 2624 StringLiteralImpl libraryUri) {
2625 _name = _becomeParentOf(name); 2625 _name = _becomeParentOf(name);
2626 _value = _becomeParentOf(value); 2626 _value = _becomeParentOf(value);
2627 _libraryUri = _becomeParentOf(libraryUri); 2627 _uri = _becomeParentOf(libraryUri);
2628 } 2628 }
2629 2629
2630 @override 2630 @override
2631 Token get beginToken => ifKeyword; 2631 Token get beginToken => ifKeyword;
2632 2632
2633 @override 2633 @override
2634 Iterable get childEntities => new ChildEntities() 2634 Iterable get childEntities => new ChildEntities()
2635 ..add(ifKeyword) 2635 ..add(ifKeyword)
2636 ..add(leftParenthesis) 2636 ..add(leftParenthesis)
2637 ..add(_name) 2637 ..add(_name)
2638 ..add(equalToken) 2638 ..add(equalToken)
2639 ..add(_value) 2639 ..add(_value)
2640 ..add(rightParenthesis) 2640 ..add(rightParenthesis)
2641 ..add(_libraryUri); 2641 ..add(_uri);
2642 2642
2643 @override 2643 @override
2644 Token get endToken => _libraryUri.endToken; 2644 Token get endToken => _uri.endToken;
2645 2645
2646 @deprecated
2646 @override 2647 @override
2647 StringLiteral get libraryUri => _libraryUri; 2648 StringLiteral get libraryUri => _uri;
2648 2649
2650 @deprecated
2649 @override 2651 @override
2650 void set libraryUri(StringLiteral libraryUri) { 2652 void set libraryUri(StringLiteral libraryUri) {
2651 _libraryUri = _becomeParentOf(libraryUri as AstNodeImpl); 2653 _uri = _becomeParentOf(libraryUri as AstNodeImpl);
2652 } 2654 }
2653 2655
2654 @override 2656 @override
2655 DottedName get name => _name; 2657 DottedName get name => _name;
2656 2658
2657 @override 2659 @override
2658 void set name(DottedName name) { 2660 void set name(DottedName name) {
2659 _name = _becomeParentOf(name as AstNodeImpl); 2661 _name = _becomeParentOf(name as AstNodeImpl);
2660 } 2662 }
2661 2663
2662 @override 2664 @override
2665 StringLiteral get uri => _uri;
2666
2667 @override
2668 void set uri(StringLiteral uri) {
2669 _uri = _becomeParentOf(uri as AstNodeImpl);
2670 }
2671
2672 @override
2663 StringLiteral get value => _value; 2673 StringLiteral get value => _value;
2664 2674
2665 @override 2675 @override
2666 void set value(StringLiteral value) { 2676 void set value(StringLiteral value) {
2667 _value = _becomeParentOf(value as AstNodeImpl); 2677 _value = _becomeParentOf(value as AstNodeImpl);
2668 } 2678 }
2669 2679
2670 @override 2680 @override
2671 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => 2681 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) =>
2672 visitor.visitConfiguration(this); 2682 visitor.visitConfiguration(this);
2673 2683
2674 @override 2684 @override
2675 void visitChildren(AstVisitor visitor) { 2685 void visitChildren(AstVisitor visitor) {
2676 _name?.accept(visitor); 2686 _name?.accept(visitor);
2677 _value?.accept(visitor); 2687 _value?.accept(visitor);
2678 _libraryUri?.accept(visitor); 2688 _uri?.accept(visitor);
2679 } 2689 }
2680 } 2690 }
2681 2691
2682 /** 2692 /**
2683 * A constructor declaration. 2693 * A constructor declaration.
2684 * 2694 *
2685 * constructorDeclaration ::= 2695 * constructorDeclaration ::=
2686 * constructorSignature [FunctionBody]? 2696 * constructorSignature [FunctionBody]?
2687 * | constructorName formalParameterList ':' 'this' ('.' [SimpleIdentifier] )? arguments 2697 * | constructorName formalParameterList ':' 'this' ('.' [SimpleIdentifier] )? arguments
2688 * 2698 *
(...skipping 8394 matching lines...) Expand 10 before | Expand all | Expand 10 after
11083 11093
11084 @override 11094 @override
11085 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => 11095 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) =>
11086 visitor.visitYieldStatement(this); 11096 visitor.visitYieldStatement(this);
11087 11097
11088 @override 11098 @override
11089 void visitChildren(AstVisitor visitor) { 11099 void visitChildren(AstVisitor visitor) {
11090 _expression?.accept(visitor); 11100 _expression?.accept(visitor);
11091 } 11101 }
11092 } 11102 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/dart/ast/ast.dart ('k') | pkg/analyzer/lib/src/dart/ast/utilities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698