One fence sequence over a node scope, and inline templates reject the folder sigils
This commit is contained in:
@@ -62,19 +62,13 @@ func loadData(sources []dataSource) (map[string]node, error) {
|
||||
if len(root) == 0 {
|
||||
return nil, fmt.Errorf("no .json data found")
|
||||
}
|
||||
// The fences here and the scoped ones [Generator.NewTemplate] runs are one
|
||||
// sequence split across two entry points; a new fence lands a twin below and
|
||||
// in NewTemplate (see its comment for the one omission, checkNoCycles).
|
||||
if err := linkRefs(root); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := checkNoCycles(root); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := checkRepeatReach(root); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if err := checkBoundLevelsHeld(root); err != nil {
|
||||
if err := checkScope(treeScope(root)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return root, nil
|
||||
|
||||
Reference in New Issue
Block a user