FIR checker: introduce FunctionChecker alias

and use it to add support diagnostic FUNCTION_DECLARATION_WITH_NO_NAME
This commit is contained in:
Jinseong Jeon
2021-01-15 23:21:24 -08:00
committed by Mikhail Glukhikh
parent 40bec30393
commit de592f4f67
17 changed files with 66 additions and 52 deletions
@@ -3,18 +3,18 @@ annotation class a
interface A
interface B
fun () {}
fun A.() {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun A.()<!> {}
@a fun () {}
fun @a A.() {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>@a fun ()<!> {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun @a A.()<!> {}
class Outer {
fun () {}
fun B.() {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun ()<!> {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun B.()<!> {}
@a fun () {}
fun @a A.() {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>@a fun ()<!> {}
<!FUNCTION_DECLARATION_WITH_NO_NAME!>fun @a A.()<!> {}
}
fun outerFun() {