Env is the environment for type checking. The Env is comprised of a container, type provider, declarations, and other related objects which can be used to assist with type-checking.
| 69 | // The Env is comprised of a container, type provider, declarations, and other related objects |
| 70 | // which can be used to assist with type-checking. |
| 71 | type Env struct { |
| 72 | container *containers.Container |
| 73 | provider types.Provider |
| 74 | declarations *Scopes |
| 75 | aggLitElemType aggregateLiteralElementType |
| 76 | filteredOverloadIDs map[string]struct{} |
| 77 | jsonFieldNames bool |
| 78 | } |
| 79 | |
| 80 | // NewEnv returns a new *Env with the given parameters. |
| 81 | func NewEnv(container *containers.Container, provider types.Provider, opts ...Option) (*Env, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected