Skip to content

Migrate from variableType(Matcher) to variableType(TypePredicate)#5593

Merged
copybara-service[bot] merged 1 commit intomasterfrom
test_883105208
Mar 13, 2026
Merged

Migrate from variableType(Matcher) to variableType(TypePredicate)#5593
copybara-service[bot] merged 1 commit intomasterfrom
test_883105208

Conversation

@copybara-service
Copy link
Contributor

Migrate from variableType(Matcher) to variableType(TypePredicate)

Matchers.variableType(Matcher) uses VariableTree#getType to match variable types, which own't work for lambda parameters after the change.

Matchers.variableType(TypePredicate) tests the inferred type of the variable, instead of going through the AST node for the type.

`Matchers.variableType(Matcher)` uses `VariableTree#getType` to match variable types, which own't work for lambda parameters after the change.

`Matchers.variableType(TypePredicate)` tests the inferred type of the variable, instead of going through the AST node for the type.

PiperOrigin-RevId: 883260142
@copybara-service copybara-service bot merged commit 230fe2e into master Mar 13, 2026
@copybara-service copybara-service bot deleted the test_883105208 branch March 13, 2026 18:32
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