File tree 7 files changed +1554
-1717
lines changed
7 files changed +1554
-1717
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export declare const enum NodeType {
8
8
COMMENT = 6 ,
9
9
TEXT = 7 ,
10
10
NAMESPACE_NODE = 8 ,
11
- NODE = 9 ,
11
+ NODE = 9
12
12
}
13
13
export declare const enum ParserState {
14
14
ATTRIBUTE = 0 ,
@@ -42,7 +42,7 @@ export declare const enum ParserState {
42
42
XML_PROLOG_ATTRIBUTE_NAME = 28 ,
43
43
XML_PROLOG_ATTRIBUTE_VALUE = 29 ,
44
44
XML_PROLOG_ATTRIBUTE_VALUE_QUOTED = 30 ,
45
- XML_PROLOG_ENDING = 31 ,
45
+ XML_PROLOG_ENDING = 31
46
46
}
47
47
export declare const Char : RegExp ;
48
48
export declare const RestrictedChar : RegExp ;
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ export declare class XMLNode {
13
13
attr ( name : string ) : string | undefined ;
14
14
text ( query ?: string ) : string ;
15
15
toJSON ( ) : SerializedXMLElement ;
16
- private innerText ( nodes ) ;
16
+ private innerText ;
17
17
}
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ export declare class XMLParser {
22
22
private entityBuffer ;
23
23
private readonly predefinedEntities ;
24
24
constructor ( ) ;
25
- private isQuote ( c ) ;
26
- private error ( message ) ;
27
- private newDocumentRoot ( ) ;
28
- private resetElement ( selfClosing ) ;
29
- private closeTag ( ) ;
30
- private newElement ( ) ;
31
- private newProcessingInstruction ( piTarget , piContent ) ;
32
- private newTextNode ( ) ;
33
- private newCommentNode ( comment ) ;
34
- private addAttribute ( ) ;
25
+ private isQuote ;
26
+ private error ;
27
+ private newDocumentRoot ;
28
+ private resetElement ;
29
+ private closeTag ;
30
+ private newElement ;
31
+ private newProcessingInstruction ;
32
+ private newTextNode ;
33
+ private newCommentNode ;
34
+ private addAttribute ;
35
35
parse ( str : string ) : XMLResult ;
36
36
}
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ export declare class XMLTraversal {
4
4
private startNode ;
5
5
constructor ( startNode : XMLNode ) ;
6
6
find ( query : string ) : XMLNode [ ] ;
7
- private compare < T > ( compare , left , right ) ;
8
- private intersect ( a , b ) ;
9
- private nonEmptyIndices ( arr ) ;
10
- private shuntingYard ( contextNodes , node ) ;
11
- private handlePredicate ( predicate , currentNodes ) ;
12
- private getAxisNodes ( currentNodes , axis ) ;
13
- private intersectSelf ( currentNode , axis , result ) ;
14
- private getAllDescendants ( node , result ) ;
7
+ private compare ;
8
+ private intersect ;
9
+ private nonEmptyIndices ;
10
+ private shuntingYard ;
11
+ private handlePredicate ;
12
+ private getAxisNodes ;
13
+ private intersectSelf ;
14
+ private getAllDescendants ;
15
15
}
Original file line number Diff line number Diff line change 1
1
export declare const enum AstNodes {
2
2
PathExpression = 0 ,
3
3
StepExpression = 1 ,
4
- BinaryOperation = 2 ,
4
+ BinaryOperation = 2
5
5
}
6
6
export declare const enum Axis {
7
7
Ancestor = 0 ,
@@ -15,17 +15,17 @@ export declare const enum Axis {
15
15
Parent = 8 ,
16
16
Preceding = 9 ,
17
17
PrecedingSibling = 10 ,
18
- Self = 11 ,
18
+ Self = 11
19
19
}
20
20
export declare const enum NodeTest {
21
21
KindTest = 0 ,
22
- NameTest = 1 ,
22
+ NameTest = 1
23
23
}
24
24
export declare const enum States {
25
25
Begin = 0 ,
26
26
PathExpression = 1 ,
27
27
Predicate = 2 ,
28
- NodeKindArgs = 3 ,
28
+ NodeKindArgs = 3
29
29
}
30
30
export declare const enum TokenTypes {
31
31
Abbrevation = 0 ,
@@ -34,5 +34,5 @@ export declare const enum TokenTypes {
34
34
Operator = 3 ,
35
35
Literal = 4 ,
36
36
Comment = 5 ,
37
- Whitespace = 6 ,
37
+ Whitespace = 6
38
38
}
You can’t perform that action at this time.
0 commit comments