SourceInfo
class SourceInfo extends Message
Source information collected at parse time.
Generated from protobuf message google.api.expr.v1beta1.SourceInfo
Methods
Constructor.
The location name. All position information attached to an expression is relative to this location.
The location name. All position information attached to an expression is relative to this location.
Monotonically increasing list of character offsets where newlines appear.
Monotonically increasing list of character offsets where newlines appear.
A map from the parse node id (e.g. Expr.id
) to the character offset
within source.
A map from the parse node id (e.g. Expr.id
) to the character offset
within source.
Details
at line 65
__construct(array $data = NULL)
Constructor.
at line 79
string
getLocation()
The location name. All position information attached to an expression is relative to this location.
The location could be a file, UI element, or similar. For example,
acme/app/AnvilPolicy.cel
.
Generated from protobuf field string location = 2;
at line 94
$this
setLocation(string $var)
The location name. All position information attached to an expression is relative to this location.
The location could be a file, UI element, or similar. For example,
acme/app/AnvilPolicy.cel
.
Generated from protobuf field string location = 2;
at line 111
RepeatedField
getLineOffsets()
Monotonically increasing list of character offsets where newlines appear.
The line number of a given position is the index i
where for a given
id
the line_offsets[i] < id_positions[id] < line_offsets[i+1]
. The
column may be derivd from id_positions[id] - line_offsets[i]
.
Generated from protobuf field repeated int32 line_offsets = 3;
at line 126
$this
setLineOffsets(int[]|RepeatedField $var)
Monotonically increasing list of character offsets where newlines appear.
The line number of a given position is the index i
where for a given
id
the line_offsets[i] < id_positions[id] < line_offsets[i+1]
. The
column may be derivd from id_positions[id] - line_offsets[i]
.
Generated from protobuf field repeated int32 line_offsets = 3;
at line 141
MapField
getPositions()
A map from the parse node id (e.g. Expr.id
) to the character offset
within source.
Generated from protobuf field map<int32, int32> positions = 4;
at line 154
$this
setPositions(array|MapField $var)
A map from the parse node id (e.g. Expr.id
) to the character offset
within source.
Generated from protobuf field map<int32, int32> positions = 4;