Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 549019748
  • Loading branch information
thomasvl authored and swiple-rules-gardener committed Jul 18, 2023
1 parent 371c604 commit 300921b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/test_discoverer/SymbolCollector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ final class SymbolCollector {
// described below.
symbolLoop: for (preciseIdentifier, symbol) in symbolGraph.symbols {
switch symbol.kind.identifier {
case "swift.class":
case .class:
// Keep track of all classes for now; their inheritance relationships will be resolved
// on-demand once we have all the symbol graphs loaded.
possibleTestClasses[preciseIdentifier] = symbol
modulesForClassIdentifiers[preciseIdentifier] = symbolGraph.module.name

case "swift.method":
case .method:
// Swift Package Manager uses the index store to discover tests; index-while-building writes
// a unit-test property for any method that satisfies this method:
// https://github.com/apple/swift/blob/da3856c45b7149730d6e5fdf528ac82b43daccac/lib/Index/IndexSymbol.cpp#L40-L82
Expand Down

1 comment on commit 300921b

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.