Static Method Summary
Static Public Methods | ||
public static |
parseParam(typeText: string, paramName: string, paramDesc: string): ParsedParam parse param text and build formatted result. |
|
public static |
parseParamValue(value: string, type: boolean, name: boolean, desc: boolean): {typeText: string, paramName: string, paramDesc: string} parse param value. |
Static Public Methods
public static parseParam(typeText: string, paramName: string, paramDesc: string): ParsedParam source
parse param text and build formatted result.
Example:
let value = '{number} param - this is number param';
let {typeText, paramName, paramDesc} = ParamParser.parseParamValue(value);
let result = ParamParser.parseParam(typeText, paramName, paramDesc);
public static parseParamValue(value: string, type: boolean, name: boolean, desc: boolean): {typeText: string, paramName: string, paramDesc: string} source
parse param value.
Example:
let value = '{number} param - this is number param';
let {typeText, paramName, paramDesc} = ParamParser.parseParamValue(value);
let value = '{number} this is number return value';
let {typeText, paramDesc} = ParamParser.parseParamValue(value, true, false, true);
let value = '{number}';
let {typeText} = ParamParser.parseParamValue(value, true, false, false);