Skip to content

Introduce com.google.errorprone.ClassName. - #6246

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_997494108
Oct 27, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_997494108

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Introduce com.google.errorprone.ClassName.

ClassName encapsulates a qualified class name (accepting both canonical .-separated and binary $-separated forms) and caches its resolved ClassSymbol, Type, and binary Name across a compilation.

Also cache per-compilation-unit symbol lookups in VisitorState.SharedState so repeated negative lookups within a single file do not re-query Symtab, and add a fallback in VisitorState.getSymbolFromName that completes enclosing classes when resolving a nested class whose outer class has not yet been completed.

`ClassName` encapsulates a qualified class name (accepting both canonical `.`-separated and binary `$`-separated forms) and caches its resolved `ClassSymbol`, `Type`, and binary `Name` across a compilation.

Also cache per-compilation-unit symbol lookups in `VisitorState.SharedState` so repeated negative lookups within a single file do not re-query `Symtab`, and add a fallback in `VisitorState.getSymbolFromName` that completes enclosing classes when resolving a nested class whose outer class has not yet been completed.

PiperOrigin-RevId: 1007921385
@copybara-service
copybara-service Bot merged commit b9eef5a into master Oct 27, 2026
8 checks passed
@copybara-service
copybara-service Bot deleted the test_997494108 branch October 27, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant