Constructors
constructor
- new Code(code: string, commentDelim: string): Code
- new Code(code: string[], commentDelim: string): Code
Parameters
code: string
commentDelim: string
Parameters
code: string[]
commentDelim: string
Methods
extractCode
- extractCode(withComments?: boolean): string
Parameters
withComments: boolean = false
Returns string
trimComments
- trimComments(inLines: string[], delim: string): CodeLine[]
Parameters
inLines: string[]
delim: string
All newlines are \n