golang.org/x/mod/modfile.File.Syntax (field)

34 uses

	golang.org/x/mod/modfile (current package)
		rule.go#L45: 	Syntax *FileSyntax
		rule.go#L96: 	if f.Syntax == nil {
		rule.go#L97: 		f.Syntax = new(FileSyntax)
		rule.go#L102: 			Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)),
		rule.go#L106: 		f.Syntax.updateLine(f.Module.Syntax, "module", AutoQuote(path))
		rule.go#L112: 	if f.Syntax == nil {
		rule.go#L113: 		f.Syntax = new(FileSyntax)
		rule.go#L115: 	f.Syntax.Stmt = append(f.Syntax.Stmt, &CommentBlock{
		rule.go#L151: 		Syntax: fs,
		rule.go#L215: 			Filename: f.Syntax.Name,
		rule.go#L224: 			Filename: f.Syntax.Name,
		rule.go#L670: 	return Format(f.Syntax), nil
		rule.go#L714: 	f.Syntax.Cleanup()
		rule.go#L728: 			Syntax:  f.Syntax.addLine(hint, "go", version),
		rule.go#L732: 		f.Syntax.updateLine(f.Go.Syntax, "go", version)
		rule.go#L743: 				f.Syntax.updateLine(r.Syntax, "require", AutoQuote(path), vers)
		rule.go#L746: 				f.Syntax.removeLine(r.Syntax)
		rule.go#L759: 	line := f.Syntax.addLine(nil, "require", AutoQuote(path), vers)
		rule.go#L782: 	for _, stmt := range f.Syntax.Stmt {
		rule.go#L817: 	f.Syntax.Stmt = newStmts
		rule.go#L828: 			f.Syntax.removeLine(r.Syntax)
		rule.go#L846: 	f.Exclude = append(f.Exclude, &Exclude{Mod: module.Version{Path: path, Version: vers}, Syntax: f.Syntax.addLine(hint, "exclude", AutoQuote(path), vers)})
		rule.go#L853: 			f.Syntax.removeLine(x.Syntax)
		rule.go#L879: 				f.Syntax.updateLine(r.Syntax, tokens...)
		rule.go#L884: 			f.Syntax.removeLine(r.Syntax)
		rule.go#L892: 		f.Replace = append(f.Replace, &Replace{Old: old, New: new, Syntax: f.Syntax.addLine(hint, tokens...)})
		rule.go#L900: 			f.Syntax.removeLine(r.Syntax)
		rule.go#L912: 		r.Syntax = f.Syntax.addLine(nil, "retract", AutoQuote(vi.Low))
		rule.go#L914: 		r.Syntax = f.Syntax.addLine(nil, "retract", "[", AutoQuote(vi.Low), ",", AutoQuote(vi.High), "]")
		rule.go#L928: 			f.Syntax.removeLine(r.Syntax)
		rule.go#L938: 	for _, stmt := range f.Syntax.Stmt {
		rule.go#L1007: 	for _, stmt := range f.Syntax.Stmt {
		rule.go#L1027: 	f.Syntax.Stmt = stmts