@Override
	public void decode(Decoder decoder, PcodeFactory pfactory) throws DecoderException {
		long id = 0;
		for (;;) {
			int attribId = decoder.getNextAttributeId();
			if (attribId == 0) {
				break;
			}
			if (attribId == AttributeId.ATTRIB_ID.id()) {
				id = decoder.readUnsignedInteger();
				break;
			}
		}
		decoder.rewindAttributes();
		super.decode(decoder, pfactory);
		datatype = pfactory.getDataTypeManager().findBaseType(getText(), id);
	}
@return the data-type associated with this token
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/ClangTypeToken.java