Lines Matching defs:scope

151      * Returns the scope for the lint job
153 * @return the scope, never null
275 * @param scope the scope of the analysis; detectors with a wider scope will
276 * not be run. If null, the scope will be inferred from the files.
278 public void analyze(@NonNull List<File> files, @Nullable EnumSet<Scope> scope) {
280 mScope = scope;
292 // Infer the scope
317 // Specified a full project: just use the full project scope
353 // During the extra phases, we might be narrowing the scope, and setting it in the
354 // scope field such that detectors asking about the available scope will get the
355 // correct result. However, we need to restore it to the original scope when this
366 // Narrow the scope down to the set of scopes requested by
971 // single-file issue, so it shows up on both scope lists:
1089 private void runClassDetectors(Scope scope, List<ClassEntry> entries,
1091 if (mScope.contains(scope)) {
1092 List<Detector> classDetectors = mScopeDetectors.get(scope);
1149 classNode, scope == Scope.JAVA_LIBRARIES /*fromLibrary*/,
1725 * @param scope the scope to be revisited. This must be a subset of the
1726 * current scope ({@link #getScope()}, and it is just a performance hint;
1731 public void requestRepeat(@NonNull Detector detector, @Nullable EnumSet<Scope> scope) {
1737 if (scope != null) {
1739 mRepeatScope = scope;
1742 mRepeatScope.addAll(scope);
1855 * @param scope the AST node containing the issue
1859 public boolean isSuppressed(@NonNull Issue issue, @Nullable Node scope) {
1860 while (scope != null) {
1861 Class<? extends Node> type = scope.getClass();
1866 VariableDefinition declaration = (VariableDefinition) scope;
1873 MethodDeclaration declaration = (MethodDeclaration) scope;
1880 ConstructorDeclaration declaration = (ConstructorDeclaration) scope;
1886 ClassDeclaration declaration = (ClassDeclaration) scope;
1892 scope = scope.getParent();