MCPcopy
hub / github.com/google/mangle / BaseTerm

Interface BaseTerm

ast/ast.go:138–148  ·  view source on GitHub ↗

BaseTerm represents a subset of terms: constant, variables or ApplyFn. Every BaseTerm will implement Term.

Source from the content-addressed store, hash-verified

136// BaseTerm represents a subset of terms: constant, variables or ApplyFn.
137// Every BaseTerm will implement Term.
138type BaseTerm interface {
139 Term
140
141 // Marker method.
142 isBaseTerm()
143
144 Hash() uint64
145
146 // Returns a new base term.
147 ApplySubstBase(s Subst) BaseTerm
148}
149
150// Subst is the interface for substitutions.
151// This interface provides mapping from a variable to BaseTerm.

Callers 13

makeHeadFunction · 0.65
AddMethod · 0.65
RemoveMethod · 0.65
ContainsMethod · 0.65
GetFactsMethod · 0.65
AddMethod · 0.65
RemoveMethod · 0.65
ContainsMethod · 0.65
feasibleAlternativesMethod · 0.65
checkFunApplyFunction · 0.65
ApplySubstMethod · 0.65
ApplySubstMethod · 0.65

Implementers 3

Constantast/ast.go
Variableast/ast.go
ApplyFnast/ast.go

Calls

no outgoing calls

Tested by

no test coverage detected