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.html; | 8 library engine.html; |
9 | 9 |
10 import 'dart:collection'; | 10 import 'dart:collection'; |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 new sc.SubSequenceReader(contents, contentOffset), errorListener); | 501 new sc.SubSequenceReader(contents, contentOffset), errorListener); |
502 scanner.setSourceStart(location.lineNumber, location.columnNumber); | 502 scanner.setSourceStart(location.lineNumber, location.columnNumber); |
503 return scanner.tokenize(); | 503 return scanner.tokenize(); |
504 } | 504 } |
505 } | 505 } |
506 | 506 |
507 /** | 507 /** |
508 * Instances of the class `HtmlScriptTagNode` represent a script tag within an H
TML file that | 508 * Instances of the class `HtmlScriptTagNode` represent a script tag within an H
TML file that |
509 * references a Dart script. | 509 * references a Dart script. |
510 */ | 510 */ |
| 511 @deprecated |
511 class HtmlScriptTagNode extends XmlTagNode { | 512 class HtmlScriptTagNode extends XmlTagNode { |
512 /** | 513 /** |
513 * The AST structure representing the Dart code within this tag. | 514 * The AST structure representing the Dart code within this tag. |
514 */ | 515 */ |
515 CompilationUnit _script; | 516 CompilationUnit _script; |
516 | 517 |
517 /** | 518 /** |
518 * The element representing this script. | 519 * The element representing this script. |
519 */ | 520 */ |
520 HtmlScriptElement scriptElement; | 521 HtmlScriptElement scriptElement; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 _script = unit; | 557 _script = unit; |
557 } | 558 } |
558 | 559 |
559 @override | 560 @override |
560 accept(XmlVisitor visitor) => visitor.visitHtmlScriptTagNode(this); | 561 accept(XmlVisitor visitor) => visitor.visitHtmlScriptTagNode(this); |
561 } | 562 } |
562 | 563 |
563 /** | 564 /** |
564 * Instances of the class `HtmlUnit` represent the contents of an HTML file. | 565 * Instances of the class `HtmlUnit` represent the contents of an HTML file. |
565 */ | 566 */ |
| 567 @deprecated |
566 class HtmlUnit extends XmlNode { | 568 class HtmlUnit extends XmlNode { |
567 /** | 569 /** |
568 * The first token in the token stream that was parsed to form this HTML unit. | 570 * The first token in the token stream that was parsed to form this HTML unit. |
569 */ | 571 */ |
570 final Token beginToken; | 572 final Token beginToken; |
571 | 573 |
572 /** | 574 /** |
573 * The last token in the token stream that was parsed to form this compilation
unit. This token | 575 * The last token in the token stream that was parsed to form this compilation
unit. This token |
574 * should always have a type of [TokenType.EOF]. | 576 * should always have a type of [TokenType.EOF]. |
575 */ | 577 */ |
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1880 */ | 1882 */ |
1881 abstract class XmlVisitor<R> { | 1883 abstract class XmlVisitor<R> { |
1882 R visitHtmlScriptTagNode(HtmlScriptTagNode node); | 1884 R visitHtmlScriptTagNode(HtmlScriptTagNode node); |
1883 | 1885 |
1884 R visitHtmlUnit(HtmlUnit htmlUnit); | 1886 R visitHtmlUnit(HtmlUnit htmlUnit); |
1885 | 1887 |
1886 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode); | 1888 R visitXmlAttributeNode(XmlAttributeNode xmlAttributeNode); |
1887 | 1889 |
1888 R visitXmlTagNode(XmlTagNode xmlTagNode); | 1890 R visitXmlTagNode(XmlTagNode xmlTagNode); |
1889 } | 1891 } |
OLD | NEW |