Removed the last traces of the word "initialization"
This commit is contained in:
parent
5384dff15b
commit
21ea27791d
@ -58,7 +58,7 @@ func (parser *ParsingOperation) parseDataSection () (
|
||||
|
||||
// otherwise, parse initialization values
|
||||
parser.previousToken()
|
||||
section.value, err = parser.parseInitializationValues(0)
|
||||
section.value, err = parser.parseDefaultValues(0)
|
||||
if err != nil { return }
|
||||
} else {
|
||||
section.value, err = parser.parseArgument()
|
||||
|
@ -77,7 +77,7 @@ func (parser *ParsingOperation) parseEnumMembers (
|
||||
err = parser.nextToken()
|
||||
if err != nil { return }
|
||||
|
||||
member.value, err = parser.parseInitializationValues(1)
|
||||
member.value, err = parser.parseDefaultValues(1)
|
||||
into.members = append(into.members, member)
|
||||
if err != nil { return }
|
||||
} else {
|
||||
|
@ -200,7 +200,7 @@ func (parser *ParsingOperation) parseFuncArguments (
|
||||
if err != nil { return }
|
||||
|
||||
output.value, err =
|
||||
parser.parseInitializationValues(1)
|
||||
parser.parseDefaultValues(1)
|
||||
into.outputs = append(into.outputs, output)
|
||||
if err != nil { return }
|
||||
} else {
|
||||
|
@ -16,7 +16,7 @@ import "git.tebibyte.media/arf/arf/infoerr"
|
||||
// phrase. It checks for an indent greater than the indent of the aforementioned
|
||||
// data section or set phrase (passed through baseIndent), and if there is,
|
||||
// it parses initialization values.
|
||||
func (parser *ParsingOperation) parsedefaultValues (
|
||||
func (parser *ParsingOperation) parseDefaultValues (
|
||||
baseIndent int,
|
||||
) (
|
||||
argument Argument,
|
||||
@ -107,7 +107,7 @@ func (parser *ParsingOperation) parseObjectdefaultValues () (
|
||||
err = parser.nextToken(lexer.TokenKindIndent)
|
||||
if err != nil { return }
|
||||
|
||||
value, err = parser.parsedefaultValues(baseIndent)
|
||||
value, err = parser.parseDefaultValues(baseIndent)
|
||||
defaultValues.attributes[name] = value
|
||||
if err != nil { return }
|
||||
|
||||
|
@ -216,7 +216,7 @@ func (parser *ParsingOperation) parseBlockLevelPhrase (
|
||||
// if this is a set phrase, parse initialization values under it
|
||||
if phrase.kind == PhraseKindAssign {
|
||||
var values Argument
|
||||
values, err = parser.parseInitializationValues(indent)
|
||||
values, err = parser.parseDefaultValues(indent)
|
||||
|
||||
if values.kind != ArgumentKindNil {
|
||||
phrase.arguments = append(phrase.arguments, values)
|
||||
|
@ -37,7 +37,7 @@ func (parser *ParsingOperation) parseTypeSection () (
|
||||
err = parser.nextToken()
|
||||
if err != nil { return }
|
||||
|
||||
section.value, err = parser.parseInitializationValues(0)
|
||||
section.value, err = parser.parseDefaultValues(0)
|
||||
if err != nil { return }
|
||||
} else {
|
||||
section.value, err = parser.parseArgument()
|
||||
|
Reference in New Issue
Block a user