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 =
116116 | DoctypeCloseNode
117117 | DoctypeAttributeNode
118118 | DoctypeAttributeValueNode
119- | DoctypeAttributeWrapperStart
120- | DoctypeAttributeWrapperEnd ;
119+ | DoctypeAttributeWrapperStartNode
120+ | DoctypeAttributeWrapperEndNode ;
121121```
122122
123123#### AnyToken
Original file line number Diff line number Diff line change 44 ConstructTreeState ,
55 ContextualDoctypeNode ,
66 DoctypeAttributeValueNode ,
7- DoctypeAttributeWrapperEnd ,
8- DoctypeAttributeWrapperStart ,
7+ DoctypeAttributeWrapperEndNode ,
8+ DoctypeAttributeWrapperStartNode ,
99 Token ,
1010} from "../../types" ;
1111import { cloneRange , createNodeFrom , updateNodeEnd } from "../../utils" ;
@@ -57,7 +57,7 @@ function handleAttributeWrapperStart(
5757
5858 attribute . startWrapper = createNodeFrom (
5959 token
60- ) as DoctypeAttributeWrapperStart ;
60+ ) as DoctypeAttributeWrapperStartNode ;
6161
6262 attribute . range = cloneRange ( token . range ) ;
6363 state . caretPosition ++ ;
@@ -71,7 +71,9 @@ function handleAttributeWrapperEnd(
7171) {
7272 const attribute = getLastAttribute ( state ) ;
7373
74- attribute . endWrapper = createNodeFrom ( token ) as DoctypeAttributeWrapperEnd ;
74+ attribute . endWrapper = createNodeFrom (
75+ token
76+ ) as DoctypeAttributeWrapperEndNode ;
7577 updateNodeEnd ( attribute , token ) ;
7678
7779 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>;
107107
108108export interface DoctypeAttributeNode extends BaseNode {
109109 type : NodeTypes . DoctypeAttribute ;
110- startWrapper ?: DoctypeAttributeWrapperStart ;
110+ startWrapper ?: DoctypeAttributeWrapperStartNode ;
111111 value ?: DoctypeAttributeValueNode ;
112- endWrapper ?: DoctypeAttributeWrapperEnd ;
112+ endWrapper ?: DoctypeAttributeWrapperEndNode ;
113113}
114114
115115export type DoctypeAttributeValueNode =
116116 SimpleNode < NodeTypes . DoctypeAttributeValue > ;
117117
118- export type DoctypeAttributeWrapperStart =
118+ export type DoctypeAttributeWrapperStartNode =
119119 SimpleNode < NodeTypes . DoctypeAttributeWrapperStart > ;
120120
121- export type DoctypeAttributeWrapperEnd =
121+ export type DoctypeAttributeWrapperEndNode =
122122 SimpleNode < NodeTypes . DoctypeAttributeWrapperEnd > ;
123123
124124export type AnyNode =
@@ -152,5 +152,5 @@ export type AnyNode =
152152 | DoctypeCloseNode
153153 | DoctypeAttributeNode
154154 | DoctypeAttributeValueNode
155- | DoctypeAttributeWrapperStart
156- | DoctypeAttributeWrapperEnd ;
155+ | DoctypeAttributeWrapperStartNode
156+ | DoctypeAttributeWrapperEndNode ;
You can’t perform that action at this time.
0 commit comments