UNPKG

@atomist/sdm-pack-spring

Version:

Atomist software delivery machine extension pack for Spring and Spring Boot applications

26 lines (25 loc) 775 B
import { FileParser, ProjectFile } from "@atomist/automation-client"; import { TreeNode } from "@atomist/tree-path"; /** * FileParser implementation that uses xmldoc library. * Preserves and exposes positions. */ export declare class XmldocFileParser implements FileParser<XmldocTreeNode> { rootName: string; toAst(f: ProjectFile): Promise<XmldocTreeNode>; } /** * Allows further operations specific to XML elements */ export interface XmldocTreeNode extends TreeNode { /** * Value inside the element: Not the same as its value */ innerValue: string; /** * Specialize return type * @return {XmldocTreeNode[]} */ $children: XmldocTreeNode[]; } export declare function isXmldocTreeNode(tn: TreeNode): tn is XmldocTreeNode;