-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Can emit group vertex and group event (#67)
- Loading branch information
Showing
5 changed files
with
58 additions
and
1 deletion.
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
41 changes: 41 additions & 0 deletions
41
com.microsoft.java.lsif.core/src/com/microsoft/java/lsif/core/internal/protocol/Group.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,41 @@ | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
|
||
package com.microsoft.java.lsif.core.internal.protocol; | ||
|
||
public class Group extends Vertex { | ||
|
||
public enum ConflictResolution { | ||
TAKEDUMP("takeDump"), TAKEDB("takeDB"); | ||
|
||
private final String resolution; | ||
|
||
private ConflictResolution(String resolution) { | ||
this.resolution = resolution; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.resolution; | ||
} | ||
} | ||
|
||
private String uri; | ||
|
||
private String resolution; | ||
|
||
private String name; | ||
|
||
private String rootUri; | ||
|
||
public Group(String id, String uri, ConflictResolution resolution, String name, String rootUri) { | ||
super(id, Vertex.GROUP); | ||
this.uri = uri; | ||
this.resolution = resolution.toString(); | ||
this.name = name; | ||
this.rootUri = rootUri; | ||
} | ||
|
||
} |
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