CodeQL library for Go
codeql/go-all 0.7.15-dev (changelog, source)
Search

Class StringOps::ConcatenationOperand

An operand in a string concatenation.

See ConcatenationElement for more information.

Import path

import semmle.go.StringOps

Direct supertypes

Indirect supertypes

Known direct subtypes

Inherited predicates

asNode

Gets the data-flow node corresponding to this concatenation element, if any.

from ConcatenationElement
getALeaf

Gets a leaf in the concatenation tree that this element is the root of.

from ConcatenationElement
getAnOperand

Gets an operand of this string concatenation.

from ConcatenationElement
getConcatenationRoot

Gets the root of the concatenation tree to which this element belongs.

from ConcatenationElement
getFirstLeaf

Gets the first leaf in this concatenation tree.

from ConcatenationElement
getFirstOperand

Gets the first operand of this string concatenation.

from ConcatenationElement
getLastLeaf

Gets the last leaf in this concatenation tree.

from ConcatenationElement
getLastOperand

Gets the last operand of this string concatenation.

from ConcatenationElement
getNumOperand

Gets the number of operands of this string concatenation.

from ConcatenationElement
getOperand

Gets the nth operand of this string concatenation.

from ConcatenationElement
getStringValue

Gets the string value of this concatenation element if it is a constant.

from ConcatenationElement
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from ConcatenationElement
toString

Gets a textual representation of this concatenation element.

from ConcatenationElement