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

Method ApplySubstBase

ast/ast.go:946–954  ·  view source on GitHub ↗

ApplySubstBase returns the result of applying the given substitution.

(s Subst)

Source from the content-addressed store, hash-verified

944
945// ApplySubstBase returns the result of applying the given substitution.
946func (v Variable) ApplySubstBase(s Subst) BaseTerm {
947 if s == nil {
948 return v
949 }
950 if t := s.Get(v); t != nil {
951 return t
952 }
953 return v
954}
955
956// Atom represents an atom (a predicate symbol applied to base term arguments). e.g: parent(A, B)
957type Atom struct {

Callers 1

ApplySubstMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected