Fix an error being ignored when analyzing typedefs
This commit is contained in:
parent
0a54232e29
commit
b822d57757
|
@ -46,6 +46,7 @@ func (this *Tree) analyzeTypedef (
|
||||||
var err error
|
var err error
|
||||||
definition.Type, err = this.analyzeTypeInternal (
|
definition.Type, err = this.analyzeTypeInternal (
|
||||||
definition.Type, definition, false)
|
definition.Type, definition, false)
|
||||||
|
if err != nil { return nil, err }
|
||||||
|
|
||||||
// assemble constant map
|
// assemble constant map
|
||||||
definition, err = this.assembleTypedefConstantMap(definition)
|
definition, err = this.assembleTypedefConstantMap(definition)
|
||||||
|
@ -76,7 +77,7 @@ func (this *Tree) analyzeTypedef (
|
||||||
definition.Constants[index] = constant
|
definition.Constants[index] = constant
|
||||||
}
|
}
|
||||||
|
|
||||||
return definition, err
|
return definition, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *Tree) analyzeConstantDeclaration (
|
func (this *Tree) analyzeConstantDeclaration (
|
||||||
|
|
Loading…
Reference in New Issue