summaryrefslogtreecommitdiff
path: root/vendor/github.com/openshift/imagebuilder/dockerfile/parser
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-24 05:43:44 -0400
committerGitHub <noreply@github.com>2020-10-24 05:43:44 -0400
commit6fa6470d24231dccafbf4396e7cb798a906af522 (patch)
treee6c083579f03a298f1e393e6943d5dd3d783e4ee /vendor/github.com/openshift/imagebuilder/dockerfile/parser
parent050dcadf69dfe34986015ef14a99002617acd71a (diff)
parent22b1d10d31dfa31da14171c4eebd599dcd4523fc (diff)
downloadpodman-6fa6470d24231dccafbf4396e7cb798a906af522.tar.gz
podman-6fa6470d24231dccafbf4396e7cb798a906af522.tar.bz2
podman-6fa6470d24231dccafbf4396e7cb798a906af522.zip
Merge pull request #8116 from containers/dependabot/go_modules/github.com/containers/buildah-1.16.5
Bump github.com/containers/buildah from 1.16.4 to 1.16.5
Diffstat (limited to 'vendor/github.com/openshift/imagebuilder/dockerfile/parser')
-rw-r--r--vendor/github.com/openshift/imagebuilder/dockerfile/parser/parser.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/openshift/imagebuilder/dockerfile/parser/parser.go b/vendor/github.com/openshift/imagebuilder/dockerfile/parser/parser.go
index 0223963e1..b3f4ff4f6 100644
--- a/vendor/github.com/openshift/imagebuilder/dockerfile/parser/parser.go
+++ b/vendor/github.com/openshift/imagebuilder/dockerfile/parser/parser.go
@@ -12,8 +12,8 @@ import (
"strings"
"unicode"
- "github.com/openshift/imagebuilder/dockerfile/command"
"github.com/docker/docker/pkg/system"
+ "github.com/openshift/imagebuilder/dockerfile/command"
"github.com/pkg/errors"
)
@@ -37,7 +37,7 @@ type Node struct {
Original string // original line used before parsing
Flags []string // only top Node should have this set
StartLine int // the line in the original dockerfile where the node begins
- endLine int // the line in the original dockerfile where the node ends
+ EndLine int // the line in the original dockerfile where the node ends
}
// Dump dumps the AST defined by `node` as a list of sexps.
@@ -67,7 +67,7 @@ func (node *Node) Dump() string {
func (node *Node) lines(start, end int) {
node.StartLine = start
- node.endLine = end
+ node.EndLine = end
}
// AddChild adds a new child node, and updates line information
@@ -76,7 +76,7 @@ func (node *Node) AddChild(child *Node, startLine, endLine int) {
if node.StartLine < 0 {
node.StartLine = startLine
}
- node.endLine = endLine
+ node.EndLine = endLine
node.Children = append(node.Children, child)
}