-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator fragment for textmate grammars and Xbase LSP server infra #2969
Conversation
Signed-off-by: Sebastian Zarnekow <[email protected]>
0e568f5
to
dc737fb
Compare
org.eclipse.xtend.core/xtend-gen/org/eclipse/xtend/core/macro/TransformationContextImpl.java
Outdated
Show resolved
Hide resolved
Also: - Optionally write project configuration from StandaloneBuilder It includes a content hash for change tracking of jars - Fixed typos in local variable names - Remove duplicated tests and obsolete test-data - Expose mechanism to clear the cache for classpath-based jvm types - Optionally allow to obtain the location URI from a class mirror Signed-off-by: Sebastian Zarnekow <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@szarnekow I only left a few minor comments.
@@ -224,17 +278,17 @@ private StandaloneBuilder initBuilder(ILanguageConfiguration config) { | |||
} | |||
|
|||
private StandaloneBuilder initBuilder(ILanguageConfiguration config, String... srcDirs) { | |||
List<String> patthes = new ArrayList<String>(); | |||
List<String> pathes = new ArrayList<String>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nip: shouldn't it be paths
?
Also later
@@ -1,5 +1,5 @@ | |||
/******************************************************************************* | |||
* Copyright (c) 2020 itemis AG (http://www.itemis.eu) and others. | |||
* Copyright (c) 2020, 2023 itemis AG (http://www.itemis.eu) and others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't it be 2024?
@@ -192,6 +212,14 @@ public StandaloneBuilder() { | |||
public void setIncrementalBuild(boolean enable) { | |||
incremental = enable; | |||
} | |||
|
|||
public void setClasspathConfigurationLocation(String location, String key, String outputDirectory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we use since annotations here at all?
@@ -1,15 +1,13 @@ | |||
source.. = src/,\ | |||
src-gen/,\ | |||
src-no-jdt/,\ | |||
src-standalone/ | |||
src-no-jdt/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The final "/" shouldn't be needed, should it?
} | ||
|
||
@Deprecated | ||
protected BinaryClassMirror(BinaryClass binaryClass, ITypeFactory<BinaryClass, JvmDeclaredType> typeFactory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a comment about deprecation
public class HoverIdeStrings extends UIStrings { | ||
|
||
@Override | ||
public String typeParameters(Iterable<? extends JvmTypeParameter> typeParams) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we already have something similar in our code base?
} | ||
}; | ||
StringBuilder result = new StringBuilder(250); | ||
if (typeArgumentCount != constructorTypeArgumentCount) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, don't we already have something similar?
The two loops also seem to contain some duplicated code.
typeProvider.clearCache(); | ||
} | ||
JvmTypeChangeDispatcher dispatcher = JvmTypeChangeDispatcher.findResourceChangeDispatcher(resourceSet); | ||
EObject dummy = EcoreFactory.eINSTANCE.createEObject(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the meaning of this dummy used with eNotify?
No description provided.