sicua
Version:
A tool for analyzing project structure and dependencies
28 lines (27 loc) • 801 B
TypeScript
import ts from "typescript";
export declare class ValueEvaluator {
/**
* Evaluates an expression to get its value
*/
static evaluateExpression(node: ts.Expression): any;
/**
* Evaluates a binary expression
*/
private static evaluateBinaryExpression;
/**
* Evaluates a prefix unary expression
*/
private static evaluatePrefixUnaryExpression;
/**
* Gets initial value from a variable declaration
*/
static getInitialValue(node: ts.VariableDeclaration): any;
/**
* Gets default value from a parameter declaration
*/
static getDefaultParameterValue(node: ts.ParameterDeclaration): any;
/**
* Gets enum member value
*/
static getEnumMemberValue(node: ts.EnumMember): number | string | undefined;
}