File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
crates/emmylua_code_analysis Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 425425 "description" : " preferred-local-alias" ,
426426 "type" : " string" ,
427427 "const" : " preferred-local-alias"
428+ },
429+ {
430+ "description" : " readonly" ,
431+ "type" : " string" ,
432+ "const" : " read-only"
428433 }
429434 ]
430435 },
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ impl Checker for ReadOnlyChecker {
1717 for ast_node in root. descendants :: < LuaAst > ( ) {
1818 match ast_node {
1919 LuaAst :: LuaAssignStat ( assign_stat) => {
20- check_assignt_stat ( context, semantic_model, & assign_stat) ;
20+ check_assign_stat ( context, semantic_model, & assign_stat) ;
2121 }
2222 // need check?
2323 LuaAst :: LuaFuncStat ( _) => { }
@@ -53,7 +53,7 @@ fn check_and_report_semantic_id(
5353 Some ( ( ) )
5454}
5555
56- fn check_assignt_stat (
56+ fn check_assign_stat (
5757 context : & mut DiagnosticContext ,
5858 semantic_model : & SemanticModel ,
5959 assign_stat : & LuaAssignStat ,
You can’t perform that action at this time.
0 commit comments