Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Context

Hierarchy

  • Context

Index

Properties

data

data: any

dir

dir: string

watermarks

watermarks: Watermarks

writer

writer: FileWriter

Methods

classForPercent

  • classForPercent(type: keyof Watermarks, value: number): string
  • returns the coverage class given a coverage types and a percentage value.

    Parameters

    Returns string

getSource

  • getSource(filepath: string): string
  • returns the source code for the specified file path or throws if the source could not be found.

    Parameters

    • filepath: string

    Returns string

getTree

  • Parameters

    Returns Tree

getVisitor

  • getVisitor<N>(visitor: Partial<Visitor<N>>): Visitor<N>
  • returns a full visitor given a partial one.

    Type parameters

    • N: Node = Node

    Parameters

    Returns Visitor<N>

getWriter

  • returns a FileWriter implementation for reporting use. Also available as the writer property on the context.

    Returns FileWriter

getXmlWriter

  • returns an XML writer for the supplied content writer

    Parameters

    Returns XmlWriter

sourceFinder

  • sourceFinder(filepath: string): string
  • Parameters

    • filepath: string

    Returns string