parsetestutil

package
v0.0.0-...-7d7180d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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

func MarkSyntheticRecursive(node *ast.Node)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL