Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7c68c200261933fb72dfc00db1503ed4b8ff73e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * Copyright (c) 2013 QNX Software Systems and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 */

package org.eclipse.cdt.ui.text;

/**
 * Interface that must be implemented by contributors to the org.eclipse.cdt.ui.semanticHighlighting extension
 * point.
 *
 * @since 5.6
 */
public interface ISemanticHighlighter {
	/**
	 * Returns <code>true</code> iff the semantic highlighting consumes the semantic token.
	 * <p>
	 * NOTE: Implementors are not allowed to keep a reference on the token or on any object retrieved from the
	 * token.
	 * </p>
	 *
	 * @param token
	 *            the semantic token for a {@link org.eclipse.cdt.core.dom.ast.IASTName}
	 * @return <code>true</code> iff the semantic highlighting consumes the semantic token
	 */
	public boolean consumes(ISemanticToken token);
}

Back to the top