1 | import { Option } from '@glimmer/interfaces';
|
2 | import * as ASTv1 from '../v1/api';
|
3 | export interface TraversalError extends Error {
|
4 | constructor: TraversalErrorConstructor;
|
5 | key: string;
|
6 | node: ASTv1.Node;
|
7 | parent: Option<ASTv1.Node>;
|
8 | }
|
9 | export interface TraversalErrorConstructor {
|
10 | new (message: string, node: ASTv1.Node, parent: Option<ASTv1.Node>, key: string): TraversalError;
|
11 | readonly prototype: TraversalError;
|
12 | }
|
13 | declare const TraversalError: TraversalErrorConstructor;
|
14 | export default TraversalError;
|
15 | export declare function cannotRemoveNode(node: ASTv1.Node, parent: ASTv1.Node, key: string): TraversalError;
|
16 | export declare function cannotReplaceNode(node: ASTv1.Node, parent: ASTv1.Node, key: string): TraversalError;
|
17 | export declare function cannotReplaceOrRemoveInKeyHandlerYet(node: ASTv1.Node, key: string): TraversalError;
|
18 |
|
\ | No newline at end of file |