| OLD | NEW |
| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.ast; | 8 library engine.ast; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1611 cloneNodeList(node.typeParameters), cloneToken(node.rightBracket)); | 1611 cloneNodeList(node.typeParameters), cloneToken(node.rightBracket)); |
| 1612 | 1612 |
| 1613 @override | 1613 @override |
| 1614 VariableDeclaration visitVariableDeclaration(VariableDeclaration node) => | 1614 VariableDeclaration visitVariableDeclaration(VariableDeclaration node) => |
| 1615 new VariableDeclaration(cloneNode(node.name), cloneToken(node.equals), | 1615 new VariableDeclaration(cloneNode(node.name), cloneToken(node.equals), |
| 1616 cloneNode(node.initializer)); | 1616 cloneNode(node.initializer)); |
| 1617 | 1617 |
| 1618 @override | 1618 @override |
| 1619 VariableDeclarationList visitVariableDeclarationList( | 1619 VariableDeclarationList visitVariableDeclarationList( |
| 1620 VariableDeclarationList node) => new VariableDeclarationList( | 1620 VariableDeclarationList node) => new VariableDeclarationList( |
| 1621 cloneNode(node.documentationComment), | 1621 cloneNode(node.documentationComment), cloneNodeList(node.metadata), |
| 1622 cloneNodeList(node.metadata), cloneToken(node.keyword), | 1622 cloneToken(node.keyword), cloneNode(node.type), |
| 1623 cloneNode(node.type), cloneNodeList(node.variables)); | 1623 cloneNodeList(node.variables)); |
| 1624 | 1624 |
| 1625 @override | 1625 @override |
| 1626 VariableDeclarationStatement visitVariableDeclarationStatement( | 1626 VariableDeclarationStatement visitVariableDeclarationStatement( |
| 1627 VariableDeclarationStatement node) => new VariableDeclarationStatement( | 1627 VariableDeclarationStatement node) => new VariableDeclarationStatement( |
| 1628 cloneNode(node.variables), cloneToken(node.semicolon)); | 1628 cloneNode(node.variables), cloneToken(node.semicolon)); |
| 1629 | 1629 |
| 1630 @override | 1630 @override |
| 1631 WhileStatement visitWhileStatement(WhileStatement node) => new WhileStatement( | 1631 WhileStatement visitWhileStatement(WhileStatement node) => new WhileStatement( |
| 1632 cloneToken(node.whileKeyword), cloneToken(node.leftParenthesis), | 1632 cloneToken(node.whileKeyword), cloneToken(node.leftParenthesis), |
| 1633 cloneNode(node.condition), cloneToken(node.rightParenthesis), | 1633 cloneNode(node.condition), cloneToken(node.rightParenthesis), |
| (...skipping 9201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10835 */ | 10835 */ |
| 10836 class InterpolationString extends InterpolationElement { | 10836 class InterpolationString extends InterpolationElement { |
| 10837 /** | 10837 /** |
| 10838 * The characters that will be added to the string. | 10838 * The characters that will be added to the string. |
| 10839 */ | 10839 */ |
| 10840 Token contents; | 10840 Token contents; |
| 10841 | 10841 |
| 10842 /** | 10842 /** |
| 10843 * The value of the literal. | 10843 * The value of the literal. |
| 10844 */ | 10844 */ |
| 10845 String _value; | 10845 String value; |
| 10846 | 10846 |
| 10847 /** | 10847 /** |
| 10848 * Initialize a newly created string of characters that are part of a string | 10848 * Initialize a newly created string of characters that are part of a string |
| 10849 * interpolation. | 10849 * interpolation. |
| 10850 */ | 10850 */ |
| 10851 InterpolationString(this.contents, String value) { | 10851 InterpolationString(this.contents, this.value); |
| 10852 _value = value; | |
| 10853 } | |
| 10854 | 10852 |
| 10855 @override | 10853 @override |
| 10856 Token get beginToken => contents; | 10854 Token get beginToken => contents; |
| 10857 | 10855 |
| 10858 @override | 10856 @override |
| 10859 Iterable get childEntities => new ChildEntities()..add(contents); | 10857 Iterable get childEntities => new ChildEntities()..add(contents); |
| 10860 | 10858 |
| 10861 /** | 10859 /** |
| 10862 * Return the offset of the after-last contents character. | 10860 * Return the offset of the after-last contents character. |
| 10863 */ | 10861 */ |
| 10864 int get contentsEnd { | 10862 int get contentsEnd { |
| 10865 String lexeme = contents.lexeme; | 10863 String lexeme = contents.lexeme; |
| 10866 return offset + new StringLexemeHelper(lexeme, true, true).end; | 10864 return offset + new StringLexemeHelper(lexeme, true, true).end; |
| 10867 } | 10865 } |
| 10868 | 10866 |
| 10869 /** | 10867 /** |
| 10870 * Return the offset of the first contents character. | 10868 * Return the offset of the first contents character. |
| 10871 */ | 10869 */ |
| 10872 int get contentsOffset { | 10870 int get contentsOffset { |
| 10873 int offset = contents.offset; | 10871 int offset = contents.offset; |
| 10874 String lexeme = contents.lexeme; | 10872 String lexeme = contents.lexeme; |
| 10875 return offset + new StringLexemeHelper(lexeme, true, true).start; | 10873 return offset + new StringLexemeHelper(lexeme, true, true).start; |
| 10876 } | 10874 } |
| 10877 | 10875 |
| 10878 @override | 10876 @override |
| 10879 Token get endToken => contents; | 10877 Token get endToken => contents; |
| 10880 | 10878 |
| 10881 /** | |
| 10882 * Return the value of the literal. | |
| 10883 */ | |
| 10884 String get value => _value; | |
| 10885 | |
| 10886 /** | |
| 10887 * Set the value of the literal to the given [string]. | |
| 10888 */ | |
| 10889 void set value(String string) { | |
| 10890 _value = string; | |
| 10891 } | |
| 10892 | |
| 10893 @override | 10879 @override |
| 10894 accept(AstVisitor visitor) => visitor.visitInterpolationString(this); | 10880 accept(AstVisitor visitor) => visitor.visitInterpolationString(this); |
| 10895 | 10881 |
| 10896 @override | 10882 @override |
| 10897 void visitChildren(AstVisitor visitor) {} | 10883 void visitChildren(AstVisitor visitor) {} |
| 10898 } | 10884 } |
| 10899 | 10885 |
| 10900 /** | 10886 /** |
| 10901 * An is expression. | 10887 * An is expression. |
| 10902 * | 10888 * |
| (...skipping 9305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20208 } | 20194 } |
| 20209 | 20195 |
| 20210 @override | 20196 @override |
| 20211 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); | 20197 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); |
| 20212 | 20198 |
| 20213 @override | 20199 @override |
| 20214 void visitChildren(AstVisitor visitor) { | 20200 void visitChildren(AstVisitor visitor) { |
| 20215 _safelyVisitChild(_expression, visitor); | 20201 _safelyVisitChild(_expression, visitor); |
| 20216 } | 20202 } |
| 20217 } | 20203 } |
| OLD | NEW |