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

improvements #8

Open
2 tasks
vivi365 opened this issue Jun 12, 2024 · 1 comment
Open
2 tasks

improvements #8

vivi365 opened this issue Jun 12, 2024 · 1 comment

Comments

@vivi365
Copy link
Contributor

vivi365 commented Jun 12, 2024

  • parsing: avoid parsing the same file with same settings across different analysers (fset)
  • reflect: make type checking approach more accurate by fixing importing issue of external dependencies. PR reflection: method invocation approach. #5 wip.
@vivi365 vivi365 changed the title [improvenents] improvenents Jun 12, 2024
@vivi365 vivi365 changed the title improvenents improvement Jun 12, 2024
@vivi365 vivi365 changed the title improvement improvements Jun 15, 2024
@vivi365
Copy link
Contributor Author

vivi365 commented Jun 15, 2024

  • parser.go: Change single case switches to direct type assertion.
ast.Inspect(node, func(n ast.Node) bool {
switch x := n.(type) {
  case *ast.CallExpr:

// can be something like
  if fn, ok := n.(*ast.CallExpr); ok { ..
  }
}

@vivi365 vivi365 mentioned this issue Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant