-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2334 optimize prefix matcher for Doctrine querybuilder parameter, to…
… reduce conflicting PhpStorm implementation
- Loading branch information
Showing
5 changed files
with
153 additions
and
62 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
17 changes: 17 additions & 0 deletions
17
...lt/idea/symfony2plugin/doctrine/querybuilder/dict/QueryBuilderCompletionContribution.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,17 @@ | ||
package fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.dict; | ||
|
||
import org.apache.commons.lang3.builder.HashCodeBuilder; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* @author Daniel Espendiller <[email protected]> | ||
*/ | ||
public record QueryBuilderCompletionContribution(@NotNull QueryBuilderCompletionContributionType type, @NotNull String prefix) { | ||
@Override | ||
public int hashCode() { | ||
return new HashCodeBuilder() | ||
.append(this.type) | ||
.append(this.prefix) | ||
.toHashCode(); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...dea/symfony2plugin/doctrine/querybuilder/dict/QueryBuilderCompletionContributionType.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,9 @@ | ||
package fr.adrienbrault.idea.symfony2plugin.doctrine.querybuilder.dict; | ||
|
||
/** | ||
* @author Daniel Espendiller <[email protected]> | ||
*/ | ||
public enum QueryBuilderCompletionContributionType { | ||
PROPERTY, | ||
FUNCTION | ||
} |
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