@herb-tools/core 0.4.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ export interface ParserOptions {
2
+ track_whitespace?: boolean
3
+ }
4
+
5
+ export const DEFAULT_PARSER_OPTIONS: ParserOptions = {
6
+ track_whitespace: false,
7
+ }
package/src/visitor.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // NOTE: This file is generated by the templates/template.rb script and should not
2
- // be modified manually. See /Users/marcoroth/Development/herb-release-7/templates/javascript/packages/core/src/visitor.ts.erb
2
+ // be modified manually. See /Users/marcoroth/Development/herb-release-0.6.0/templates/javascript/packages/core/src/visitor.ts.erb
3
3
 
4
4
  import {
5
5
  Node,
@@ -7,7 +7,6 @@ import {
7
7
  LiteralNode,
8
8
  HTMLOpenTagNode,
9
9
  HTMLCloseTagNode,
10
- HTMLSelfCloseTagNode,
11
10
  HTMLElementNode,
12
11
  HTMLAttributeValueNode,
13
12
  HTMLAttributeNameNode,
@@ -15,6 +14,8 @@ import {
15
14
  HTMLTextNode,
16
15
  HTMLCommentNode,
17
16
  HTMLDoctypeNode,
17
+ XMLDeclarationNode,
18
+ CDATANode,
18
19
  WhitespaceNode,
19
20
  ERBContentNode,
20
21
  ERBEndNode,
@@ -66,10 +67,6 @@ export class Visitor {
66
67
  this.visitChildNodes(node)
67
68
  }
68
69
 
69
- visitHTMLSelfCloseTagNode(node: HTMLSelfCloseTagNode): void {
70
- this.visitChildNodes(node)
71
- }
72
-
73
70
  visitHTMLElementNode(node: HTMLElementNode): void {
74
71
  this.visitChildNodes(node)
75
72
  }
@@ -98,6 +95,14 @@ export class Visitor {
98
95
  this.visitChildNodes(node)
99
96
  }
100
97
 
98
+ visitXMLDeclarationNode(node: XMLDeclarationNode): void {
99
+ this.visitChildNodes(node)
100
+ }
101
+
102
+ visitCDATANode(node: CDATANode): void {
103
+ this.visitChildNodes(node)
104
+ }
105
+
101
106
  visitWhitespaceNode(node: WhitespaceNode): void {
102
107
  this.visitChildNodes(node)
103
108
  }