Make .properties reconciler aware of document marker
See: https://github.com/spring-projects/sts4/issues/533 Signed-off-by: Kris De Volder <kdevolder@pivotal.io>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
package org.springframework.ide.vscode.java.properties.parser;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.function.Predicate;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -34,7 +35,11 @@ public final class PropertiesAst {
|
||||
public List<Node> getAllNodes() {
|
||||
return nodes;
|
||||
}
|
||||
|
||||
|
||||
public List<Node> getNodes(Predicate<Node> test) {
|
||||
return nodes.stream().filter(test).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves AST nodes of specific type
|
||||
* @param clazz Type of AST nodes
|
||||
|
||||
Reference in New Issue
Block a user