use of com.android.tools.idea.gradle.dsl.parser.dependencies.DependencyConfigurationDslElement in project android by JetBrains.
the class GradleDslParser method getClosureElement.
@NotNull
private static GradleDslClosure getClosureElement(@NotNull GradleDslElement parentElement, @NotNull GrClosableBlock closableBlock, @NotNull String propertyName) {
GradleDslClosure closureElement;
if (parentElement.getParent() instanceof DependenciesDslElement) {
closureElement = new DependencyConfigurationDslElement(parentElement, closableBlock, propertyName);
} else {
closureElement = new GradleDslClosure(parentElement, closableBlock, propertyName);
}
parse(closableBlock, closureElement);
return closureElement;
}
Aggregations