Skip to content

update#1017

Open
xuhuanzy wants to merge 23 commits intoEmmyLuaLs:mainfrom
xuhuanzy:fix
Open

update#1017
xuhuanzy wants to merge 23 commits intoEmmyLuaLs:mainfrom
xuhuanzy:fix

Conversation

@xuhuanzy
Copy link
Copy Markdown
Member

@xuhuanzy xuhuanzy commented Apr 5, 2026

  1. refactor(visibility): improve type visibility #1004
  2. constructor特性第四个参数从return_self更改为return_mode以支持返回值使用泛型

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces significant changes to the EmmyLua analysis engine, including a new module visibility system, improved workspace path configuration, and a new diagnostic check for inconsistent type access modifiers. The export tag has been removed in favor of a more robust visibility system. I have reviewed the changes and suggest removing the commented-out code block in crates/emmylua_code_analysis/src/compilation/analyzer/doc/property_tags.rs to maintain code cleanliness.

Comment on lines +28 to +38
// 返回变量不能附加可见性
// LuaExpr::NameExpr(name_expr) => {
// let name = name_expr.get_name_text()?;
// let tree = analyzer
// .db
// .get_decl_index()
// .get_decl_tree(&analyzer.file_id)?;
// let decl = tree.find_local_decl(&name, name_expr.get_position())?;

// Some(LuaSemanticDeclId::LuaDecl(decl.get_id()))
// }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This block of code is commented out. If it's no longer needed, it should be removed to improve code clarity.

@xuhuanzy xuhuanzy linked an issue Apr 6, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant