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

44 uses

	golang.org/x/mod/modfile (current package)
		rule.go#L50: 	Syntax *FileSyntax
		rule.go#L207: 	if f.Syntax == nil {
		rule.go#L208: 		f.Syntax = new(FileSyntax)
		rule.go#L213: 			Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)),
		rule.go#L217: 		f.Syntax.updateLine(f.Module.Syntax, "module", AutoQuote(path))
		rule.go#L223: 	if f.Syntax == nil {
		rule.go#L224: 		f.Syntax = new(FileSyntax)
		rule.go#L226: 	f.Syntax.Stmt = append(f.Syntax.Stmt, &CommentBlock{
		rule.go#L275: 		Syntax: fs,
		rule.go#L358: 			Filename: f.Syntax.Name,
		rule.go#L367: 			Filename: f.Syntax.Name,
		rule.go#L495: 		replace, wrappederr := parseReplace(f.Syntax.Name, line, verb, args, fix)
		rule.go#L657: 			Filename: f.Syntax.Name,
		rule.go#L1011: 	return Format(f.Syntax), nil
		rule.go#L1064: 	f.Syntax.Cleanup()
		rule.go#L1075: 		} else if f.Syntax == nil {
		rule.go#L1076: 			f.Syntax = new(FileSyntax)
		rule.go#L1080: 			Syntax:  f.Syntax.addLine(hint, "go", version),
		rule.go#L1084: 		f.Syntax.updateLine(f.Go.Syntax, "go", version)
		rule.go#L1118: 			Syntax: f.Syntax.addLine(hint, "toolchain", name),
		rule.go#L1122: 		f.Syntax.updateLine(f.Toolchain.Syntax, "toolchain", name)
		rule.go#L1139: 				f.Syntax.updateLine(g.Syntax, "godebug", key+"="+value)
		rule.go#L1157: 	line := f.Syntax.addLine(nil, "godebug", key+"="+value)
		rule.go#L1178: 				f.Syntax.updateLine(r.Syntax, "require", AutoQuote(path), vers)
		rule.go#L1196: 	line := f.Syntax.addLine(nil, "require", AutoQuote(path), vers)
		rule.go#L1351: 	for i, stmt := range f.Syntax.Stmt {
		rule.go#L1414: 		!hasComments(*f.Syntax.Stmt[lastRequireIndex].Comment())
		rule.go#L1421: 		f.Syntax.Stmt = append(f.Syntax.Stmt, nil)
		rule.go#L1422: 		copy(f.Syntax.Stmt[i+1:], f.Syntax.Stmt[i:])
		rule.go#L1423: 		f.Syntax.Stmt[i] = block
		rule.go#L1428: 		switch stmt := f.Syntax.Stmt[i].(type) {
		rule.go#L1438: 			f.Syntax.Stmt[i] = block
		rule.go#L1453: 			lastDirectIndex = len(f.Syntax.Stmt)
		rule.go#L1557: 	f.Exclude = append(f.Exclude, &Exclude{Mod: module.Version{Path: path, Version: vers}, Syntax: f.Syntax.addLine(hint, "exclude", AutoQuote(path), vers)})
		rule.go#L1572: 	return addReplace(f.Syntax, &f.Replace, oldPath, oldVers, newPath, newVers)
		rule.go#L1640: 		r.Syntax = f.Syntax.addLine(nil, "retract", AutoQuote(vi.Low))
		rule.go#L1642: 		r.Syntax = f.Syntax.addLine(nil, "retract", "[", AutoQuote(vi.Low), ",", AutoQuote(vi.High), "]")
		rule.go#L1674: 		Syntax: f.Syntax.addLine(nil, "tool", path),
		rule.go#L1704: 		Syntax: f.Syntax.addLine(nil, "ignore", path),
		rule.go#L1732: 	for _, stmt := range f.Syntax.Stmt {
		rule.go#L1759: 	removeDups(f.Syntax, &f.Exclude, &f.Replace, &f.Tool, &f.Ignore)