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
|
sectionBase
|
||||||
what Type
|
what Type
|
||||||
argument Argument
|
argument Argument
|
||||||
|
external bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// ToString returns all data stored within the data section, in string form.
|
// ToString returns all data stored within the data section, in string form.
|
||||||
@ -64,7 +65,10 @@ func (analyzer analysisOperation) analyzeDataSection () (
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if !inputSection.Argument().Nil() {
|
if inputSection.External() {
|
||||||
|
outputSection.external = true
|
||||||
|
|
||||||
|
} else if !inputSection.Argument().Nil() {
|
||||||
outputSection.argument,
|
outputSection.argument,
|
||||||
err = analyzer.analyzeArgument(inputSection.Argument())
|
err = analyzer.analyzeArgument(inputSection.Argument())
|
||||||
if err != nil { return }
|
if err != nil { return }
|
||||||
|
@ -3,8 +3,7 @@ package analyzer
|
|||||||
// FuncSection represents a type definition section.
|
// FuncSection represents a type definition section.
|
||||||
type FuncSection struct {
|
type FuncSection struct {
|
||||||
sectionBase
|
sectionBase
|
||||||
|
external bool
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (analyzer *analysisOperation) analyzeFuncSection () (
|
func (analyzer *analysisOperation) analyzeFuncSection () (
|
||||||
|
Reference in New Issue
Block a user