go/src/go/parser/parser_test.go

var validFiles

func TestParse(t *testing.T) {}

func nameFilter(filename string) bool {}

func dirFilter(f fs.FileInfo) bool {}

func TestParseFile(t *testing.T) {}

func TestParseExprFrom(t *testing.T) {}

func TestParseDir(t *testing.T) {}

func TestIssue42951(t *testing.T) {}

func TestParseExpr(t *testing.T) {}

func TestColonEqualsScope(t *testing.T) {}

func TestVarScope(t *testing.T) {}

func TestObjects(t *testing.T) {}

func TestUnresolved(t *testing.T) {}

func TestCommentGroups(t *testing.T) {}

func getField(file *ast.File, fieldname string) *ast.Field {}

// Don't use ast.CommentGroup.Text() - we want to see exact comment text.
func commentText(c *ast.CommentGroup) string {}

func checkFieldComments(t *testing.T, file *ast.File, fieldname, lead, line string) {}

func TestLeadAndLineComments(t *testing.T) {}

// TestIssue9979 verifies that empty statements are contained within their enclosing blocks.
func TestIssue9979(t *testing.T) {}

func TestFileStartEndPos(t *testing.T) {}

// TestIncompleteSelection ensures that an incomplete selector
// expression is parsed as a (blank) *ast.SelectorExpr, not a
// *ast.BadExpr.
func TestIncompleteSelection(t *testing.T) {}

func TestLastLineComment(t *testing.T) {}

var parseDepthTests

// split splits pre«mid»post into pre, mid, post.
// If the string does not have that form, split returns x, "", "".
func split(x string) (pre, mid, post string) {}

func TestParseDepthLimit(t *testing.T) {}

func TestScopeDepthLimit(t *testing.T) {}

// proposal go.dev/issue/50429
func TestRangePos(t *testing.T) {}

// TestIssue59180 tests that line number overflow doesn't cause an infinite loop.
func TestIssue59180(t *testing.T) {}

func TestGoVersion(t *testing.T) {}

func TestIssue57490(t *testing.T) {}

func TestParseTypeParamsAsParenExpr(t *testing.T) {}