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"
|
2019-07-11 19:05:55 -06:00
|
|
|
"fmt"
|
2019-05-23 13:03:11 -06:00
|
|
|
"go/token"
|
|
|
|
)
|
|
|
|
|
|
|
|
// sumFile holds all of the information we know about a sum file.
|
|
|
|
type sumFile struct {
|
|
|
|
fileBase
|
|
|
|
}
|
|
|
|
|
2019-07-11 19:05:55 -06:00
|
|
|
func (*sumFile) GetToken(context.Context) (*token.File, error) {
|
|
|
|
return nil, fmt.Errorf("GetToken: not implemented")
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*sumFile) setContent(content []byte) {}
|
|
|
|
func (*sumFile) filename() string { return "" }
|
|
|
|
func (*sumFile) isActive() bool { return false }
|