Skip to content

Commit 66d267e

Browse files
authored
Spelling driver (#42516)
* spelling: associated Signed-off-by: Josh Soref <[email protected]> * spelling: change Signed-off-by: Josh Soref <[email protected]> * spelling: declaration Signed-off-by: Josh Soref <[email protected]> * spelling: dependents Signed-off-by: Josh Soref <[email protected]> * spelling: deterministically Signed-off-by: Josh Soref <[email protected]> * spelling: embedded Signed-off-by: Josh Soref <[email protected]> * spelling: exclude Signed-off-by: Josh Soref <[email protected]> * spelling: filesystem Signed-off-by: Josh Soref <[email protected]> * spelling: given Signed-off-by: Josh Soref <[email protected]> * spelling: grained Signed-off-by: Josh Soref <[email protected]> * spelling: incrementality Signed-off-by: Josh Soref <[email protected]> * spelling: invoke Signed-off-by: Josh Soref <[email protected]> * spelling: locals Signed-off-by: Josh Soref <[email protected]> * spelling: preexisting Signed-off-by: Josh Soref <[email protected]> * spelling: should Signed-off-by: Josh Soref <[email protected]> * spelling: supplementary Signed-off-by: Josh Soref <[email protected]> * spelling: suppress Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent 0da2562 commit 66d267e

File tree

9 files changed

+59
-59
lines changed

9 files changed

+59
-59
lines changed

include/swift/Driver/FineGrainedDependencyDriverGraph.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class ModuleDepGraph {
368368
/// Integrate the \p integrand, a node that represents a Decl in the swiftDeps
369369
/// file being integrated. \p preexistingNodeInPlace holds the node
370370
/// representing the same Decl that already exists, if there is one. \p
371-
/// prexisintExpat holds a node with the same key that already exists, but was
371+
/// preexistingExpat holds a node with the same key that already exists, but was
372372
/// not known to reside in any swiftDeps file. Return a bool indicating if
373373
/// this node represents a change that must be propagated, and the integrated
374374
/// ModuleDepGraphNode.
@@ -448,7 +448,7 @@ class ModuleDepGraph {
448448
std::vector<ModuleDepGraphNode *> &foundDependents,
449449
ModuleDepGraphNode *definition);
450450

451-
/// Givien a set of nodes, return the set of swiftDeps for the jobs those
451+
/// Given a set of nodes, return the set of swiftDeps for the jobs those
452452
/// nodes are in.
453453
std::vector<std::string>
454454
computeSwiftDepsFromNodes(ArrayRef<const ModuleDepGraphNode *> nodes) const;

include/swift/Driver/Job.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class CommandOutput {
195195
/// Assuming (and asserting) that there are one or more input pairs, associate
196196
/// an additional output named \p OutputFilename of type \p type with the
197197
/// first primary input. If the provided \p type is the primary output type,
198-
/// overwrite the existing entry assocaited with the first primary input.
198+
/// overwrite the existing entry associated with the first primary input.
199199
void setAdditionalOutputForType(file_types::ID type,
200200
StringRef OutputFilename);
201201

lib/Driver/Compilation.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ namespace driver {
902902
}
903903

904904
const Optional<std::pair<bool, bool>> shouldSchedAndIsCascading =
905-
computeShouldInitiallyScheduleJobAndDependendents(cmd);
905+
computeShouldInitiallyScheduleJobAndDependents(cmd);
906906
if (!shouldSchedAndIsCascading)
907907
return getEveryCompileJob(); // Load error, just run them all
908908
const bool &shouldSchedule = shouldSchedAndIsCascading->first;
@@ -934,7 +934,7 @@ namespace driver {
934934
/// the job is cascading. Or if there was a dependency-read error, return
935935
/// \c None to indicate don't-know.
936936
Optional<std::pair<bool, bool>>
937-
computeShouldInitiallyScheduleJobAndDependendents(const Job *Cmd) {
937+
computeShouldInitiallyScheduleJobAndDependents(const Job *Cmd) {
938938
auto CondAndHasDepsIfNoError =
939939
loadDependenciesAndComputeCondition(Cmd);
940940
if (!CondAndHasDepsIfNoError)
@@ -1148,7 +1148,7 @@ namespace driver {
11481148

11491149
/// Create \c NumberOfParallelCommands batches and assign each job to a
11501150
/// batch either filling each partition in order or, if seeded with a
1151-
/// nonzero value, pseudo-randomly (but determinstically and nearly-evenly).
1151+
/// nonzero value, pseudo-randomly (but deterministically and nearly-evenly).
11521152
void partitionIntoBatches(std::vector<const Job *> Batchable,
11531153
BatchPartition &Partition) {
11541154
if (Comp.getShowJobLifecycle()) {
@@ -1447,7 +1447,7 @@ namespace driver {
14471447
/// \c loadDependenciesAndComputeCondition .
14481448
/// Then, the cascading predicate is returned from
14491449
/// \c isCompileJobInitiallyNeededForDependencyBasedIncrementalCompilation.
1450-
/// Then, in \c computeShouldInitiallyScheduleJobAndDependendents
1450+
/// Then, in \c computeShouldInitiallyScheduleJobAndDependents
14511451
/// if the job needs a cascading build, it's dependents will be scheduled
14521452
/// immediately. After the job finishes, it's dependencies will be processed
14531453
/// again. If a non-cascading job failed, the driver will schedule all of
@@ -1705,8 +1705,8 @@ static void writeIndexUnitOutputPathsToFilelist(llvm::raw_fd_ostream &out,
17051705
for (auto &output : outputInfo.getIndexUnitOutputFilenames())
17061706
out << output << "\n";
17071707
}
1708-
static void writeSupplementarOutputToFilelist(llvm::raw_fd_ostream &out,
1709-
const Job *job) {
1708+
static void writeSupplementaryOutputToFilelist(llvm::raw_fd_ostream &out,
1709+
const Job *job) {
17101710
job->getOutput().writeOutputFileMap(out);
17111711
}
17121712

@@ -1745,7 +1745,7 @@ static bool writeFilelistIfNecessary(const Job *job, const ArgList &args,
17451745
writeIndexUnitOutputPathsToFilelist(out, job);
17461746
break;
17471747
case FilelistInfo::WhichFiles::SupplementaryOutput:
1748-
writeSupplementarOutputToFilelist(out, job);
1748+
writeSupplementaryOutputToFilelist(out, job);
17491749
break;
17501750
}
17511751
}

lib/Driver/Driver.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ Driver::buildCompilation(const ToolChain &TC,
980980
computeArgsHash(ArgsHash, *TranslatedArgList);
981981
llvm::sys::TimePoint<> LastBuildTime = llvm::sys::TimePoint<>::min();
982982
InputInfoMap outOfDateMap;
983-
std::string whyIgnoreIncrementallity =
983+
std::string whyIgnoreIncrementality =
984984
!Incremental
985985
? ""
986986
: buildRecordPath.empty()
@@ -1079,7 +1079,7 @@ Driver::buildCompilation(const ToolChain &TC,
10791079
// Construct the graph of Actions.
10801080
SmallVector<const Action *, 8> TopLevelActions;
10811081
buildActions(TopLevelActions, TC, OI,
1082-
whyIgnoreIncrementallity.empty() ? &outOfDateMap : nullptr, *C);
1082+
whyIgnoreIncrementality.empty() ? &outOfDateMap : nullptr, *C);
10831083

10841084
if (Diags.hadAnyError() && !AllowErrors)
10851085
return nullptr;
@@ -1110,8 +1110,8 @@ Driver::buildCompilation(const ToolChain &TC,
11101110

11111111
// This has to happen after building jobs, because otherwise we won't even
11121112
// emit .swiftdeps files for the next build.
1113-
if (!whyIgnoreIncrementallity.empty())
1114-
C->disableIncrementalBuild(whyIgnoreIncrementallity);
1113+
if (!whyIgnoreIncrementality.empty())
1114+
C->disableIncrementalBuild(whyIgnoreIncrementality);
11151115

11161116
if (Diags.hadAnyError() && !AllowErrors)
11171117
return nullptr;
@@ -1816,7 +1816,7 @@ void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
18161816

18171817
if (const Arg *A = Args.getLastArg(options::OPT_sanitize_recover_EQ)) {
18181818
// Just validate the args. The frontend will parse these again and actually
1819-
// use them. To avoid emitting warnings multiple times we surpress warnings
1819+
// use them. To avoid emitting warnings multiple times we suppress warnings
18201820
// here but not in the frontend.
18211821
(void)parseSanitizerRecoverArgValues(A, OI.SelectedSanitizers, Diags,
18221822
/*emitWarnings=*/false);

lib/Driver/ToolChains.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ void ToolChain::addCommonFrontendArgs(const OutputInfo &OI,
318318
// Pass through the values passed to -Xfrontend.
319319
inputArgs.AddAllArgValues(arguments, options::OPT_Xfrontend);
320320

321-
// Pass on module names whose symbols should be embeded in tbd.
321+
// Pass on module names whose symbols should be embedded in tbd.
322322
inputArgs.AddAllArgs(arguments, options::OPT_embed_tbd_for_module);
323323

324324
if (auto *A = inputArgs.getLastArg(options::OPT_working_directory)) {

lib/DriverTool/swift_api_digester_main.cpp

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class SameNameNodeMatcher : public NodeMatcher {
436436
};
437437

438438
// Get the priority for the favored name match kind. Favored name match kind
439-
// locats before less favored ones.
439+
// locals before less favored ones.
440440
ArrayRef<NameMatchKind> getNameMatchKindPriority(SDKNodeKind Kind) {
441441
if (Kind == SDKNodeKind::DeclFunction) {
442442
static NameMatchKind FuncPriority[] = { NameMatchKind::PrintedNameAndUSR,
@@ -1129,13 +1129,13 @@ class InterfaceTypeChangeDetector {
11291129
bool HasOptional = L->getTypeKind() == KnownTypeKind::Optional &&
11301130
R->getTypeKind() == KnownTypeKind::Optional;
11311131
if (HasOptional) {
1132-
// Detect [String: Any]? to [StringRepresentableStruct: Any]? Chnage
1132+
// Detect [String: Any]? to [StringRepresentableStruct: Any]? Change
11331133
KeyChangedTo =
11341134
detectDictionaryKeyChangeInternal(L->getOnlyChild()->getAs<SDKNodeType>(),
11351135
R->getOnlyChild()->getAs<SDKNodeType>(),
11361136
Raw);
11371137
} else {
1138-
// Detect [String: Any] to [StringRepresentableStruct: Any] Chnage
1138+
// Detect [String: Any] to [StringRepresentableStruct: Any] Change
11391139
KeyChangedTo = detectDictionaryKeyChangeInternal(L, R, Raw);
11401140
}
11411141
if (!KeyChangedTo.empty()) {
@@ -1180,13 +1180,13 @@ class InterfaceTypeChangeDetector {
11801180
bool HasOptional = L->getTypeKind() == KnownTypeKind::Optional &&
11811181
R->getTypeKind() == KnownTypeKind::Optional;
11821182
if (HasOptional) {
1183-
// Detect [String]? to [StringRepresentableStruct]? Chnage
1183+
// Detect [String]? to [StringRepresentableStruct]? Change
11841184
KeyChangedTo =
11851185
detectArrayMemberChangeInternal(L->getOnlyChild()->getAs<SDKNodeType>(),
11861186
R->getOnlyChild()->getAs<SDKNodeType>(),
11871187
Raw);
11881188
} else {
1189-
// Detect [String] to [StringRepresentableStruct] Chnage
1189+
// Detect [String] to [StringRepresentableStruct] Change
11901190
KeyChangedTo = detectArrayMemberChangeInternal(L, R, Raw);
11911191
}
11921192
if (!KeyChangedTo.empty()) {
@@ -1618,7 +1618,7 @@ void DiagnosisEmitter::handle(const SDKNodeDecl *Node, NodeAnnotation Anno) {
16181618
}
16191619
}
16201620

1621-
// If we can find a hoisted member for this removed delcaration, we
1621+
// If we can find a hoisted member for this removed declaration, we
16221622
// emit the diagnostics as rename instead of removal.
16231623
auto It = std::find_if(MemberChanges.begin(), MemberChanges.end(),
16241624
[&](TypeMemberDiffItem &Item) { return Item.usr == Node->getUsr(); });
@@ -1642,7 +1642,7 @@ void DiagnosisEmitter::handle(const SDKNodeDecl *Node, NodeAnnotation Anno) {
16421642
return;
16431643
}
16441644

1645-
// We should exlude those declarations that are pulled up to the super classes.
1645+
// We should exclude those declarations that are pulled up to the super classes.
16461646
bool FoundInSuperclass = false;
16471647
if (auto PD = dyn_cast<SDKNodeDecl>(Node->getParent())) {
16481648
if (PD->isAnnotatedAs(NodeAnnotation::Updated)) {
@@ -1847,10 +1847,10 @@ static bool readBreakageAllowlist(SDKContext &Ctx, llvm::StringSet<> &lines,
18471847
if (BreakageAllowlistPath.empty())
18481848
return 0;
18491849
CompilerInstance instance;
1850-
CompilerInvocation invok;
1851-
invok.setModuleName("ForClangImporter");
1850+
CompilerInvocation invoke;
1851+
invoke.setModuleName("ForClangImporter");
18521852
std::string InstanceSetupError;
1853-
if (instance.setup(invok, InstanceSetupError)) {
1853+
if (instance.setup(invoke, InstanceSetupError)) {
18541854
return 1;
18551855
}
18561856
auto importer = ClangImporter::create(instance.getASTContext());
@@ -2055,19 +2055,19 @@ static int generateMigrationScript(StringRef LeftPath, StringRef RightPath,
20552055
return 0;
20562056
}
20572057

2058-
static void setSDKPath(CompilerInvocation &InitInvok, bool IsBaseline,
2058+
static void setSDKPath(CompilerInvocation &InitInvoke, bool IsBaseline,
20592059
StringRef SDK, StringRef BaselineSDK) {
20602060
if (IsBaseline) {
20612061
// Set baseline SDK
20622062
if (!BaselineSDK.empty()) {
2063-
InitInvok.setSDKPath(BaselineSDK.str());
2063+
InitInvoke.setSDKPath(BaselineSDK.str());
20642064
}
20652065
} else {
20662066
// Set current SDK
20672067
if (!SDK.empty()) {
2068-
InitInvok.setSDKPath(SDK.str());
2068+
InitInvoke.setSDKPath(SDK.str());
20692069
} else if (const char *SDKROOT = getenv("SDKROOT")) {
2070-
InitInvok.setSDKPath(SDKROOT);
2070+
InitInvoke.setSDKPath(SDKROOT);
20712071
}
20722072
}
20732073
}
@@ -2185,7 +2185,7 @@ class SwiftAPIDigesterInvocation {
21852185
private:
21862186
std::string MainExecutablePath;
21872187
std::unique_ptr<llvm::opt::OptTable> Table;
2188-
CompilerInvocation InitInvok;
2188+
CompilerInvocation InitInvoke;
21892189
ActionType Action = ActionType::None;
21902190
CheckerOptions CheckerOpts;
21912191
llvm::StringSet<> IgnoredUsrs;
@@ -2379,29 +2379,29 @@ class SwiftAPIDigesterInvocation {
23792379
return ComparisonInputMode::BaselineJson;
23802380
}
23812381

2382-
int prepareForDump(CompilerInvocation &InitInvok, llvm::StringSet<> &Modules,
2382+
int prepareForDump(CompilerInvocation &InitInvoke, llvm::StringSet<> &Modules,
23832383
bool IsBaseline = false) {
2384-
InitInvok.setMainExecutablePath(MainExecutablePath);
2385-
InitInvok.setModuleName("swift_ide_test");
2386-
setSDKPath(InitInvok, IsBaseline, SDK, BaselineSDK);
2384+
InitInvoke.setMainExecutablePath(MainExecutablePath);
2385+
InitInvoke.setModuleName("swift_ide_test");
2386+
setSDKPath(InitInvoke, IsBaseline, SDK, BaselineSDK);
23872387

23882388
if (!Triple.empty())
2389-
InitInvok.setTargetTriple(Triple);
2389+
InitInvoke.setTargetTriple(Triple);
23902390

23912391
// Ensure the tool works on linux properly
2392-
InitInvok.getLangOptions().EnableObjCInterop =
2393-
InitInvok.getLangOptions().Target.isOSDarwin();
2394-
InitInvok.getClangImporterOptions().ModuleCachePath = ModuleCachePath;
2392+
InitInvoke.getLangOptions().EnableObjCInterop =
2393+
InitInvoke.getLangOptions().Target.isOSDarwin();
2394+
InitInvoke.getClangImporterOptions().ModuleCachePath = ModuleCachePath;
23952395
// Module recovery issue shouldn't bring down the tool.
2396-
InitInvok.getLangOptions().AllowDeserializingImplementationOnly = true;
2396+
InitInvoke.getLangOptions().AllowDeserializingImplementationOnly = true;
23972397

23982398
if (!SwiftVersion.empty()) {
23992399
using version::Version;
24002400
bool isValid = false;
24012401
if (auto Version =
24022402
Version::parseVersionString(SwiftVersion, SourceLoc(), nullptr)) {
24032403
if (auto Effective = Version.getValue().getEffectiveLanguageVersion()) {
2404-
InitInvok.getLangOptions().EffectiveLanguageVersion = *Effective;
2404+
InitInvoke.getLangOptions().EffectiveLanguageVersion = *Effective;
24052405
isValid = true;
24062406
}
24072407
}
@@ -2412,7 +2412,7 @@ class SwiftAPIDigesterInvocation {
24122412
}
24132413

24142414
if (!ResourceDir.empty()) {
2415-
InitInvok.setRuntimeResourcePath(ResourceDir);
2415+
InitInvoke.setRuntimeResourcePath(ResourceDir);
24162416
}
24172417
std::vector<SearchPathOptions::FrameworkSearchPath> FramePaths;
24182418
for (const auto &path : CCSystemFrameworkPaths) {
@@ -2422,14 +2422,14 @@ class SwiftAPIDigesterInvocation {
24222422
for (const auto &path : BaselineFrameworkPaths) {
24232423
FramePaths.push_back({path, /*isSystem=*/false});
24242424
}
2425-
InitInvok.setImportSearchPaths(BaselineModuleInputPaths);
2425+
InitInvoke.setImportSearchPaths(BaselineModuleInputPaths);
24262426
} else {
24272427
for (const auto &path : FrameworkPaths) {
24282428
FramePaths.push_back({path, /*isSystem=*/false});
24292429
}
2430-
InitInvok.setImportSearchPaths(ModuleInputPaths);
2430+
InitInvoke.setImportSearchPaths(ModuleInputPaths);
24312431
}
2432-
InitInvok.setFrameworkSearchPaths(FramePaths);
2432+
InitInvoke.setFrameworkSearchPaths(FramePaths);
24332433
if (!ModuleList.empty()) {
24342434
if (readFileLineByLine(ModuleList, Modules))
24352435
exit(1);
@@ -2438,7 +2438,7 @@ class SwiftAPIDigesterInvocation {
24382438
Modules.insert(M);
24392439
}
24402440
for (auto M : PreferInterfaceForModules) {
2441-
InitInvok.getFrontendOptions().PreferInterfaceForModules.push_back(M);
2441+
InitInvoke.getFrontendOptions().PreferInterfaceForModules.push_back(M);
24422442
}
24432443
if (Modules.empty()) {
24442444
llvm::errs() << "Need to specify -include-all or -module <name>\n";
@@ -2448,19 +2448,19 @@ class SwiftAPIDigesterInvocation {
24482448
}
24492449

24502450
SDKNodeRoot *getSDKRoot(SDKContext &Ctx, bool IsBaseline) {
2451-
CompilerInvocation Invok;
2451+
CompilerInvocation Invoke;
24522452
llvm::StringSet<> Modules;
2453-
if (prepareForDump(Invok, Modules, IsBaseline))
2453+
if (prepareForDump(Invoke, Modules, IsBaseline))
24542454
return nullptr;
2455-
return getSDKNodeRoot(Ctx, Invok, Modules);
2455+
return getSDKNodeRoot(Ctx, Invoke, Modules);
24562456
}
24572457

24582458
SDKNodeRoot *getBaselineFromJson(SDKContext &Ctx) {
24592459
SwiftDeclCollector Collector(Ctx);
2460-
CompilerInvocation Invok;
2460+
CompilerInvocation Invoke;
24612461
llvm::StringSet<> Modules;
24622462
// We need to call prepareForDump to parse target triple.
2463-
if (prepareForDump(Invok, Modules, true))
2463+
if (prepareForDump(Invoke, Modules, true))
24642464
return nullptr;
24652465

24662466
assert(Modules.size() == 1 &&
@@ -2470,14 +2470,14 @@ class SwiftAPIDigesterInvocation {
24702470
if (!BaselineFilePath.empty()) {
24712471
Path = BaselineFilePath;
24722472
} else if (!BaselineDirPath.empty()) {
2473-
Path = getCustomBaselinePath(Invok.getLangOptions().Target,
2473+
Path = getCustomBaselinePath(Invoke.getLangOptions().Target,
24742474
Ctx.checkingABI(), BaselineDirPath);
24752475
} else if (UseEmptyBaseline) {
24762476
Path = getEmptyBaselinePath(MainExecutablePath);
24772477
} else {
24782478
Path = getDefaultBaselinePath(
24792479
MainExecutablePath, Modules.begin()->getKey(),
2480-
Invok.getLangOptions().Target, Ctx.checkingABI());
2480+
Invoke.getLangOptions().Target, Ctx.checkingABI());
24812481
}
24822482
if (!fs::exists(Path)) {
24832483
llvm::errs() << "Baseline at " << Path << " does not exist\n";
@@ -2494,11 +2494,11 @@ class SwiftAPIDigesterInvocation {
24942494
switch (Action) {
24952495
case ActionType::DumpSDK: {
24962496
llvm::StringSet<> Modules;
2497-
return (prepareForDump(InitInvok, Modules))
2497+
return (prepareForDump(InitInvoke, Modules))
24982498
? 1
2499-
: dumpSDKContent(InitInvok, Modules,
2499+
: dumpSDKContent(InitInvoke, Modules,
25002500
getJsonOutputFilePath(
2501-
InitInvok.getLangOptions().Target,
2501+
InitInvoke.getLangOptions().Target,
25022502
CheckerOpts.ABI, OutputFile, OutputDir),
25032503
CheckerOpts);
25042504
}

test/Driver/loaded_module_trace_directness_2.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class MyNode {
3232

3333
// 2. FilesystemKit - Nothing to do (pure Clang module).
3434

35-
// 3. TestFilesystem - Check that CoreFilesystem and Filesytem can be imported.
35+
// 3. TestFilesystem - Check that CoreFilesystem and Filesystem can be imported.
3636

3737
// RUN: %target-swift-frontend %s -typecheck -DTestFilesystem -DV1 -module-name TestFilesystemV1 -emit-loaded-module-trace-path %t/TestFilesystemV1.trace.json -I %t/include
3838
// RUN: %FileCheck %s --check-prefix=TESTFILESYSTEM < %t/TestFilesystemV1.trace.json

unittests/Driver/MockingFineGrainedDependencyGraphs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--------------- MockingFineGraonedDependencyGraphs.cpp ---------------===//
1+
//===--------------- MockingFineGrainedDependencyGraphs.cpp ---------------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

unittests/Driver/UnitTestSourceFileDepGraphFactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class UnitTestSourceFileDepGraphFactory
6262

6363
/// Return true if when the name appears in a unit test, it represents a
6464
/// context, not a baseName. Return false if a single name is a baseName,
65-
/// without context Return None if there shoud be two names
65+
/// without context Return None if there should be two names
6666
static Optional<bool> singleNameIsContext(NodeKind kind);
6767

6868
static constexpr char nameContextSeparator = ',';

0 commit comments

Comments
 (0)