From 477daf416805633d02c6d387be26bee6ed747ebe Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 16 Mar 2018 16:54:48 +0100 Subject: Add function docs --- packages/deployer/src/utils/compiler.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'packages/deployer/src/utils/compiler.ts') diff --git a/packages/deployer/src/utils/compiler.ts b/packages/deployer/src/utils/compiler.ts index 1d21d7d31..d8b5f78c9 100644 --- a/packages/deployer/src/utils/compiler.ts +++ b/packages/deployer/src/utils/compiler.ts @@ -77,6 +77,11 @@ export function getNormalizedErrMsg(errMsg: string): string { return normalizedErrMsg; } +/** + * Parses the contract source code and extracts the dendencies + * @param source Contract source code + * @return List of dependendencies + */ export function parseDependencies(source: string): string[] { // TODO: Use a proper parser const IMPORT_REGEX = /(import\s)/; -- cgit v1.2.3