-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LSP4E] Support separate semantic highlightings for declarations of f…
…unctions, methods, and local variables Change-Id: Iee7252b55810b8691a1b2344593a804a47ab6cbe
- Loading branch information
1 parent
f5322a3
commit 8c78a24
Showing
4 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
lsp/org.eclipse.cdt.lsp.core/src/org/eclipse/cdt/lsp/core/cquery/SymbolRole.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018 Nathan Ridge and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*******************************************************************************/ | ||
|
||
package org.eclipse.cdt.lsp.core.cquery; | ||
|
||
/** | ||
* A class to contain constants that represent different roles | ||
* a symbol can have. | ||
* The constants are used as bit-flags to compose the value of | ||
* HighlightSymbol.role. | ||
*/ | ||
public final class SymbolRole { | ||
public static final int Declaration = 1 << 0; | ||
public static final int Definition = 1 << 1; | ||
public static final int Reference = 1 << 2; | ||
public static final int Read = 1 << 3; | ||
public static final int Write = 1 << 4; | ||
public static final int Call = 1 << 5; | ||
public static final int Dynamic = 1 << 6; | ||
public static final int Address = 1 << 7; | ||
public static final int Implicit = 1 << 8; | ||
} |