Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674044072
Change-Id: I25c46328340e8e560f46bb25e5c57ebc53e0b3b4
  • Loading branch information
lauraharker authored and copybara-github committed Sep 12, 2024
1 parent e798e8f commit 044f90d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions common/third_party/tsetse/util/absolute_matcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,13 @@ export class AbsoluteMatcher {
debugLog(() => `got FQN ${fqn}`);

// Name-based check: `getFullyQualifiedName` returns `"filename".foo.bar` or
// just `foo.bar` if the symbol is ambient. The check here should consider
// both cases.
if (!fqn.endsWith('".' + this.bannedName) && fqn !== this.bannedName) {
// just `foo.bar` or `global.foo.bar` if the symbol is ambient. The check
// here should consider all three cases.
if (
!fqn.endsWith('".' + this.bannedName) &&
fqn !== this.bannedName &&
fqn !== 'global.' + this.bannedName
) {
debugLog(() => `FQN ${fqn} doesn't match name ${this.bannedName}`);
return false;
}
Expand Down

0 comments on commit 044f90d

Please sign in to comment.