Sha256: 482c974df32b54edca63a5389fdac457c656a167058b90f9855e1fc4a333e717

Contents?: true

Size: 745 Bytes

Versions: 2

Compression:

Stored size: 745 Bytes

Contents

/**
    An object encapsulating the file and line number at which
    a particular example is defined.
*/
@objc final public class Callsite: Equatable {
    /**
        The absolute path of the file in which an example is defined.
    */
    public let file: String

    /**
        The line number on which an example is defined.
    */
    public let line: Int

    internal init(file: String, line: Int) {
        self.file = file
        self.line = line
    }
}

/**
    Returns a boolean indicating whether two Callsite objects are equal.
    If two callsites are in the same file and on the same line, they must be equal.
*/
public func ==(lhs: Callsite, rhs: Callsite) -> Bool {
    return lhs.file == rhs.file && lhs.line == rhs.line
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocoapods-deintegrate-0.2.1 spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Callsite.swift
cocoapods-deintegrate-0.2.0 spec/fixtures/Project/Frameworks/Pods/Quick/Quick/Callsite.swift