@@ -10,22 +10,22 @@ export enum NodeType {
10
10
Resource = "Resource" ,
11
11
}
12
12
13
- export interface SyntaxNode {
13
+ export declare class SyntaxNode {
14
14
readonly type : NodeType ;
15
15
}
16
16
17
- export interface Identifier extends SyntaxNode {
17
+ export declare class Identifier extends SyntaxNode {
18
18
readonly type : NodeType . Identifer ;
19
19
readonly name : string ;
20
20
}
21
21
22
- export interface StringLiteral extends SyntaxNode {
22
+ export declare class StringLiteral extends SyntaxNode {
23
23
readonly type : NodeType . StringLiteral ;
24
24
readonly value : string ;
25
25
parse ( ) : { value : string } ;
26
26
}
27
27
28
- export interface MessageReference extends SyntaxNode {
28
+ export declare class MessageReference extends SyntaxNode {
29
29
readonly type : NodeType . MessageReference ;
30
30
readonly id : Identifier ;
31
31
readonly attribute : Identifier | null ;
@@ -35,39 +35,39 @@ export type InlineExpression = StringLiteral | MessageReference;
35
35
36
36
export type Expression = InlineExpression ;
37
37
38
- export interface TextElement extends SyntaxNode {
38
+ export declare class TextElement extends SyntaxNode {
39
39
readonly type : NodeType . TextElement ;
40
40
readonly value : string ;
41
41
}
42
42
43
- export interface Placeable extends SyntaxNode {
43
+ export declare class Placeable extends SyntaxNode {
44
44
readonly type : NodeType . Placeable ;
45
45
readonly expression : Expression ;
46
46
}
47
47
48
48
export type PatternElement = TextElement | Placeable ;
49
49
50
- export interface Pattern extends SyntaxNode {
50
+ export declare class Pattern extends SyntaxNode {
51
51
readonly type : NodeType . Pattern ;
52
52
readonly elements : Array < PatternElement > ;
53
53
}
54
54
55
- export interface Message extends SyntaxNode {
55
+ export declare class Message extends SyntaxNode {
56
56
readonly type : NodeType . Message ;
57
57
readonly id : Identifier ;
58
58
readonly value : Pattern | null ;
59
59
readonly attributes : Array < Attribute > ;
60
60
}
61
61
62
- export interface Attribute extends SyntaxNode {
62
+ export declare class Attribute extends SyntaxNode {
63
63
readonly type : NodeType . Attribute ;
64
64
readonly id : Identifier ;
65
65
readonly value : Pattern ;
66
66
}
67
67
68
68
export type Entry = Message ;
69
69
70
- export interface Resource extends SyntaxNode {
70
+ export declare class Resource extends SyntaxNode {
71
71
readonly type : NodeType . Resource ;
72
72
readonly body : Array < Entry > ;
73
73
}
0 commit comments