decomp: allow renaming args in behaviors (#115)

This commit is contained in:
Tyler Wilding 2022-10-02 20:23:27 -04:00 committed by GitHub
parent 98b7f309ac
commit f5037493b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,10 @@ export function getSymbolsArgumentInfo(
line: string,
symbol: string
): ArgumentMeta | undefined {
const isArgument = line.includes("defun") || line.includes("defmethod");
const isArgument =
line.includes("defun") ||
line.includes("defmethod") ||
line.includes("defbehavior");
// TODO - 'new' method handling
const isMethod = line.includes("defmethod"); // if it's a method, make the first arg be `obj`
// If it's an argument, we have to figure out the index