vendor tsgo
This commit is contained in:
36
tools/tsgo/internal/printer/emittextwriter.go
Normal file
36
tools/tsgo/internal/printer/emittextwriter.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user