always_inline and struct problem
I'm trying to create a transpiler and I've created an architecutre in which every parsed token of the AST is repersented as
ShaderOperation
But I get the error:
I need the arguments
property to be a list of ShaderOperations because AST nodes are usually nested inside each other5 Replies
Here you are borrowing the list of tokens and shader operations, did you mean to move them?
if it’s an issue with inlining (I honestly haven’t fully read the code or error), just know that
@always_inline
and @no_inline
both work as the names imply
if i’m understanding correctly the function on line 93 as no inline may fix itThere is a struct on line 93, no function. Can structs be
@always_inline
?I’m not sure? it may be the initializer then
Yeah, nevermind, even though it took a significant amount of time, I re-wrote the transpiler's architecture and now it works