UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

19 lines 1.05 kB
import type { RawInlineOverride } from "./types.js"; /** * Extracts raw inline config overrides from a solc AST for a single source * file. */ export declare function extractInlineConfigFromAst(ast: unknown, inputSourceName: string, contractNames: Set<string>): RawInlineOverride[]; /** * Extracts the documentation text from a FunctionDefinition's documentation * field, which can be a StructuredDocumentation node, a plain string, or null. */ export declare function extractDocText(doc: unknown): string | undefined; /** * Parses a single line from a NatSpec comment and returns a RawInlineOverride * if the line contains a valid inline config directive. The line must start * with either "hardhat-config:" or "forge-config:", followed by a key=value pair. * Returns undefined if the line does not contain an inline config directive. */ export declare function parseInlineConfigLine(line: string, inputSourceName: string, contractName: string, functionName: string): RawInlineOverride | undefined; //# sourceMappingURL=parsing.d.ts.map