@Override
	public ProgramLocation[] getCommentFieldLocations() {
		ProgramLocation[] locs = new ProgramLocation[8];

		Address a = addr(0x100101c);
		CodeUnit cu = program.getListing().getCodeUnitAt(a);
		String[] comment = cu.getCommentAsArray(CommentType.PRE);
		locs[0] = new CommentFieldLocation(program, a, null, comment, CommentType.PRE, 0, 5);

		a = addr(0x10030e4);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.PRE);
		locs[1] = new CommentFieldLocation(program, a, null, comment, CommentType.PRE, 0, 5);

		a = addr(0x100352f);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.EOL);
		locs[2] = new CommentFieldLocation(program, a, null, comment, CommentType.EOL, 0, 5);

		a = addr(0x10030e4);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.EOL);
		locs[3] = new CommentFieldLocation(program, a, null, comment, CommentType.EOL, 1, 5);

		a = addr(0x10075ff);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.POST);
		locs[4] = new PostCommentFieldLocation(program, a, null, comment, 0, 5);

		a = addr(0x1003cf3);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.POST);
		locs[5] = new PostCommentFieldLocation(program, a, null, comment, 0, 0);

		a = addr(0x10030f0);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.PLATE);
		locs[6] = new PlateFieldLocation(program, a, null, 0, 5, comment, -1);

		a = addr(0x1003efc);
		cu = program.getListing().getCodeUnitAt(a);
		comment = cu.getCommentAsArray(CommentType.PLATE);
		locs[7] = new PlateFieldLocation(program, a, null, 0, 3, comment, -1);

// TODO add test for repeatable comments.

		return locs;
	}
Toggle open composite locations within Code Browser
which have locations generated
@param cb
Ghidra/Features/Base/src/test/java/ghidra/app/SampleLocationGenerator.java