1 | import type { SourceSlice } from '../../source/slice';
|
2 | import type { SourceSpan } from '../../source/span';
|
3 | import type { ExpressionNode } from './expr';
|
4 | declare const Args_base: import("./node").NodeConstructor<{
|
5 | positional: PositionalArguments;
|
6 | named: NamedArguments;
|
7 | } & import("./node").BaseNodeFields>;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 | export declare class Args extends Args_base {
|
20 | static empty(loc: SourceSpan): Args;
|
21 | static named(named: NamedArguments): Args;
|
22 | nth(offset: number): ExpressionNode | null;
|
23 | get(name: string): ExpressionNode | null;
|
24 | isEmpty(): boolean;
|
25 | }
|
26 | declare const PositionalArguments_base: import("./node").NodeConstructor<{
|
27 | exprs: readonly ExpressionNode[];
|
28 | } & import("./node").BaseNodeFields>;
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 | export declare class PositionalArguments extends PositionalArguments_base {
|
36 | static empty(loc: SourceSpan): PositionalArguments;
|
37 | get size(): number;
|
38 | nth(offset: number): ExpressionNode | null;
|
39 | isEmpty(): boolean;
|
40 | }
|
41 | declare const NamedArguments_base: import("./node").NodeConstructor<{
|
42 | entries: readonly NamedArgument[];
|
43 | } & import("./node").BaseNodeFields>;
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | export declare class NamedArguments extends NamedArguments_base {
|
54 | static empty(loc: SourceSpan): NamedArguments;
|
55 | get size(): number;
|
56 | get(name: string): ExpressionNode | null;
|
57 | isEmpty(): boolean;
|
58 | }
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | export declare class NamedArgument {
|
67 | readonly loc: SourceSpan;
|
68 | readonly name: SourceSlice;
|
69 | readonly value: ExpressionNode;
|
70 | constructor(options: {
|
71 | name: SourceSlice;
|
72 | value: ExpressionNode;
|
73 | });
|
74 | }
|
75 | export {};
|