int getTokenIndex(FieldLocation location) {

		int n = 0;
		for (int i = 0; i < tokenList.size(); i++) {

			if (location.col == n) {
				// this is needed because tokens can have zero-width so
				return i;
			}

			ClangToken token = tokenList.get(i);
			int length = n + token.getText().length();
			if (length > location.col) {
				return i;
			}
			n = length;
		}

		return tokenList.size() - 1; // at the end--return the last token index
	}
Returns the token that is completely after the token that contains the given column location.
In this case, 'contains' means any position <b>inside</b> of a token, but not at the
beginning. So, if the column location is in the middle of a token, it will return the index
of next token. But if the column location is at the beginning (just before the start) of a
token, it will return the index of that token.

@param location containing the column at which to beginning searching
@return the next token starting after the given column
Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/component/ClangTextField.java