check for concreteness in specialized types
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -54,6 +54,10 @@ func (c *fsContext) New(result bkgw.Reference) *FS {
|
||||
return fs
|
||||
}
|
||||
|
||||
func (c *fsContext) Contains(v *compiler.Value) bool {
|
||||
return v.LookupPath(fsIDPath).Exists()
|
||||
}
|
||||
|
||||
func (c *fsContext) FromValue(v *compiler.Value) (*FS, error) {
|
||||
c.l.RLock()
|
||||
defer c.l.RUnlock()
|
||||
|
Reference in New Issue
Block a user