Lines Matching defs:compiler
6 package compiler package
113 type compiler struct { struct
114 desc *ast.Description
115 target *targets.Target
116 eh ast.ErrorHandler
117 errors int
118 warnings []warn
119 ptrSize uint64
121 unsupported map[string]bool
122 resources map[string]*ast.Resource
123 typedefs map[string]*ast.TypeDef
124 structs map[string]*ast.Struct
125 intFlags map[string]*ast.IntFlags
126 strFlags map[string]*ast.StrFlags
127 used map[string]bool // contains used structs/resources
128 usedTypedefs map[string]bool
130 structDescs map[prog.StructKey]*prog.StructDesc
131 structNodes map[*prog.StructDesc]*ast.Struct
132 structVarlen map[string]bool
140 func (comp *compiler) error(pos ast.Pos, msg string, args ...interface{}) {
145 func (comp *compiler) warning(pos ast.Pos, msg string, args ...interface{}) {
149 func (comp *compiler) structIsVarlen(name string) bool {
172 func (comp *compiler) parseUnionAttrs(n *ast.Struct) (varlen bool, size uint64) {
191 func (comp *compiler) parseStructAttrs(n *ast.Struct) (packed bool, size, align uint64) {
230 func (comp *compiler) parseSizeAttr(attr *ast.Type) uint64 {
247 func (comp *compiler) getTypeDesc(t *ast.Type) *typeDesc {
263 func (comp *compiler) getArgsBase(t *ast.Type, field string, dir prog.Dir, isArg bool) (
283 func (comp *compiler) foreachType(n0 ast.Node,
308 func (comp *compiler) foreachSubType(t *ast.Type, isArg bool,
327 func (comp *compiler) parseIntType(name string) (size uint64, bigEndian bool) {