Add external value to func and data sections
This commit is contained in:
parent
5520994072
commit
f5ad652d68
@ -9,6 +9,7 @@ type DataSection struct {
|
||||
sectionBase
|
||||
what Type
|
||||
argument Argument
|
||||
external bool
|
||||
}
|
||||
|
||||
// ToString returns all data stored within the data section, in string form.
|
||||
@ -64,7 +65,10 @@ func (analyzer analysisOperation) analyzeDataSection () (
|
||||
return
|
||||
}
|
||||
|
||||
if !inputSection.Argument().Nil() {
|
||||
if inputSection.External() {
|
||||
outputSection.external = true
|
||||
|
||||
} else if !inputSection.Argument().Nil() {
|
||||
outputSection.argument,
|
||||
err = analyzer.analyzeArgument(inputSection.Argument())
|
||||
if err != nil { return }
|
||||
|
@ -3,8 +3,7 @@ package analyzer
|
||||
// FuncSection represents a type definition section.
|
||||
type FuncSection struct {
|
||||
sectionBase
|
||||
|
||||
|
||||
external bool
|
||||
}
|
||||
|
||||
func (analyzer *analysisOperation) analyzeFuncSection () (
|
||||
|
Reference in New Issue
Block a user