@abapify/abap-ast 0.3.6 → 0.4.1
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.
- package/dist/index.d.mts +634 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1154 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
//#region src/nodes/errors.d.ts
|
|
2
|
+
declare class AbapAstError extends Error {
|
|
3
|
+
constructor(message: string);
|
|
4
|
+
}
|
|
5
|
+
declare function requireField<T>(value: T | undefined | null, field: string, nodeKind: string): T;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/nodes/base.d.ts
|
|
8
|
+
/** All node kinds in the AST. */
|
|
9
|
+
type NodeKind = 'BuiltinType' | 'TableType' | 'StructureType' | 'NamedTypeRef' | 'EnumType' | 'TypeDef' | 'DataDecl' | 'ConstantDecl' | 'FieldSymbolDecl' | 'Assign' | 'Call' | 'Raise' | 'If' | 'Loop' | 'Return' | 'Try' | 'Append' | 'Insert' | 'Read' | 'Clear' | 'Exit' | 'Continue' | 'Raw' | 'Literal' | 'IdentifierExpr' | 'ConstructorExpr' | 'MethodCallExpr' | 'BinOp' | 'StringTemplate' | 'Cast' | 'MethodParam' | 'MethodDef' | 'MethodImpl' | 'EventDef' | 'AttributeDef' | 'Section' | 'ClassDef' | 'LocalClassDef' | 'InterfaceDef' | 'Comment';
|
|
10
|
+
/**
|
|
11
|
+
* A single ABAPDoc comment line. Stored without the leading `"!` prefix.
|
|
12
|
+
* The prefix is added by the printer at emit time.
|
|
13
|
+
*/
|
|
14
|
+
type AbapDocLine = string;
|
|
15
|
+
/**
|
|
16
|
+
* ABAPDoc metadata attached to a declaration node. Each entry is a logical
|
|
17
|
+
* line; printers emit one `"! <line>` per entry immediately above the
|
|
18
|
+
* declaration, at the same indentation as the declaration itself.
|
|
19
|
+
*/
|
|
20
|
+
type AbapDoc = readonly AbapDocLine[];
|
|
21
|
+
/** Base shape for any AST node. */
|
|
22
|
+
interface AbapNode {
|
|
23
|
+
readonly kind: NodeKind;
|
|
24
|
+
readonly abapDoc?: AbapDoc;
|
|
25
|
+
}
|
|
26
|
+
/** An ABAP identifier (not validated beyond presence). */
|
|
27
|
+
type Identifier = string;
|
|
28
|
+
/** An ABAP comment. Star comments begin at column 1; line comments use `"`. */
|
|
29
|
+
interface Comment extends AbapNode {
|
|
30
|
+
readonly kind: 'Comment';
|
|
31
|
+
readonly text: string;
|
|
32
|
+
readonly style: 'star' | 'line';
|
|
33
|
+
}
|
|
34
|
+
declare function comment(input: {
|
|
35
|
+
text: string;
|
|
36
|
+
style?: 'star' | 'line';
|
|
37
|
+
}): Comment;
|
|
38
|
+
/** Visibility modifier for class members / sections. */
|
|
39
|
+
type Visibility = 'public' | 'protected' | 'private';
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/nodes/types.d.ts
|
|
42
|
+
/** ABAP builtin type names allowed in the AST. */
|
|
43
|
+
type BuiltinTypeName = 'i' | 'int8' | 'f' | 'decfloat34' | 'd' | 't' | 'timestampl' | 'string' | 'xstring' | 'abap_bool' | 'sysuuid_x16';
|
|
44
|
+
interface BuiltinType extends AbapNode {
|
|
45
|
+
readonly kind: 'BuiltinType';
|
|
46
|
+
readonly name: BuiltinTypeName;
|
|
47
|
+
readonly length?: number;
|
|
48
|
+
readonly decimals?: number;
|
|
49
|
+
}
|
|
50
|
+
declare function builtinType(input: {
|
|
51
|
+
name: BuiltinTypeName;
|
|
52
|
+
length?: number;
|
|
53
|
+
decimals?: number;
|
|
54
|
+
}): BuiltinType;
|
|
55
|
+
/** Reference to a named type (e.g. `zif_foo=>ty_bar`). */
|
|
56
|
+
interface NamedTypeRef extends AbapNode {
|
|
57
|
+
readonly kind: 'NamedTypeRef';
|
|
58
|
+
readonly name: Identifier;
|
|
59
|
+
}
|
|
60
|
+
declare function namedTypeRef(input: {
|
|
61
|
+
name: Identifier;
|
|
62
|
+
}): NamedTypeRef;
|
|
63
|
+
/** Type reference used in declarations. */
|
|
64
|
+
type TypeRef = BuiltinType | NamedTypeRef | TableType | StructureType;
|
|
65
|
+
/** ABAP internal table type. */
|
|
66
|
+
interface TableType extends AbapNode {
|
|
67
|
+
readonly kind: 'TableType';
|
|
68
|
+
readonly rowType: TypeRef;
|
|
69
|
+
readonly tableKind: 'standard' | 'sorted' | 'hashed';
|
|
70
|
+
readonly uniqueness?: 'unique' | 'non-unique';
|
|
71
|
+
readonly keyFields?: readonly Identifier[];
|
|
72
|
+
}
|
|
73
|
+
declare function tableType(input: {
|
|
74
|
+
rowType: TypeRef;
|
|
75
|
+
tableKind?: 'standard' | 'sorted' | 'hashed';
|
|
76
|
+
uniqueness?: 'unique' | 'non-unique';
|
|
77
|
+
keyFields?: readonly Identifier[];
|
|
78
|
+
}): TableType;
|
|
79
|
+
/** Field of a structure type. */
|
|
80
|
+
interface StructureField {
|
|
81
|
+
readonly name: Identifier;
|
|
82
|
+
readonly type: TypeRef;
|
|
83
|
+
}
|
|
84
|
+
/** ABAP `BEGIN OF ... END OF` structure type. */
|
|
85
|
+
interface StructureType extends AbapNode {
|
|
86
|
+
readonly kind: 'StructureType';
|
|
87
|
+
readonly fields: readonly StructureField[];
|
|
88
|
+
}
|
|
89
|
+
declare function structureType(input: {
|
|
90
|
+
fields: readonly StructureField[];
|
|
91
|
+
}): StructureType;
|
|
92
|
+
/** Enum-like type: a fixed set of name/value pairs with a base type. */
|
|
93
|
+
interface EnumMember {
|
|
94
|
+
readonly name: Identifier;
|
|
95
|
+
readonly value: string | number;
|
|
96
|
+
}
|
|
97
|
+
interface EnumType extends AbapNode {
|
|
98
|
+
readonly kind: 'EnumType';
|
|
99
|
+
readonly baseType: TypeRef;
|
|
100
|
+
readonly members: readonly EnumMember[];
|
|
101
|
+
}
|
|
102
|
+
declare function enumType(input: {
|
|
103
|
+
baseType: TypeRef;
|
|
104
|
+
members: readonly EnumMember[];
|
|
105
|
+
}): EnumType;
|
|
106
|
+
/** Top-level `TYPES: <name> TYPE ...` declaration. */
|
|
107
|
+
interface TypeDef extends AbapNode {
|
|
108
|
+
readonly kind: 'TypeDef';
|
|
109
|
+
readonly name: Identifier;
|
|
110
|
+
readonly type: TypeRef | EnumType;
|
|
111
|
+
}
|
|
112
|
+
declare function typeDef(input: {
|
|
113
|
+
name: Identifier;
|
|
114
|
+
type: TypeRef | EnumType;
|
|
115
|
+
abapDoc?: AbapDoc;
|
|
116
|
+
}): TypeDef;
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/nodes/expressions.d.ts
|
|
119
|
+
/** An expression node (forward-declared union). */
|
|
120
|
+
type Expression = Literal | IdentifierExpr | ConstructorExpr | MethodCallExpr | BinOp | StringTemplate | Cast;
|
|
121
|
+
/** A literal value. */
|
|
122
|
+
interface Literal extends AbapNode {
|
|
123
|
+
readonly kind: 'Literal';
|
|
124
|
+
readonly literalKind: 'string' | 'int' | 'bool' | 'hex';
|
|
125
|
+
readonly value: string | number | boolean;
|
|
126
|
+
}
|
|
127
|
+
declare function literal(input: {
|
|
128
|
+
literalKind: 'string' | 'int' | 'bool' | 'hex';
|
|
129
|
+
value: string | number | boolean;
|
|
130
|
+
}): Literal;
|
|
131
|
+
/** A bare identifier used as an expression (variable, constant reference). */
|
|
132
|
+
interface IdentifierExpr extends AbapNode {
|
|
133
|
+
readonly kind: 'IdentifierExpr';
|
|
134
|
+
readonly name: Identifier;
|
|
135
|
+
}
|
|
136
|
+
declare function identifierExpr(input: {
|
|
137
|
+
name: Identifier;
|
|
138
|
+
}): IdentifierExpr;
|
|
139
|
+
/** Named argument on a method call / constructor. */
|
|
140
|
+
interface NamedArg {
|
|
141
|
+
readonly name: Identifier;
|
|
142
|
+
readonly value: Expression;
|
|
143
|
+
}
|
|
144
|
+
/** `NEW <type>( ... )`. */
|
|
145
|
+
interface ConstructorExpr extends AbapNode {
|
|
146
|
+
readonly kind: 'ConstructorExpr';
|
|
147
|
+
readonly type: TypeRef;
|
|
148
|
+
readonly args: readonly NamedArg[];
|
|
149
|
+
}
|
|
150
|
+
declare function constructorExpr(input: {
|
|
151
|
+
type: TypeRef;
|
|
152
|
+
args?: readonly NamedArg[];
|
|
153
|
+
}): ConstructorExpr;
|
|
154
|
+
/** Chainable method call (static `cl=>m(...)` or instance `ref->m(...)`). */
|
|
155
|
+
interface MethodCallExpr extends AbapNode {
|
|
156
|
+
readonly kind: 'MethodCallExpr';
|
|
157
|
+
readonly receiver: Expression | undefined;
|
|
158
|
+
readonly method: Identifier;
|
|
159
|
+
readonly callKind: 'static' | 'instance';
|
|
160
|
+
readonly args: readonly NamedArg[];
|
|
161
|
+
}
|
|
162
|
+
declare function methodCallExpr(input: {
|
|
163
|
+
receiver?: Expression;
|
|
164
|
+
method: Identifier;
|
|
165
|
+
callKind: 'static' | 'instance';
|
|
166
|
+
args?: readonly NamedArg[];
|
|
167
|
+
}): MethodCallExpr;
|
|
168
|
+
/** Comparison / arithmetic operators. */
|
|
169
|
+
type BinOperator = '=' | '<>' | '<' | '<=' | '>' | '>=' | '+' | '-' | '*' | '/' | 'AND' | 'OR';
|
|
170
|
+
interface BinOp extends AbapNode {
|
|
171
|
+
readonly kind: 'BinOp';
|
|
172
|
+
readonly op: BinOperator;
|
|
173
|
+
readonly left: Expression;
|
|
174
|
+
readonly right: Expression;
|
|
175
|
+
}
|
|
176
|
+
declare function binOp(input: {
|
|
177
|
+
op: BinOperator;
|
|
178
|
+
left: Expression;
|
|
179
|
+
right: Expression;
|
|
180
|
+
}): BinOp;
|
|
181
|
+
/** Parts of a string template — literal text or an interpolated expression. */
|
|
182
|
+
type StringTemplatePart = {
|
|
183
|
+
readonly partKind: 'text';
|
|
184
|
+
readonly text: string;
|
|
185
|
+
} | {
|
|
186
|
+
readonly partKind: 'expr';
|
|
187
|
+
readonly expr: Expression;
|
|
188
|
+
};
|
|
189
|
+
/** `|text { expr } more|`. */
|
|
190
|
+
interface StringTemplate extends AbapNode {
|
|
191
|
+
readonly kind: 'StringTemplate';
|
|
192
|
+
readonly parts: readonly StringTemplatePart[];
|
|
193
|
+
}
|
|
194
|
+
declare function stringTemplate(input: {
|
|
195
|
+
parts: readonly StringTemplatePart[];
|
|
196
|
+
}): StringTemplate;
|
|
197
|
+
/** `CAST <type>( expr )`. */
|
|
198
|
+
interface Cast extends AbapNode {
|
|
199
|
+
readonly kind: 'Cast';
|
|
200
|
+
readonly type: TypeRef;
|
|
201
|
+
readonly expr: Expression;
|
|
202
|
+
}
|
|
203
|
+
declare function cast(input: {
|
|
204
|
+
type: TypeRef;
|
|
205
|
+
expr: Expression;
|
|
206
|
+
}): Cast;
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/nodes/data.d.ts
|
|
209
|
+
/** `DATA lv_x TYPE ... [VALUE ...]`. */
|
|
210
|
+
interface DataDecl extends AbapNode {
|
|
211
|
+
readonly kind: 'DataDecl';
|
|
212
|
+
readonly name: Identifier;
|
|
213
|
+
readonly type: TypeRef;
|
|
214
|
+
readonly initial?: Expression;
|
|
215
|
+
readonly classData?: boolean;
|
|
216
|
+
}
|
|
217
|
+
declare function dataDecl(input: {
|
|
218
|
+
name: Identifier;
|
|
219
|
+
type: TypeRef;
|
|
220
|
+
initial?: Expression;
|
|
221
|
+
classData?: boolean;
|
|
222
|
+
}): DataDecl;
|
|
223
|
+
/** `CONSTANTS c_x TYPE ... VALUE ...`. */
|
|
224
|
+
interface ConstantDecl extends AbapNode {
|
|
225
|
+
readonly kind: 'ConstantDecl';
|
|
226
|
+
readonly name: Identifier;
|
|
227
|
+
readonly type: TypeRef;
|
|
228
|
+
readonly value: Expression;
|
|
229
|
+
readonly classData?: boolean;
|
|
230
|
+
}
|
|
231
|
+
declare function constantDecl(input: {
|
|
232
|
+
name: Identifier;
|
|
233
|
+
type: TypeRef;
|
|
234
|
+
value: Expression;
|
|
235
|
+
classData?: boolean;
|
|
236
|
+
}): ConstantDecl;
|
|
237
|
+
/** `FIELD-SYMBOLS <fs_x> TYPE ...`. */
|
|
238
|
+
interface FieldSymbolDecl extends AbapNode {
|
|
239
|
+
readonly kind: 'FieldSymbolDecl';
|
|
240
|
+
readonly name: Identifier;
|
|
241
|
+
readonly type: TypeRef;
|
|
242
|
+
}
|
|
243
|
+
declare function fieldSymbolDecl(input: {
|
|
244
|
+
name: Identifier;
|
|
245
|
+
type: TypeRef;
|
|
246
|
+
}): FieldSymbolDecl;
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/nodes/statements.d.ts
|
|
249
|
+
/** Union of all statement node types. */
|
|
250
|
+
type Statement = Assign | Call | Raise | If | Loop | Return | Try | Append | Insert | Read | Clear | Exit | Continue | Raw | Comment | DataDecl | FieldSymbolDecl;
|
|
251
|
+
/** `target = value`. */
|
|
252
|
+
interface Assign extends AbapNode {
|
|
253
|
+
readonly kind: 'Assign';
|
|
254
|
+
readonly target: Expression;
|
|
255
|
+
readonly value: Expression;
|
|
256
|
+
}
|
|
257
|
+
declare function assign(input: {
|
|
258
|
+
target: Expression;
|
|
259
|
+
value: Expression;
|
|
260
|
+
}): Assign;
|
|
261
|
+
/** Statement-level method call, e.g. `cl_foo=>bar( iv = 1 ).`. */
|
|
262
|
+
interface Call extends AbapNode {
|
|
263
|
+
readonly kind: 'Call';
|
|
264
|
+
readonly receiver: Expression | undefined;
|
|
265
|
+
readonly method: Identifier;
|
|
266
|
+
readonly callKind: 'static' | 'instance';
|
|
267
|
+
readonly args: readonly NamedArg[];
|
|
268
|
+
}
|
|
269
|
+
declare function call(input: {
|
|
270
|
+
receiver?: Expression;
|
|
271
|
+
method: Identifier;
|
|
272
|
+
callKind: 'static' | 'instance';
|
|
273
|
+
args?: readonly NamedArg[];
|
|
274
|
+
}): Call;
|
|
275
|
+
/** `RAISE EXCEPTION NEW zcx_xxx( ... ).`. */
|
|
276
|
+
interface Raise extends AbapNode {
|
|
277
|
+
readonly kind: 'Raise';
|
|
278
|
+
readonly exceptionType: TypeRef;
|
|
279
|
+
readonly args: readonly NamedArg[];
|
|
280
|
+
}
|
|
281
|
+
declare function raise(input: {
|
|
282
|
+
exceptionType: TypeRef;
|
|
283
|
+
args?: readonly NamedArg[];
|
|
284
|
+
}): Raise;
|
|
285
|
+
/** A single ELSEIF branch. */
|
|
286
|
+
interface ElseIfBranch {
|
|
287
|
+
readonly condition: Expression;
|
|
288
|
+
readonly body: readonly Statement[];
|
|
289
|
+
}
|
|
290
|
+
/** IF / ELSEIF / ELSE. */
|
|
291
|
+
interface If extends AbapNode {
|
|
292
|
+
readonly kind: 'If';
|
|
293
|
+
readonly condition: Expression;
|
|
294
|
+
readonly thenBody: readonly Statement[];
|
|
295
|
+
readonly elseIfs: readonly ElseIfBranch[];
|
|
296
|
+
readonly else?: readonly Statement[];
|
|
297
|
+
}
|
|
298
|
+
declare function ifStmt(input: {
|
|
299
|
+
condition: Expression;
|
|
300
|
+
thenBody: readonly Statement[];
|
|
301
|
+
elseIfs?: readonly ElseIfBranch[];
|
|
302
|
+
else?: readonly Statement[];
|
|
303
|
+
}): If;
|
|
304
|
+
/** LOOP AT ... INTO wa / ASSIGNING <fs>. */
|
|
305
|
+
interface Loop extends AbapNode {
|
|
306
|
+
readonly kind: 'Loop';
|
|
307
|
+
readonly table: Expression;
|
|
308
|
+
readonly binding: {
|
|
309
|
+
readonly bindKind: 'into';
|
|
310
|
+
readonly target: Identifier;
|
|
311
|
+
} | {
|
|
312
|
+
readonly bindKind: 'assigning';
|
|
313
|
+
readonly fieldSymbol: Identifier;
|
|
314
|
+
};
|
|
315
|
+
readonly body: readonly Statement[];
|
|
316
|
+
}
|
|
317
|
+
declare function loop(input: {
|
|
318
|
+
table: Expression;
|
|
319
|
+
binding: Loop['binding'];
|
|
320
|
+
body: readonly Statement[];
|
|
321
|
+
}): Loop;
|
|
322
|
+
/**
|
|
323
|
+
* `RETURN.` statement, optionally preceded by an assignment to the
|
|
324
|
+
* RETURNING parameter (e.g. `rv_result = <expr>.` + `RETURN.`).
|
|
325
|
+
*
|
|
326
|
+
* `target` is the ABAP identifier of the RETURNING parameter. When
|
|
327
|
+
* `value` is set, `target` is required — ABAP has no implicit `rv`
|
|
328
|
+
* variable.
|
|
329
|
+
*/
|
|
330
|
+
interface Return extends AbapNode {
|
|
331
|
+
readonly kind: 'Return';
|
|
332
|
+
readonly value?: Expression;
|
|
333
|
+
readonly target?: string;
|
|
334
|
+
}
|
|
335
|
+
declare function returnStmt(input?: {
|
|
336
|
+
value?: Expression;
|
|
337
|
+
target?: string;
|
|
338
|
+
}): Return;
|
|
339
|
+
/** CATCH clause inside a TRY. */
|
|
340
|
+
interface CatchClause {
|
|
341
|
+
readonly exceptionTypes: readonly TypeRef[];
|
|
342
|
+
readonly into?: Identifier;
|
|
343
|
+
readonly body: readonly Statement[];
|
|
344
|
+
}
|
|
345
|
+
/** TRY / CATCH / CLEANUP. */
|
|
346
|
+
interface Try extends AbapNode {
|
|
347
|
+
readonly kind: 'Try';
|
|
348
|
+
readonly body: readonly Statement[];
|
|
349
|
+
readonly catches: readonly CatchClause[];
|
|
350
|
+
readonly cleanup?: readonly Statement[];
|
|
351
|
+
}
|
|
352
|
+
declare function tryStmt(input: {
|
|
353
|
+
body: readonly Statement[];
|
|
354
|
+
catches: readonly CatchClause[];
|
|
355
|
+
cleanup?: readonly Statement[];
|
|
356
|
+
}): Try;
|
|
357
|
+
/** APPEND value TO table. */
|
|
358
|
+
interface Append extends AbapNode {
|
|
359
|
+
readonly kind: 'Append';
|
|
360
|
+
readonly value: Expression;
|
|
361
|
+
readonly table: Expression;
|
|
362
|
+
}
|
|
363
|
+
declare function append(input: {
|
|
364
|
+
value: Expression;
|
|
365
|
+
table: Expression;
|
|
366
|
+
}): Append;
|
|
367
|
+
/** INSERT value INTO TABLE table. */
|
|
368
|
+
interface Insert extends AbapNode {
|
|
369
|
+
readonly kind: 'Insert';
|
|
370
|
+
readonly value: Expression;
|
|
371
|
+
readonly table: Expression;
|
|
372
|
+
}
|
|
373
|
+
declare function insert(input: {
|
|
374
|
+
value: Expression;
|
|
375
|
+
table: Expression;
|
|
376
|
+
}): Insert;
|
|
377
|
+
/** READ TABLE table INTO wa / ASSIGNING <fs> [WITH KEY ...]. */
|
|
378
|
+
interface Read extends AbapNode {
|
|
379
|
+
readonly kind: 'Read';
|
|
380
|
+
readonly table: Expression;
|
|
381
|
+
readonly binding: {
|
|
382
|
+
readonly bindKind: 'into';
|
|
383
|
+
readonly target: Identifier;
|
|
384
|
+
} | {
|
|
385
|
+
readonly bindKind: 'assigning';
|
|
386
|
+
readonly fieldSymbol: Identifier;
|
|
387
|
+
};
|
|
388
|
+
readonly withKey?: readonly NamedArg[];
|
|
389
|
+
readonly index?: Expression;
|
|
390
|
+
}
|
|
391
|
+
declare function read(input: {
|
|
392
|
+
table: Expression;
|
|
393
|
+
binding: Read['binding'];
|
|
394
|
+
withKey?: readonly NamedArg[];
|
|
395
|
+
index?: Expression;
|
|
396
|
+
}): Read;
|
|
397
|
+
/** CLEAR target. */
|
|
398
|
+
interface Clear extends AbapNode {
|
|
399
|
+
readonly kind: 'Clear';
|
|
400
|
+
readonly target: Expression;
|
|
401
|
+
}
|
|
402
|
+
declare function clear(input: {
|
|
403
|
+
target: Expression;
|
|
404
|
+
}): Clear;
|
|
405
|
+
/** EXIT. */
|
|
406
|
+
interface Exit extends AbapNode {
|
|
407
|
+
readonly kind: 'Exit';
|
|
408
|
+
}
|
|
409
|
+
declare function exit(): Exit;
|
|
410
|
+
/** CONTINUE. */
|
|
411
|
+
interface Continue extends AbapNode {
|
|
412
|
+
readonly kind: 'Continue';
|
|
413
|
+
}
|
|
414
|
+
declare function continueStmt(): Continue;
|
|
415
|
+
/** Verbatim ABAP source — escape hatch when the AST can't express something. */
|
|
416
|
+
interface Raw extends AbapNode {
|
|
417
|
+
readonly kind: 'Raw';
|
|
418
|
+
readonly source: string;
|
|
419
|
+
}
|
|
420
|
+
declare function raw(input: {
|
|
421
|
+
source: string;
|
|
422
|
+
}): Raw;
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region src/nodes/members.d.ts
|
|
425
|
+
/** ABAP method parameter kind. */
|
|
426
|
+
type ParamKind = 'importing' | 'exporting' | 'changing' | 'returning';
|
|
427
|
+
interface MethodParam extends AbapNode {
|
|
428
|
+
readonly kind: 'MethodParam';
|
|
429
|
+
readonly paramKind: ParamKind;
|
|
430
|
+
readonly name: Identifier;
|
|
431
|
+
readonly typeRef: TypeRef;
|
|
432
|
+
readonly optional?: boolean;
|
|
433
|
+
readonly default?: Expression;
|
|
434
|
+
}
|
|
435
|
+
declare function methodParam(input: {
|
|
436
|
+
paramKind: ParamKind;
|
|
437
|
+
name: Identifier;
|
|
438
|
+
typeRef: TypeRef;
|
|
439
|
+
optional?: boolean;
|
|
440
|
+
default?: Expression;
|
|
441
|
+
}): MethodParam;
|
|
442
|
+
interface MethodDef extends AbapNode {
|
|
443
|
+
readonly kind: 'MethodDef';
|
|
444
|
+
readonly name: Identifier;
|
|
445
|
+
readonly params: readonly MethodParam[];
|
|
446
|
+
readonly raising: readonly TypeRef[];
|
|
447
|
+
readonly visibility: Visibility;
|
|
448
|
+
readonly isClassMethod?: boolean;
|
|
449
|
+
readonly isAbstract?: boolean;
|
|
450
|
+
readonly isFinal?: boolean;
|
|
451
|
+
readonly isRedefinition?: boolean;
|
|
452
|
+
readonly isForTesting?: boolean;
|
|
453
|
+
}
|
|
454
|
+
declare function methodDef(input: {
|
|
455
|
+
name: Identifier;
|
|
456
|
+
params?: readonly MethodParam[];
|
|
457
|
+
raising?: readonly TypeRef[];
|
|
458
|
+
visibility: Visibility;
|
|
459
|
+
isClassMethod?: boolean;
|
|
460
|
+
isAbstract?: boolean;
|
|
461
|
+
isFinal?: boolean;
|
|
462
|
+
isRedefinition?: boolean;
|
|
463
|
+
isForTesting?: boolean;
|
|
464
|
+
abapDoc?: AbapDoc;
|
|
465
|
+
}): MethodDef;
|
|
466
|
+
/** Body of a method in the IMPLEMENTATION block. */
|
|
467
|
+
interface MethodImpl extends AbapNode {
|
|
468
|
+
readonly kind: 'MethodImpl';
|
|
469
|
+
readonly name: Identifier;
|
|
470
|
+
readonly body: readonly Statement[];
|
|
471
|
+
}
|
|
472
|
+
declare function methodImpl(input: {
|
|
473
|
+
name: Identifier;
|
|
474
|
+
body: readonly Statement[];
|
|
475
|
+
}): MethodImpl;
|
|
476
|
+
/** EVENT declaration (stub — body not modelled yet). */
|
|
477
|
+
interface EventDef extends AbapNode {
|
|
478
|
+
readonly kind: 'EventDef';
|
|
479
|
+
readonly name: Identifier;
|
|
480
|
+
readonly visibility: Visibility;
|
|
481
|
+
readonly isClassEvent?: boolean;
|
|
482
|
+
}
|
|
483
|
+
declare function eventDef(input: {
|
|
484
|
+
name: Identifier;
|
|
485
|
+
visibility: Visibility;
|
|
486
|
+
isClassEvent?: boolean;
|
|
487
|
+
}): EventDef;
|
|
488
|
+
/** DATA / CLASS-DATA declaration inside a class section. */
|
|
489
|
+
interface AttributeDef extends AbapNode {
|
|
490
|
+
readonly kind: 'AttributeDef';
|
|
491
|
+
readonly name: Identifier;
|
|
492
|
+
readonly type: TypeRef;
|
|
493
|
+
readonly visibility: Visibility;
|
|
494
|
+
readonly classData?: boolean;
|
|
495
|
+
readonly readOnly?: boolean;
|
|
496
|
+
readonly initial?: Expression;
|
|
497
|
+
}
|
|
498
|
+
declare function attributeDef(input: {
|
|
499
|
+
name: Identifier;
|
|
500
|
+
type: TypeRef;
|
|
501
|
+
visibility: Visibility;
|
|
502
|
+
classData?: boolean;
|
|
503
|
+
readOnly?: boolean;
|
|
504
|
+
initial?: Expression;
|
|
505
|
+
abapDoc?: AbapDoc;
|
|
506
|
+
}): AttributeDef;
|
|
507
|
+
//#endregion
|
|
508
|
+
//#region src/nodes/class.d.ts
|
|
509
|
+
/** A member that may appear inside a class section. */
|
|
510
|
+
type SectionMember = TypeDef | AttributeDef | MethodDef | ConstantDecl | EventDef;
|
|
511
|
+
/** A visibility section of a class definition. */
|
|
512
|
+
interface Section extends AbapNode {
|
|
513
|
+
readonly kind: 'Section';
|
|
514
|
+
readonly visibility: Visibility;
|
|
515
|
+
readonly members: readonly SectionMember[];
|
|
516
|
+
}
|
|
517
|
+
declare function section(input: {
|
|
518
|
+
visibility: Visibility;
|
|
519
|
+
members?: readonly SectionMember[];
|
|
520
|
+
}): Section;
|
|
521
|
+
/** Top-level global class (`CLASS ... DEFINITION` + `IMPLEMENTATION`). */
|
|
522
|
+
interface ClassDef extends AbapNode {
|
|
523
|
+
readonly kind: 'ClassDef';
|
|
524
|
+
readonly name: Identifier;
|
|
525
|
+
readonly superclass?: Identifier;
|
|
526
|
+
readonly interfaces: readonly Identifier[];
|
|
527
|
+
readonly isFinal?: boolean;
|
|
528
|
+
readonly isAbstract?: boolean;
|
|
529
|
+
readonly isForTesting?: boolean;
|
|
530
|
+
readonly isCreatePrivate?: boolean;
|
|
531
|
+
readonly sections: readonly Section[];
|
|
532
|
+
readonly implementations: readonly MethodImpl[];
|
|
533
|
+
}
|
|
534
|
+
declare function classDef(input: {
|
|
535
|
+
name: Identifier;
|
|
536
|
+
superclass?: Identifier;
|
|
537
|
+
interfaces?: readonly Identifier[];
|
|
538
|
+
isFinal?: boolean;
|
|
539
|
+
isAbstract?: boolean;
|
|
540
|
+
isForTesting?: boolean;
|
|
541
|
+
isCreatePrivate?: boolean;
|
|
542
|
+
sections?: readonly Section[];
|
|
543
|
+
implementations?: readonly MethodImpl[];
|
|
544
|
+
abapDoc?: AbapDoc;
|
|
545
|
+
}): ClassDef;
|
|
546
|
+
/** A local class inside a CLAS-POOL (same shape as ClassDef, flagged local). */
|
|
547
|
+
interface LocalClassDef extends AbapNode {
|
|
548
|
+
readonly kind: 'LocalClassDef';
|
|
549
|
+
readonly name: Identifier;
|
|
550
|
+
readonly superclass?: Identifier;
|
|
551
|
+
readonly interfaces: readonly Identifier[];
|
|
552
|
+
readonly isFinal?: boolean;
|
|
553
|
+
readonly isAbstract?: boolean;
|
|
554
|
+
readonly isForTesting?: boolean;
|
|
555
|
+
readonly sections: readonly Section[];
|
|
556
|
+
readonly implementations: readonly MethodImpl[];
|
|
557
|
+
readonly local: true;
|
|
558
|
+
}
|
|
559
|
+
declare function localClassDef(input: {
|
|
560
|
+
name: Identifier;
|
|
561
|
+
superclass?: Identifier;
|
|
562
|
+
interfaces?: readonly Identifier[];
|
|
563
|
+
isFinal?: boolean;
|
|
564
|
+
isAbstract?: boolean;
|
|
565
|
+
isForTesting?: boolean;
|
|
566
|
+
sections?: readonly Section[];
|
|
567
|
+
implementations?: readonly MethodImpl[];
|
|
568
|
+
}): LocalClassDef;
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region src/nodes/interface.d.ts
|
|
571
|
+
/** A member that may appear inside an interface definition. */
|
|
572
|
+
type InterfaceMember = TypeDef | MethodDef;
|
|
573
|
+
/** `INTERFACE zif_foo. ... ENDINTERFACE.`. */
|
|
574
|
+
interface InterfaceDef extends AbapNode {
|
|
575
|
+
readonly kind: 'InterfaceDef';
|
|
576
|
+
readonly name: Identifier;
|
|
577
|
+
readonly members: readonly InterfaceMember[];
|
|
578
|
+
}
|
|
579
|
+
declare function interfaceDef(input: {
|
|
580
|
+
name: Identifier;
|
|
581
|
+
members?: readonly InterfaceMember[];
|
|
582
|
+
abapDoc?: AbapDoc;
|
|
583
|
+
}): InterfaceDef;
|
|
584
|
+
//#endregion
|
|
585
|
+
//#region src/printer/options.d.ts
|
|
586
|
+
interface PrintOptions {
|
|
587
|
+
/** Spaces per indentation level. Default 2. */
|
|
588
|
+
indent?: number;
|
|
589
|
+
/** 'upper' (default) or 'lower' for ABAP keywords. */
|
|
590
|
+
keywordCase?: 'upper' | 'lower';
|
|
591
|
+
/** Line ending. Default '\n'. */
|
|
592
|
+
eol?: string;
|
|
593
|
+
}
|
|
594
|
+
type ResolvedPrintOptions = Required<PrintOptions>;
|
|
595
|
+
//#endregion
|
|
596
|
+
//#region src/printer/writer.d.ts
|
|
597
|
+
/** Tiny indentation-aware string builder. */
|
|
598
|
+
declare class Writer {
|
|
599
|
+
private readonly lines;
|
|
600
|
+
private level;
|
|
601
|
+
private readonly opts;
|
|
602
|
+
constructor(opts: ResolvedPrintOptions);
|
|
603
|
+
get options(): ResolvedPrintOptions;
|
|
604
|
+
indent(): void;
|
|
605
|
+
dedent(): void;
|
|
606
|
+
/** Current indent prefix. */
|
|
607
|
+
prefix(): string;
|
|
608
|
+
/** Write a full line with current indent. Empty string = blank line (no whitespace). */
|
|
609
|
+
writeLine(s?: string): void;
|
|
610
|
+
/** Append text to the most recent line (no newline). Starts a new indented line if none exists. */
|
|
611
|
+
write(s: string): void;
|
|
612
|
+
/** Emit a blank line. */
|
|
613
|
+
blank(): void;
|
|
614
|
+
/** Emit a line with no indent prefix (used by star comments, which must begin at column 1). */
|
|
615
|
+
rawLine(s: string): void;
|
|
616
|
+
/** Transform a keyword according to keywordCase. */
|
|
617
|
+
kw(word: string): string;
|
|
618
|
+
toString(): string;
|
|
619
|
+
}
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/printer/print-types.d.ts
|
|
622
|
+
/** Print a TypeRef as an inline type expression (e.g. 'string', 'i', 'zcl_foo'). */
|
|
623
|
+
declare function printInlineType(type: TypeRef, writer: Writer): string;
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region src/printer/print-expressions.d.ts
|
|
626
|
+
/** Print an expression to a single string (no newlines unless forced by wrapping). */
|
|
627
|
+
declare function printExpression(expr: Expression, writer: Writer): string;
|
|
628
|
+
//#endregion
|
|
629
|
+
//#region src/printer/index.d.ts
|
|
630
|
+
/** Pretty-print an ABAP AST node to source code. */
|
|
631
|
+
declare function print(node: AbapNode, options?: PrintOptions): string;
|
|
632
|
+
//#endregion
|
|
633
|
+
export { AbapAstError, AbapDoc, AbapDocLine, AbapNode, Append, Assign, AttributeDef, BinOp, BinOperator, BuiltinType, BuiltinTypeName, Call, Cast, CatchClause, ClassDef, Clear, Comment, ConstantDecl, ConstructorExpr, Continue, DataDecl, ElseIfBranch, EnumMember, EnumType, EventDef, Exit, Expression, FieldSymbolDecl, Identifier, IdentifierExpr, If, Insert, InterfaceDef, InterfaceMember, Literal, LocalClassDef, Loop, MethodCallExpr, MethodDef, MethodImpl, MethodParam, NamedArg, NamedTypeRef, NodeKind, ParamKind, type PrintOptions, Raise, Raw, Read, type ResolvedPrintOptions, Return, Section, SectionMember, Statement, StringTemplate, StringTemplatePart, StructureField, StructureType, TableType, Try, TypeDef, TypeRef, Visibility, Writer, append, assign, attributeDef, binOp, builtinType, call, cast, classDef, clear, comment, constantDecl, constructorExpr, continueStmt, dataDecl, enumType, eventDef, exit, fieldSymbolDecl, identifierExpr, ifStmt, insert, interfaceDef, literal, localClassDef, loop, methodCallExpr, methodDef, methodImpl, methodParam, namedTypeRef, print, printExpression, printInlineType, raise, raw, read, requireField, returnStmt, section, stringTemplate, structureType, tableType, tryStmt, typeDef };
|
|
634
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/nodes/errors.ts","../src/nodes/base.ts","../src/nodes/types.ts","../src/nodes/expressions.ts","../src/nodes/data.ts","../src/nodes/statements.ts","../src/nodes/members.ts","../src/nodes/class.ts","../src/nodes/interface.ts","../src/printer/options.ts","../src/printer/writer.ts","../src/printer/print-types.ts","../src/printer/print-expressions.ts","../src/printer/index.ts"],"mappings":";cAAa,YAAA,SAAqB,KAAA;cACpB,OAAA;AAAA;AAAA,iBAME,YAAA,GAAA,CACd,KAAA,EAAO,CAAA,qBACP,KAAA,UACA,QAAA,WACC,CAAA;;;;KCRS,QAAA;;;;;KAqDA,WAAA;;;;ADjDZ;;KCwDY,OAAA,YAAmB,WAAA;;UAGd,QAAA;EAAA,SACN,IAAA,EAAM,QAAA;EAAA,SACN,OAAA,GAAU,OAAA;AAAA;;KAIT,UAAA;;UAGK,OAAA,SAAgB,QAAA;EAAA,SACtB,IAAA;EAAA,SACA,IAAA;EAAA,SACA,KAAA;AAAA;AAAA,iBAGK,OAAA,CAAQ,KAAA;EACtB,IAAA;EACA,KAAA;AA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