solidity-antlr4
Version:
Solidity Lang Lexer and Parser by official ANTLR4 grammar
92 lines (91 loc) • 7.38 kB
TypeScript
import { VariableDeclarationTupleContext, SolidityParserVisitor } from '../../antlr4';
import { VariableDeclaration } from './variable-declaration';
export type VariableDeclarationTuple = (VariableDeclaration | null)[];
export declare const VariableDeclarationTuple: {
new (ctx: VariableDeclarationTupleContext, visitor: SolidityParserVisitor<any>): {
[n: number]: VariableDeclaration | null;
type: "VariableDeclarationTuple";
length: number;
toString(): string;
toLocaleString(): string;
pop(): VariableDeclaration | null | undefined;
push(...items: (VariableDeclaration | null)[]): number;
concat(...items: ConcatArray<VariableDeclaration | null>[]): (VariableDeclaration | null)[];
concat(...items: (VariableDeclaration | ConcatArray<VariableDeclaration | null> | null)[]): (VariableDeclaration | null)[];
join(separator?: string | undefined): string;
reverse(): (VariableDeclaration | null)[];
shift(): VariableDeclaration | null | undefined;
slice(start?: number | undefined, end?: number | undefined): (VariableDeclaration | null)[];
sort(compareFn?: ((a: VariableDeclaration | null, b: VariableDeclaration | null) => number) | undefined): any;
splice(start: number, deleteCount?: number | undefined): (VariableDeclaration | null)[];
splice(start: number, deleteCount: number, ...items: (VariableDeclaration | null)[]): (VariableDeclaration | null)[];
unshift(...items: (VariableDeclaration | null)[]): number;
indexOf(searchElement: VariableDeclaration | null, fromIndex?: number | undefined): number;
lastIndexOf(searchElement: VariableDeclaration | null, fromIndex?: number | undefined): number;
every<S extends VariableDeclaration | null>(predicate: (value: VariableDeclaration | null, index: number, array: (VariableDeclaration | null)[]) => value is S, thisArg?: any): this is S[];
every(predicate: (value: VariableDeclaration | null, index: number, array: (VariableDeclaration | null)[]) => unknown, thisArg?: any): boolean;
some(predicate: (value: VariableDeclaration | null, index: number, array: (VariableDeclaration | null)[]) => unknown, thisArg?: any): boolean;
forEach(callbackfn: (value: VariableDeclaration | null, index: number, array: (VariableDeclaration | null)[]) => void, thisArg?: any): void;
map<U>(callbackfn: (value: VariableDeclaration | null, index: number, array: (VariableDeclaration | null)[]) => U, thisArg?: any): U[];
filter<S_1 extends VariableDeclaration | null>(predicate: (value: VariableDeclaration | null, index: number, array: (VariableDeclaration | null)[]) => value is S_1, thisArg?: any): S_1[];
filter(predicate: (value: VariableDeclaration | null, index: number, array: (VariableDeclaration | null)[]) => unknown, thisArg?: any): (VariableDeclaration | null)[];
reduce(callbackfn: (previousValue: VariableDeclaration | null, currentValue: VariableDeclaration | null, currentIndex: number, array: (VariableDeclaration | null)[]) => VariableDeclaration | null): VariableDeclaration | null;
reduce(callbackfn: (previousValue: VariableDeclaration | null, currentValue: VariableDeclaration | null, currentIndex: number, array: (VariableDeclaration | null)[]) => VariableDeclaration | null, initialValue: VariableDeclaration | null): VariableDeclaration | null;
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: VariableDeclaration | null, currentIndex: number, array: (VariableDeclaration | null)[]) => U_1, initialValue: U_1): U_1;
reduceRight(callbackfn: (previousValue: VariableDeclaration | null, currentValue: VariableDeclaration | null, currentIndex: number, array: (VariableDeclaration | null)[]) => VariableDeclaration | null): VariableDeclaration | null;
reduceRight(callbackfn: (previousValue: VariableDeclaration | null, currentValue: VariableDeclaration | null, currentIndex: number, array: (VariableDeclaration | null)[]) => VariableDeclaration | null, initialValue: VariableDeclaration | null): VariableDeclaration | null;
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: VariableDeclaration | null, currentIndex: number, array: (VariableDeclaration | null)[]) => U_2, initialValue: U_2): U_2;
find<S_2 extends VariableDeclaration | null>(predicate: (value: VariableDeclaration | null, index: number, obj: (VariableDeclaration | null)[]) => value is S_2, thisArg?: any): S_2 | undefined;
find(predicate: (value: VariableDeclaration | null, index: number, obj: (VariableDeclaration | null)[]) => unknown, thisArg?: any): VariableDeclaration | null | undefined;
findIndex(predicate: (value: VariableDeclaration | null, index: number, obj: (VariableDeclaration | null)[]) => unknown, thisArg?: any): number;
fill(value: VariableDeclaration | null, start?: number | undefined, end?: number | undefined): any;
copyWithin(target: number, start?: number | undefined, end?: number | undefined): any;
entries(): IterableIterator<[number, VariableDeclaration | null]>;
keys(): IterableIterator<number>;
values(): IterableIterator<VariableDeclaration | null>;
includes(searchElement: VariableDeclaration | null, fromIndex?: number | undefined): boolean;
[Symbol.iterator](): IterableIterator<VariableDeclaration | null>;
readonly [Symbol.unscopables]: {
[x: number]: boolean | undefined;
length?: boolean | undefined;
toString?: boolean | undefined;
toLocaleString?: boolean | undefined;
pop?: boolean | undefined;
push?: boolean | undefined;
concat?: boolean | undefined;
join?: boolean | undefined;
reverse?: boolean | undefined;
shift?: boolean | undefined;
slice?: boolean | undefined;
sort?: boolean | undefined;
splice?: boolean | undefined;
unshift?: boolean | undefined;
indexOf?: boolean | undefined;
lastIndexOf?: boolean | undefined;
every?: boolean | undefined;
some?: boolean | undefined;
forEach?: boolean | undefined;
map?: boolean | undefined;
filter?: boolean | undefined;
reduce?: boolean | undefined;
reduceRight?: boolean | undefined;
find?: boolean | undefined;
findIndex?: boolean | undefined;
fill?: boolean | undefined;
copyWithin?: boolean | undefined;
entries?: boolean | undefined;
keys?: boolean | undefined;
values?: boolean | undefined;
includes?: boolean | undefined;
[Symbol.iterator]?: boolean | undefined;
readonly [Symbol.unscopables]?: boolean | undefined;
};
};
isArray(arg: any): arg is any[];
from<T>(arrayLike: ArrayLike<T>): T[];
from<T_1, U_3>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U_3, thisArg?: any): U_3[];
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
from<T_3, U_4>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_4, thisArg?: any): U_4[];
of<T_4>(...items: T_4[]): T_4[];
readonly [Symbol.species]: ArrayConstructor;
};