Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
parse(code: string, uri: string): Method[] {
return this.getTests(
Engine.parseCode(code, {
ast: {
withPositions: true,
withSource: true,
},
parser: {
debug: false,
extractDoc: true,
suppressErrors: true,
},
lexer: {
all_tokens: true,
comment_tokens: true,
mode_eval: true,
asp_tags: true,
short_tags: true,
},
parse(code: string, uri: string): TestNode[] {
return this.getTestNodes(
Engine.parseCode(code, {
ast: {
withPositions: true,
withSource: true,
},
parser: {
debug: false,
extractDoc: true,
suppressErrors: true,
},
lexer: {
all_tokens: true,
comment_tokens: true,
mode_eval: true,
asp_tags: true,
short_tags: true,
},