diff options
author | perissology <perissology@protonmail.com> | 2018-06-27 22:26:12 +0800 |
---|---|---|
committer | perissology <perissology@protonmail.com> | 2018-06-27 22:26:12 +0800 |
commit | e0a2afc068a48f58786bc3a3952ffe024edc037c (patch) | |
tree | 1a8b3723d96399ce9d1e4537554e0d08e045ba9e /packages/sol-cov/src/collect_coverage_entries.ts | |
parent | 92cb9c3807917049b392d86160e7d88f73a5c7b4 (diff) | |
download | dexon-0x-contracts-e0a2afc068a48f58786bc3a3952ffe024edc037c.tar.gz dexon-0x-contracts-e0a2afc068a48f58786bc3a3952ffe024edc037c.tar.zst dexon-0x-contracts-e0a2afc068a48f58786bc3a3952ffe024edc037c.zip |
rename function
Diffstat (limited to 'packages/sol-cov/src/collect_coverage_entries.ts')
-rw-r--r-- | packages/sol-cov/src/collect_coverage_entries.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-cov/src/collect_coverage_entries.ts b/packages/sol-cov/src/collect_coverage_entries.ts index 703af3099..bdbcd613e 100644 --- a/packages/sol-cov/src/collect_coverage_entries.ts +++ b/packages/sol-cov/src/collect_coverage_entries.ts @@ -5,6 +5,8 @@ import * as parser from 'solidity-parser-antlr'; import { ASTVisitor, CoverageEntriesDescription } from './ast_visitor'; import { getLocationByOffset } from './source_maps'; +const IGNORE_RE = /\/\*\s*solcov\s+ignore\s+next\s*\*\/\s*/gm; + // Parsing source code for each transaction/code is slow and therefore we cache it const coverageEntriesBySourceHash: { [sourceHash: string]: CoverageEntriesDescription } = {}; @@ -22,8 +24,6 @@ export const collectCoverageEntries = (contractSource: string) => { return coverageEntriesDescription; }; -const IGNORE_RE = /\/\*\s*solcov\s+ignore\s+next\s*\*\/\s*/gm; - // Gather the start index of all code blocks preceeded by "/* solcov ignore next */" function gatherRangesToIgnore(contractSource: string): number[] { const ignoreRangesStart = []; |