Search in sources :

Example 1 with DependencyConfigurationDslElement

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;
}
Also used : DependencyConfigurationDslElement(com.android.tools.idea.gradle.dsl.parser.dependencies.DependencyConfigurationDslElement) DependenciesDslElement(com.android.tools.idea.gradle.dsl.parser.dependencies.DependenciesDslElement) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

DependenciesDslElement (com.android.tools.idea.gradle.dsl.parser.dependencies.DependenciesDslElement)1 DependencyConfigurationDslElement (com.android.tools.idea.gradle.dsl.parser.dependencies.DependencyConfigurationDslElement)1 NotNull (org.jetbrains.annotations.NotNull)1