vendor tsgo

This commit is contained in:
2026-07-09 16:50:43 -04:00
parent c06ea2e5a4
commit 98978e4930
5804 changed files with 1556156 additions and 101 deletions

View File

@@ -0,0 +1,36 @@
package printer
import (
"github.com/microsoft/typescript-go/internal/ast"
"github.com/microsoft/typescript-go/internal/core"
)
// Externally opaque interface for printing text
type EmitTextWriter interface {
Write(s string)
WriteTrailingSemicolon(text string)
WriteComment(text string)
WriteKeyword(text string)
WriteOperator(text string)
WritePunctuation(text string)
WriteSpace(text string)
WriteStringLiteral(text string)
WriteParameter(text string)
WriteProperty(text string)
WriteSymbol(text string, symbol *ast.Symbol)
WriteLine()
WriteLineForce(force bool)
IncreaseIndent()
DecreaseIndent()
Clear()
String() string
RawWrite(s string)
WriteLiteral(s string)
GetTextPos() int
GetLine() int
GetColumn() core.UTF16Offset
GetIndent() int
IsAtStartOfLine() bool
HasTrailingComment() bool
HasTrailingWhitespace() bool
}