Added permissions to analyzed sections
This commit is contained in:
parent
07540e0abc
commit
e2947eab8c
@ -187,7 +187,7 @@ func (analyzer *AnalysisOperation) resolvePrimitive (
|
|||||||
case "U16": section = &PrimitiveU16
|
case "U16": section = &PrimitiveU16
|
||||||
case "U32": section = &PrimitiveU32
|
case "U32": section = &PrimitiveU32
|
||||||
case "U64": section = &PrimitiveU64
|
case "U64": section = &PrimitiveU64
|
||||||
case "Objt": section = &PrimitiveObjt
|
case "Obj": section = &PrimitiveObj
|
||||||
case "Face": section = &PrimitiveFace
|
case "Face": section = &PrimitiveFace
|
||||||
case "Func": section = &PrimitiveFunc
|
case "Func": section = &PrimitiveFunc
|
||||||
case "String": section = &BuiltInString
|
case "String": section = &BuiltInString
|
||||||
|
|||||||
@ -12,7 +12,7 @@ var PrimitiveU8 = createPrimitive("U8", Type {})
|
|||||||
var PrimitiveU16 = createPrimitive("U16", Type {})
|
var PrimitiveU16 = createPrimitive("U16", Type {})
|
||||||
var PrimitiveU32 = createPrimitive("U32", Type {})
|
var PrimitiveU32 = createPrimitive("U32", Type {})
|
||||||
var PrimitiveU64 = createPrimitive("U64", Type {})
|
var PrimitiveU64 = createPrimitive("U64", Type {})
|
||||||
var PrimitiveObjt = createPrimitive("Objt", Type {})
|
var PrimitiveObj = createPrimitive("Obj", Type {})
|
||||||
var PrimitiveFace = createPrimitive("Face", Type {})
|
var PrimitiveFace = createPrimitive("Face", Type {})
|
||||||
var PrimitiveFunc = createPrimitive("Func", Type {})
|
var PrimitiveFunc = createPrimitive("Func", Type {})
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package analyzer
|
|||||||
import "os"
|
import "os"
|
||||||
import "sort"
|
import "sort"
|
||||||
import "path/filepath"
|
import "path/filepath"
|
||||||
|
import "git.tebibyte.media/arf/arf/types"
|
||||||
|
|
||||||
// locator uniquely identifies a section in the section table.
|
// locator uniquely identifies a section in the section table.
|
||||||
type locator struct {
|
type locator struct {
|
||||||
@ -77,6 +78,7 @@ type Section interface {
|
|||||||
Complete () (complete bool)
|
Complete () (complete bool)
|
||||||
ModulePath () (path string)
|
ModulePath () (path string)
|
||||||
ModuleName () (path string)
|
ModuleName () (path string)
|
||||||
|
Permission () (permission types.Permission)
|
||||||
locator () (where locator)
|
locator () (where locator)
|
||||||
|
|
||||||
// Must be implemented by each individual section
|
// Must be implemented by each individual section
|
||||||