inital
This commit is contained in:
9
node_modules/liquidjs/dist/tokens/delimited-token.d.ts
generated
vendored
Normal file
9
node_modules/liquidjs/dist/tokens/delimited-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Token } from './token';
|
||||
import { TokenKind } from '../parser';
|
||||
export declare abstract class DelimitedToken extends Token {
|
||||
trimLeft: boolean;
|
||||
trimRight: boolean;
|
||||
contentRange: [number, number];
|
||||
constructor(kind: TokenKind, [contentBegin, contentEnd]: [number, number], input: string, begin: number, end: number, trimLeft: boolean, trimRight: boolean, file?: string);
|
||||
get content(): string;
|
||||
}
|
7
node_modules/liquidjs/dist/tokens/filter-token.d.ts
generated
vendored
Normal file
7
node_modules/liquidjs/dist/tokens/filter-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Token } from './token';
|
||||
import { FilterArg } from '../parser/filter-arg';
|
||||
export declare class FilterToken extends Token {
|
||||
name: string;
|
||||
args: FilterArg[];
|
||||
constructor(name: string, args: FilterArg[], input: string, begin: number, end: number, file?: string);
|
||||
}
|
17
node_modules/liquidjs/dist/tokens/filtered-value-token.d.ts
generated
vendored
Normal file
17
node_modules/liquidjs/dist/tokens/filtered-value-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Token } from './token';
|
||||
import { FilterToken } from './filter-token';
|
||||
import { Expression } from '../render';
|
||||
/**
|
||||
* value expression with optional filters
|
||||
* e.g.
|
||||
* {% assign foo="bar" | append: "coo" %}
|
||||
*/
|
||||
export declare class FilteredValueToken extends Token {
|
||||
initial: Expression;
|
||||
filters: FilterToken[];
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
constructor(initial: Expression, filters: FilterToken[], input: string, begin: number, end: number, file?: string | undefined);
|
||||
}
|
12
node_modules/liquidjs/dist/tokens/hash-token.d.ts
generated
vendored
Normal file
12
node_modules/liquidjs/dist/tokens/hash-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Token } from './token';
|
||||
import { ValueToken } from './value-token';
|
||||
import { IdentifierToken } from './identifier-token';
|
||||
export declare class HashToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
name: IdentifierToken;
|
||||
value?: ValueToken | undefined;
|
||||
file?: string | undefined;
|
||||
constructor(input: string, begin: number, end: number, name: IdentifierToken, value?: ValueToken | undefined, file?: string | undefined);
|
||||
}
|
11
node_modules/liquidjs/dist/tokens/html-token.d.ts
generated
vendored
Normal file
11
node_modules/liquidjs/dist/tokens/html-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Token } from './token';
|
||||
export declare class HTMLToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
trimLeft: number;
|
||||
trimRight: number;
|
||||
constructor(input: string, begin: number, end: number, file?: string | undefined);
|
||||
getContent(): string;
|
||||
}
|
9
node_modules/liquidjs/dist/tokens/identifier-token.d.ts
generated
vendored
Normal file
9
node_modules/liquidjs/dist/tokens/identifier-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Token } from './token';
|
||||
export declare class IdentifierToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
content: string;
|
||||
constructor(input: string, begin: number, end: number, file?: string | undefined);
|
||||
}
|
18
node_modules/liquidjs/dist/tokens/index.d.ts
generated
vendored
Normal file
18
node_modules/liquidjs/dist/tokens/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
export * from './top-level-token';
|
||||
export * from './tag-token';
|
||||
export * from './output-token';
|
||||
export * from './html-token';
|
||||
export * from './number-token';
|
||||
export * from './identifier-token';
|
||||
export * from './literal-token';
|
||||
export * from './operator-token';
|
||||
export * from './property-access-token';
|
||||
export * from './filter-token';
|
||||
export * from './hash-token';
|
||||
export * from './quoted-token';
|
||||
export * from './token';
|
||||
export * from './range-token';
|
||||
export * from './value-token';
|
||||
export * from './liquid-tag-token';
|
||||
export * from './delimited-token';
|
||||
export * from './filtered-value-token';
|
12
node_modules/liquidjs/dist/tokens/liquid-tag-token.d.ts
generated
vendored
Normal file
12
node_modules/liquidjs/dist/tokens/liquid-tag-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { DelimitedToken } from './delimited-token';
|
||||
import { NormalizedFullOptions } from '../liquid-options';
|
||||
import { Tokenizer } from '../parser';
|
||||
/**
|
||||
* LiquidTagToken is different from TagToken by not having delimiters `{%` or `%}`
|
||||
*/
|
||||
export declare class LiquidTagToken extends DelimitedToken {
|
||||
name: string;
|
||||
args: string;
|
||||
tokenizer: Tokenizer;
|
||||
constructor(input: string, begin: number, end: number, options: NormalizedFullOptions, file?: string);
|
||||
}
|
11
node_modules/liquidjs/dist/tokens/literal-token.d.ts
generated
vendored
Normal file
11
node_modules/liquidjs/dist/tokens/literal-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Token } from './token';
|
||||
import { LiteralValue } from '../util';
|
||||
export declare class LiteralToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
content: LiteralValue;
|
||||
literal: string;
|
||||
constructor(input: string, begin: number, end: number, file?: string | undefined);
|
||||
}
|
9
node_modules/liquidjs/dist/tokens/number-token.d.ts
generated
vendored
Normal file
9
node_modules/liquidjs/dist/tokens/number-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Token } from './token';
|
||||
export declare class NumberToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
content: number;
|
||||
constructor(input: string, begin: number, end: number, file?: string | undefined);
|
||||
}
|
38
node_modules/liquidjs/dist/tokens/operator-token.d.ts
generated
vendored
Normal file
38
node_modules/liquidjs/dist/tokens/operator-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { Token } from './token';
|
||||
export declare const enum OperatorType {
|
||||
Binary = 0,
|
||||
Unary = 1
|
||||
}
|
||||
export declare const operatorPrecedences: {
|
||||
'==': number;
|
||||
'!=': number;
|
||||
'>': number;
|
||||
'<': number;
|
||||
'>=': number;
|
||||
'<=': number;
|
||||
contains: number;
|
||||
not: number;
|
||||
and: number;
|
||||
or: number;
|
||||
};
|
||||
export declare const operatorTypes: {
|
||||
'==': OperatorType;
|
||||
'!=': OperatorType;
|
||||
'>': OperatorType;
|
||||
'<': OperatorType;
|
||||
'>=': OperatorType;
|
||||
'<=': OperatorType;
|
||||
contains: OperatorType;
|
||||
not: OperatorType;
|
||||
and: OperatorType;
|
||||
or: OperatorType;
|
||||
};
|
||||
export declare class OperatorToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
operator: string;
|
||||
constructor(input: string, begin: number, end: number, file?: string | undefined);
|
||||
getPrecedence(): any;
|
||||
}
|
5
node_modules/liquidjs/dist/tokens/output-token.d.ts
generated
vendored
Normal file
5
node_modules/liquidjs/dist/tokens/output-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { DelimitedToken } from './delimited-token';
|
||||
import { NormalizedFullOptions } from '../liquid-options';
|
||||
export declare class OutputToken extends DelimitedToken {
|
||||
constructor(input: string, begin: number, end: number, options: NormalizedFullOptions, file?: string);
|
||||
}
|
12
node_modules/liquidjs/dist/tokens/property-access-token.d.ts
generated
vendored
Normal file
12
node_modules/liquidjs/dist/tokens/property-access-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Token } from './token';
|
||||
import { LiteralToken } from './literal-token';
|
||||
import { ValueToken } from './value-token';
|
||||
import { IdentifierToken } from './identifier-token';
|
||||
import { NumberToken } from './number-token';
|
||||
import { RangeToken } from './range-token';
|
||||
import { QuotedToken } from './quoted-token';
|
||||
export declare class PropertyAccessToken extends Token {
|
||||
variable: QuotedToken | RangeToken | LiteralToken | NumberToken | undefined;
|
||||
props: (ValueToken | IdentifierToken)[];
|
||||
constructor(variable: QuotedToken | RangeToken | LiteralToken | NumberToken | undefined, props: (ValueToken | IdentifierToken)[], input: string, begin: number, end: number, file?: string);
|
||||
}
|
9
node_modules/liquidjs/dist/tokens/quoted-token.d.ts
generated
vendored
Normal file
9
node_modules/liquidjs/dist/tokens/quoted-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Token } from './token';
|
||||
export declare class QuotedToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
readonly content: string;
|
||||
constructor(input: string, begin: number, end: number, file?: string | undefined);
|
||||
}
|
11
node_modules/liquidjs/dist/tokens/range-token.d.ts
generated
vendored
Normal file
11
node_modules/liquidjs/dist/tokens/range-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { Token } from './token';
|
||||
import { ValueToken } from './value-token';
|
||||
export declare class RangeToken extends Token {
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
lhs: ValueToken;
|
||||
rhs: ValueToken;
|
||||
file?: string | undefined;
|
||||
constructor(input: string, begin: number, end: number, lhs: ValueToken, rhs: ValueToken, file?: string | undefined);
|
||||
}
|
9
node_modules/liquidjs/dist/tokens/tag-token.d.ts
generated
vendored
Normal file
9
node_modules/liquidjs/dist/tokens/tag-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import { DelimitedToken } from './delimited-token';
|
||||
import { Tokenizer } from '../parser';
|
||||
import type { NormalizedFullOptions } from '../liquid-options';
|
||||
export declare class TagToken extends DelimitedToken {
|
||||
name: string;
|
||||
tokenizer: Tokenizer;
|
||||
constructor(input: string, begin: number, end: number, options: NormalizedFullOptions, file?: string);
|
||||
get args(): string;
|
||||
}
|
12
node_modules/liquidjs/dist/tokens/token.d.ts
generated
vendored
Normal file
12
node_modules/liquidjs/dist/tokens/token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { TokenKind } from '../parser';
|
||||
export declare abstract class Token {
|
||||
kind: TokenKind;
|
||||
input: string;
|
||||
begin: number;
|
||||
end: number;
|
||||
file?: string | undefined;
|
||||
constructor(kind: TokenKind, input: string, begin: number, end: number, file?: string | undefined);
|
||||
getText(): string;
|
||||
getPosition(): number[];
|
||||
size(): number;
|
||||
}
|
4
node_modules/liquidjs/dist/tokens/top-level-token.d.ts
generated
vendored
Normal file
4
node_modules/liquidjs/dist/tokens/top-level-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import type { TagToken } from './tag-token';
|
||||
import type { HTMLToken } from './html-token';
|
||||
import type { OutputToken } from './output-token';
|
||||
export type TopLevelToken = TagToken | OutputToken | HTMLToken;
|
6
node_modules/liquidjs/dist/tokens/value-token.d.ts
generated
vendored
Normal file
6
node_modules/liquidjs/dist/tokens/value-token.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { RangeToken } from './range-token';
|
||||
import { LiteralToken } from './literal-token';
|
||||
import { NumberToken } from './number-token';
|
||||
import { QuotedToken } from './quoted-token';
|
||||
import { PropertyAccessToken } from './property-access-token';
|
||||
export type ValueToken = RangeToken | LiteralToken | QuotedToken | PropertyAccessToken | NumberToken;
|
Reference in New Issue
Block a user