import { InvokeCallable, ObjectMethodInvoke, ObjectPropertyAccess } from './'; import { CommentableImpl, ICommentable } from '../code-fragments'; import { Parameter } from '../parameter'; import { Block, Statement } from '../statements'; import { ThingSymbol } from '../symbol'; export declare class Expression extends CommentableImpl implements ICommentable { protected readonly _isExpression = true; prop(property: string): ObjectPropertyAccess; callMethod(method: string, ...args: Expression[]): ObjectMethodInvoke; call(...args: Expression[]): InvokeCallable; asStmt(): Statement; } export declare class SymbolReference extends Expression { readonly symbol: ThingSymbol; constructor(symbol: ThingSymbol); } /** * An anonymous implementation of an interface. * * In JavaScript, an object literal with a couple of methods/properties on it. * * (Not currently tracking the implemented type) */ export declare class AnonymousInterfaceImplementation extends Expression { readonly members: Record; constructor(members: Record); } /** * A Lambda function */ export declare class Lambda extends Expression { readonly params: Parameter[]; readonly body: Block | Expression; constructor(params: Parameter[], body: Statement | Expression); } /** * Splat expression (...xyz) */ export declare class Splat extends Expression { readonly _operand_: Expression; constructor(_operand_: Expression); }