Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function body of braceless function used as return type #9

Open
Gama11 opened this issue Feb 5, 2017 · 1 comment
Open

Function body of braceless function used as return type #9

Gama11 opened this issue Feb 5, 2017 · 1 comment
Assignees
Labels

Comments

@Gama11
Copy link
Member

Gama11 commented Feb 5, 2017

(default codedox settings)

In Haxe, it's perfectly acceptable to have function declarations without braces. In these cases, codedox seems to think the function body is the return type:

class Test {
	public static function main() {}

	static function noBraces(i:Int) return switch(i) {
		case 0: "0";
		case 1: "1";
		case _: "something else";
	}
}
@wiggin77
Copy link
Member

wiggin77 commented Feb 6, 2017

Replacing my regex function parsing with Simn's haxeparser should help here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants