Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDiagnostics ¶
func CheckDiagnostics(t *testing.T, file *ast.SourceFile)
Asserts that the given file has no parse diagnostics.
func CheckDiagnosticsMessage ¶
func CheckDiagnosticsMessage(t *testing.T, file *ast.SourceFile, message string)
Asserts that the given file has no parse diagnostics and asserts the given message.
func MarkSyntheticRecursive ¶
Sets the Loc of the given node and every Node in its subtree to an undefined TextRange (-1,-1).
func ParseTypeScript ¶
func ParseTypeScript(text string, jsx bool) *ast.SourceFile
Simplifies parsing an input string into a SourceFile for testing purposes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.