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

[WIP] x/format: GopClassSource #2020

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

visualfc
Copy link
Member

@visualfc visualfc commented Nov 21, 2024

type ClassConfig struct {
	PkgPath   string            // Go+ class project pkgpath, empty if normal .gox class. (optional)
	ClassName string            // project or class name.
	Project   bool              // true means ClassName is project.
	Comments  bool              // true means parse comments.
	Gopt      map[string]string // Gopt_ function name mapping. (optional)
	Overload  map[string]string // Overload function name mapping. (optional)
}
// GopClassSource format Go+ source to Go+ class source.
func GopClassSource(src []byte, cfg *ClassConfig, filename ...string) (ret []byte, err error) {

Copy link

codecov bot commented Nov 21, 2024

Codecov Report

Attention: Patch coverage is 96.89441% with 5 lines in your changes missing coverage. Please review.

Project coverage is 93.43%. Comparing base (17784d7) to head (5147ee0).

Files with missing lines Patch % Lines
x/format/gopstyle.go 96.21% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2020      +/-   ##
==========================================
+ Coverage   93.34%   93.43%   +0.08%     
==========================================
  Files          42       42              
  Lines       11734    11892     +158     
==========================================
+ Hits        10953    11111     +158     
+ Misses        624      623       -1     
- Partials      157      158       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

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

Successfully merging this pull request may close these issues.

1 participant