public TemplateParameter convertToTemplate() {
if(attribs != null) {
for (int i = attribs.size()-1; i >= 0 ; i--) {
LexElement attribToken = attribs.get(i);
TypeModifierKinds modifier = assertNotNull(determineTypeModifier(attribToken.type));
ref = concludeNode(srBounds(attribToken.getStartPos(), ref.getEndPos(),
new RefTypeModifier(modifier, ref, false)));
}
}
if(defId == null && couldHaveBeenParsedAsId(ref)) {
defId = convertRefIdToDef(ref);