You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the complete inactive private async function during target filtering #950
Target filtering recognizes fun and pub, but omits the existing async fun declaration prefix. For a private multiline async function on an inactive target, preprocessing removes only the signature line and leaves the body at top level. A declaration that should be excluded then breaks parsing.
Observed exit 1, E2001 at line 3 column 5: unexpected token at top level, found Return. The entire Windows function should be excluded. Replacing the declaration prefix with pub async fun passes; an included Linux async fun also passes check.
Scope
Recognize the existing private async declaration as a complete target-controlled item. Preserve body/comment nesting, byte positions and logical newlines. This does not implement async LLVM lowering or change target-condition syntax.
Related #441 introduced async fun wherever an ordinary function declaration is valid. #645 and #729 cover separate comment-state cases around target attributes.
Difficulty: easy; a bounded declaration-recognition regression using the existing item consumer.
Completion criteria
Inactive private async functions are removed through their closing brace, including nested bodies.
Included private/public async and existing ordinary declarations retain their check/AST behavior.
LF/CRLF/CR cases preserve source positions and later diagnostics.
Activity
Extend Whale scalars and harden std, diagnostics and CI (#970)