Closed art-divin closed 3 months ago
Resolves #1340
Given the following code:
// sourcery: AutoStubable struct MyStruct { // sourcery: stub = "A" let basic: String // sourcery: stub = "B" let caseProperty: String // sourcery: stub = "C" let casesProperty: String // sourcery: stub = "D" let CaseProperty: String }
and parsing implemented as follows:
let isInsideCaseDefinition = prefix.trimmingCharacters(in: .whitespacesAndNewlines).hasPrefix("case") prefix = prefix.trimmingPrefix("case").trimmingCharacters(in: .whitespaces)
an incorrect result is produced, because of the variable names starting with case.
case
Resolves #1340
Context
Given the following code:
and parsing implemented as follows:
an incorrect result is produced, because of the variable names starting with
case
.