Something went wrong. Try again.
🚀 Grammar-Aware Code Formatter: Structure through separation (supports Go, JavaScript, TypeScript, JSX, and TSX)
go formatter code-formatter javascript typescript jsx tsx
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132package engine
import "strings"
type LineEvent struct { Content string TrimmedContent string StatementType string IsTopLevel bool IsScoped bool IsStartLine bool HasASTInfo bool IsClosingBrace bool IsOpeningBrace bool IsCaseLabel bool IsContinuation bool IsCommentOnly bool IsBlank bool InRawString bool IsPackageDecl bool}
func NewLineEvent(content string) LineEvent { trimmed := strings.TrimSpace(content)
return LineEvent{ Content: content, TrimmedContent: trimmed, IsBlank: trimmed == "", }}