2019-06-21 15:00:02 -06:00
|
|
|
// Copyright 2019 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2019-05-23 13:03:11 -06:00
|
|
|
package cache
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"go/token"
|
2019-08-06 13:13:11 -06:00
|
|
|
|
|
|
|
errors "golang.org/x/xerrors"
|
2019-05-23 13:03:11 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
// modFile holds all of the information we know about a mod file.
|
|
|
|
type modFile struct {
|
|
|
|
fileBase
|
|
|
|
}
|
|
|
|
|
2019-07-11 19:05:55 -06:00
|
|
|
func (*modFile) GetToken(context.Context) (*token.File, error) {
|
2019-08-06 13:13:11 -06:00
|
|
|
return nil, errors.Errorf("GetToken: not implemented")
|
2019-07-11 19:05:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func (*modFile) setContent(content []byte) {}
|
|
|
|
func (*modFile) filename() string { return "" }
|
|
|
|
func (*modFile) isActive() bool { return false }
|