func (r *Rule) Insert(f *File) {
	// TODO(jayconrod): should rules always be inserted at the end? Should there
	// be some sort order?
	var stmt []bzl.Expr
	if f.function == nil {
		stmt = f.File.Stmt
	} else {
		stmt = f.function.stmt.Body
	}
	r.index = len(stmt)
	r.inserted = true
	f.Rules = append(f.Rules, r)
}
func (r *Rule) Insert(f *File) {
	
	
	var stmt []bzl.Expr
	if f.function == nil {
		stmt = f.File.Stmt
	} else {
		stmt = f.function.stmt.Body
	}
	r.index = len(stmt)
	r.inserted = true
	f.Rules = append(f.Rules, r)
}
func ( r * Rule ) Insert ( f * File ) { // TODO(jayconrod): should rules always be inserted at the end? Should there // be some sort order? var stmt [ ] bzl . Expr if f . function == nil { stmt = f . File . Stmt } else { stmt = f . function . stmt . Body } r . index = len ( stmt ) r . inserted = true f . Rules = append ( f . Rules , r ) }
// Insert marks this statement for insertion at the end of the file. Multiple
// statements will be inserted in the order Insert is called.
Insert marks this statement for insertion at the end of the file . Multiple statements will be inserted in the order Insert is called .