golang.org/x/mod/modfile.FileSyntax.addLine (method)

8 uses

	golang.org/x/mod/modfile (current package)
		read.go#L104: func (x *FileSyntax) addLine(hint Expr, tokens ...string) *Line {
		rule.go#L102: 			Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)),
		rule.go#L728: 			Syntax:  f.Syntax.addLine(hint, "go", version),
		rule.go#L759: 	line := f.Syntax.addLine(nil, "require", AutoQuote(path), vers)
		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#L892: 		f.Replace = append(f.Replace, &Replace{Old: old, New: new, Syntax: f.Syntax.addLine(hint, tokens...)})
		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), "]")