File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed
tree-constructor/handlers Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,8 @@ type AnyNode =
116
116
| DoctypeCloseNode
117
117
| DoctypeAttributeNode
118
118
| DoctypeAttributeValueNode
119
- | DoctypeAttributeWrapperStart
120
- | DoctypeAttributeWrapperEnd ;
119
+ | DoctypeAttributeWrapperStartNode
120
+ | DoctypeAttributeWrapperEndNode ;
121
121
```
122
122
123
123
#### AnyToken
Original file line number Diff line number Diff line change 4
4
ConstructTreeState ,
5
5
ContextualDoctypeNode ,
6
6
DoctypeAttributeValueNode ,
7
- DoctypeAttributeWrapperEnd ,
8
- DoctypeAttributeWrapperStart ,
7
+ DoctypeAttributeWrapperEndNode ,
8
+ DoctypeAttributeWrapperStartNode ,
9
9
Token ,
10
10
} from "../../types" ;
11
11
import { cloneRange , createNodeFrom , updateNodeEnd } from "../../utils" ;
@@ -57,7 +57,7 @@ function handleAttributeWrapperStart(
57
57
58
58
attribute . startWrapper = createNodeFrom (
59
59
token
60
- ) as DoctypeAttributeWrapperStart ;
60
+ ) as DoctypeAttributeWrapperStartNode ;
61
61
62
62
attribute . range = cloneRange ( token . range ) ;
63
63
state . caretPosition ++ ;
@@ -71,7 +71,9 @@ function handleAttributeWrapperEnd(
71
71
) {
72
72
const attribute = getLastAttribute ( state ) ;
73
73
74
- attribute . endWrapper = createNodeFrom ( token ) as DoctypeAttributeWrapperEnd ;
74
+ attribute . endWrapper = createNodeFrom (
75
+ token
76
+ ) as DoctypeAttributeWrapperEndNode ;
75
77
updateNodeEnd ( attribute , token ) ;
76
78
77
79
state . currentContext = state . currentContext . parentRef ;
Original file line number Diff line number Diff line change @@ -107,18 +107,18 @@ export type DoctypeCloseNode = SimpleNode<NodeTypes.DoctypeClose>;
107
107
108
108
export interface DoctypeAttributeNode extends BaseNode {
109
109
type : NodeTypes . DoctypeAttribute ;
110
- startWrapper ?: DoctypeAttributeWrapperStart ;
110
+ startWrapper ?: DoctypeAttributeWrapperStartNode ;
111
111
value ?: DoctypeAttributeValueNode ;
112
- endWrapper ?: DoctypeAttributeWrapperEnd ;
112
+ endWrapper ?: DoctypeAttributeWrapperEndNode ;
113
113
}
114
114
115
115
export type DoctypeAttributeValueNode =
116
116
SimpleNode < NodeTypes . DoctypeAttributeValue > ;
117
117
118
- export type DoctypeAttributeWrapperStart =
118
+ export type DoctypeAttributeWrapperStartNode =
119
119
SimpleNode < NodeTypes . DoctypeAttributeWrapperStart > ;
120
120
121
- export type DoctypeAttributeWrapperEnd =
121
+ export type DoctypeAttributeWrapperEndNode =
122
122
SimpleNode < NodeTypes . DoctypeAttributeWrapperEnd > ;
123
123
124
124
export type AnyNode =
@@ -152,5 +152,5 @@ export type AnyNode =
152
152
| DoctypeCloseNode
153
153
| DoctypeAttributeNode
154
154
| DoctypeAttributeValueNode
155
- | DoctypeAttributeWrapperStart
156
- | DoctypeAttributeWrapperEnd ;
155
+ | DoctypeAttributeWrapperStartNode
156
+ | DoctypeAttributeWrapperEndNode ;
You can’t perform that action at this time.
0 commit comments