Skip to content

Commit

Permalink
chore: remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dOrgJelli committed Jul 13, 2023
1 parent 76847b7 commit ce4a9c1
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,18 @@ export function moduleNeedsTypes(): AbiTransforms {
return {
enter: {
ModuleDefinition: (def: ModuleDefinition) => {
console.log("ENTER", def.type);
state.moduleDefinition = def;
state.needsTypes = false;
return def;
},
MethodDefinition: (def: MethodDefinition) => {
console.log("METHOD", def.name);
if (def.arguments && def.arguments.length > 0) {
console.log("NEEDS cause args");
state.needsTypes = true;
}

if (def.return) {
const returnType = def.return.type;
if (!isBaseType(returnType) && !isBuiltInType(returnType)) {
console.log("NEEDS cause ret");
state.needsTypes = true;
}
}
Expand All @@ -42,7 +38,6 @@ export function moduleNeedsTypes(): AbiTransforms {
},
leave: {
ModuleDefinition: (def: ModuleDefinition) => {
console.log("LEAVE", def.name);
const needsTypes = state.needsTypes;
state.moduleDefinition = undefined;
state.needsTypes = undefined;
Expand Down

0 comments on commit ce4a9c1

Please sign in to comment.