main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
806 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import type { SourceToken, Token } from '../parse/cst.js';
|
---|
| 2 | import type { ComposeErrorHandler } from './composer.js';
|
---|
| 3 | export interface ResolvePropsArg {
|
---|
| 4 | flow?: 'flow map' | 'flow sequence';
|
---|
| 5 | indicator: 'doc-start' | 'explicit-key-ind' | 'map-value-ind' | 'seq-item-ind';
|
---|
| 6 | next: Token | null | undefined;
|
---|
| 7 | offset: number;
|
---|
| 8 | onError: ComposeErrorHandler;
|
---|
| 9 | startOnNewline: boolean;
|
---|
| 10 | }
|
---|
| 11 | export declare function resolveProps(tokens: SourceToken[], { flow, indicator, next, offset, onError, startOnNewline }: ResolvePropsArg): {
|
---|
| 12 | comma: SourceToken | null;
|
---|
| 13 | found: SourceToken | null;
|
---|
| 14 | spaceBefore: boolean;
|
---|
| 15 | comment: string;
|
---|
| 16 | hasNewline: boolean;
|
---|
| 17 | hasNewlineAfterProp: boolean;
|
---|
| 18 | anchor: SourceToken | null;
|
---|
| 19 | tag: SourceToken | null;
|
---|
| 20 | end: number;
|
---|
| 21 | start: number;
|
---|
| 22 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.