 
 public func haveValidSnapshot(named name: String) -> MatcherFunc<Snapshotable> {
     return MatcherFunc { actualExpression, failureMessage in
-        let testFileLocation = actualExpression.location.file
         if (switchChecksWithRecords) {
             return _recordSnapshot(name, actualExpression: actualExpression, failureMessage: failureMessage)
         }


public func haveValidSnapshot() -> MatcherFunc<Snapshotable> {
    return MatcherFunc { actualExpression, failureMessage in
        let testFileLocation = actualExpression.location.file
        if (switchChecksWithRecords) {
            return _recordSnapshot(nil, actualExpression: actualExpression, failureMessage: failureMessage)
        }


public func recordSnapshot() -> MatcherFunc<Snapshotable> {
    return MatcherFunc { actualExpression, failureMessage in
        return _recordSnapshot(nil, actualExpression: actualExpression, failureMessage: failureMessage)
    }
}
