use of com.mindbright.asn1.ASN1Object in project titan.EclipsePlug-ins by eclipse.
the class ObjectClassSyntax_Parser method parseObject.
private ASN1Object parseObject() {
ASN1Object object = null;
if (mBlock != null) {
final Asn1Parser parser = BlockLevelTokenStreamTracker.getASN1ParserForBlock(mBlock, internalIndex);
if (parser != null) {
object = parser.pr_special_Object().object;
internalIndex += parser.nof_consumed_tokens();
final List<SyntacticErrorStorage> errors = parser.getErrorStorage();
if (null != errors && !errors.isEmpty()) {
for (int i = 0; i < errors.size(); i++) {
ParserMarkerSupport.createOnTheFlyMixedMarker((IFile) mBlock.getLocation().getFile(), errors.get(i), IMarker.SEVERITY_ERROR);
}
}
}
}
return object;
}
use of com.mindbright.asn1.ASN1Object in project titan.EclipsePlug-ins by eclipse.
the class ReferencedObject method getRefdLast.
/**
* Returns the ASN.1 object referred last on the chain of references.
*
* @param timestamp
* the time stamp of the actual semantic check cycle.
*
* @return the ASN.1 object referred last on the chain of references.
*/
public Object_Definition getRefdLast(final CompilationTimeStamp timestamp) {
final IReferenceChain referenceChain = ReferenceChain.getInstance(CIRCULAROBJECTREFERENCE, true);
ASN1Object object = this;
while (object instanceof ReferencedObject && !object.getIsErroneous(timestamp)) {
object = ((ReferencedObject) object).getRefd(timestamp, referenceChain);
}
referenceChain.release();
return (Object_Definition) object;
}
Aggregations