public void setChannelNameForValue(int channelValue, String name) {
		if (channelValue >= channelValueToNameList.size()) {
			Utils.setSize(channelValueToNameList, channelValue + 1);
		}

		String prevChannel = channelValueToNameList.get(channelValue);
		if (prevChannel == null) {
			channelValueToNameList.set(channelValue, name);
		}
	}
Sets the channel name associated with a particular channel value.

<p>
If a name has already been assigned to the channel with constant value
{@code channelValue}, this method does nothing.</p>

@param channelValue The constant value for the channel.
@param name The channel name.
tool/src/org/antlr/v4/tool/Grammar.java