1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

remove some prints

This commit is contained in:
Bartek Iwańczuk 2024-12-03 03:38:43 +01:00
parent fb47288f90
commit a15c1165d6
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -43,7 +43,6 @@ export function runPluginRule(fileName, pluginName, ruleName, serializedAst) {
const ctx = new Context(id, fileName);
const rule = op_lint_get_rule(pluginName, ruleName);
console.log(ctx, typeof rule);
const visitor = rule(ctx);
const ast = JSON.parse(serializedAst, (key, value) => {
if (key === "ctxt") {
@ -52,11 +51,8 @@ export function runPluginRule(fileName, pluginName, ruleName, serializedAst) {
return value;
});
console.log("ast", ast);
// console.log("ast", ast);
traverse(ast, visitor);
// console.log("visitor", Object.keys(visitor));
// const visitor = new Visitor();
// visitor.visitProgram(ast);
}
function traverse(ast, visitor, parent = null) {