Generator fragment for textmate grammars and Xbase LSP server infra#2969
Generator fragment for textmate grammars and Xbase LSP server infra#2969
Conversation
Signed-off-by: Sebastian Zarnekow <sebastian.zarnekow@gmail.com>
0e568f5 to
dc737fb
Compare
org.eclipse.xtend.core/xtend-gen/org/eclipse/xtend/core/macro/TransformationContextImpl.java
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 <sebastian.zarnekow@gmail.com>
LorenzoBettini
left a comment
There was a problem hiding this comment.
@szarnekow I only left a few minor comments.
|
|
||
| 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.
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.
shouldn't it be 2024?
| incremental = enable; | ||
| } | ||
|
|
||
| public void setClasspathConfigurationLocation(String location, String key, String outputDirectory) { |
There was a problem hiding this comment.
Do we use since annotations here at all?
| src-gen/,\ | ||
| src-no-jdt/,\ | ||
| src-standalone/ | ||
| src-no-jdt/ |
There was a problem hiding this comment.
The final "/" shouldn't be needed, should it?
| } | ||
|
|
||
| @Deprecated | ||
| protected BinaryClassMirror(BinaryClass binaryClass, ITypeFactory<BinaryClass, JvmDeclaredType> typeFactory) { |
There was a problem hiding this comment.
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.
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.
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.
What is the meaning of this dummy used with eNotify?
No description provided.