Reference Source Test
public class | source

InvalidCodeLogger

You can directly use an instance of this class. invalidCodeLogger

logger for invalid code which can not be parsed with esdoc2.

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

_logs: *[]

Method Summary

Public Methods
public

show(filePath: string, node: ASTNode)

show log.

public

showError(error: Error)

show error log.

public

showFile(filePath: string, error: Error)

show log.

Public Constructors

public constructor() source

Private Members

private _logs: *[] source

Public Methods

public show(filePath: string, node: ASTNode) source

show log.

Params:

NameTypeAttributeDescription
filePath string

invalid code in this file.

node ASTNode
  • optional

fail parsing node.

public showError(error: Error) source

show error log.

Params:

NameTypeAttributeDescription
error Error

target error.

public showFile(filePath: string, error: Error) source

show log.

Params:

NameTypeAttributeDescription
filePath string

invalid code in this file.

error Error

error object.