Class: Puppet::Pops::Model::Positioned

Inherits:
PopsObject
  • Object
show all
Defined in:
lib/puppet/pops/model/model.rb

Overview

A Positioned object has an offset measured in an opaque unit (representing characters) from the start of a source text (starting from 0), and a length measured in the same opaque unit. The resolution of the opaque unit requires the aid of a Locator instance that knows about the measure. This information is stored in the model’s root node - a Program.

The offset and length are optional if the source of the model is not from parsed text.

Method Summary

Methods included from Containment

#eAllContainers, #eAllContents

Methods included from Visitable

#accept