mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-12-24 13:14:26 +00:00
23 lines
806 B
TypeScript
23 lines
806 B
TypeScript
|
import type { SourceToken, Token } from '../parse/cst.js';
|
||
|
import type { ComposeErrorHandler } from './composer.js';
|
||
|
export interface ResolvePropsArg {
|
||
|
flow?: 'flow map' | 'flow sequence';
|
||
|
indicator: 'doc-start' | 'explicit-key-ind' | 'map-value-ind' | 'seq-item-ind';
|
||
|
next: Token | null | undefined;
|
||
|
offset: number;
|
||
|
onError: ComposeErrorHandler;
|
||
|
startOnNewline: boolean;
|
||
|
}
|
||
|
export declare function resolveProps(tokens: SourceToken[], { flow, indicator, next, offset, onError, startOnNewline }: ResolvePropsArg): {
|
||
|
comma: SourceToken | null;
|
||
|
found: SourceToken | null;
|
||
|
spaceBefore: boolean;
|
||
|
comment: string;
|
||
|
hasNewline: boolean;
|
||
|
hasNewlineAfterProp: boolean;
|
||
|
anchor: SourceToken | null;
|
||
|
tag: SourceToken | null;
|
||
|
end: number;
|
||
|
start: number;
|
||
|
};
|