mirror of
https://github.com/github/semantic.git
synced 2024-12-26 08:25:19 +03:00
Move BoundsCheckedArray into the framework.
This commit is contained in:
parent
63edfe863f
commit
a474ad26c3
@ -41,7 +41,6 @@
|
||||
D4C2B1321BB33D080096F92A /* SWXMLHash.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4413FD81BB0534000E3C3C1 /* SWXMLHash.framework */; };
|
||||
D4C2B1331BB33D080096F92A /* SwiftXPC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4413FD61BB0531E00E3C3C1 /* SwiftXPC.framework */; };
|
||||
D4C2B1341BB33D080096F92A /* SourceKittenFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4413FD41BB052ED00E3C3C1 /* SourceKittenFramework.framework */; };
|
||||
D4C2B1351BB33D1D0096F92A /* BoundsCheckedArray.swift in Sources */ = {isa = PBXBuildFile; fileRef = D435B7521BB31BBC000902F6 /* BoundsCheckedArray.swift */; };
|
||||
D4C2B13F1BB3474C0096F92A /* Commandant.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = D4413FE71BB055AE00E3C3C1 /* Commandant.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
D4C2B1401BB3474C0096F92A /* Result.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = D4413FDA1BB0536700E3C3C1 /* Result.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
D4C2B1411BB3474C0096F92A /* SWXMLHash.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = D4413FD81BB0534000E3C3C1 /* SWXMLHash.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
@ -51,6 +50,7 @@
|
||||
D4D7F3171BBB22E500AAB0C0 /* Hash.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4D7F3161BBB22E500AAB0C0 /* Hash.swift */; settings = {ASSET_TAGS = (); }; };
|
||||
D4DF96ED1BC46B630040F41F /* SES.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF96EC1BC46B630040F41F /* SES.swift */; settings = {ASSET_TAGS = (); }; };
|
||||
D4DF96F61BC576720040F41F /* DocTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4DF96F51BC576720040F41F /* DocTests.swift */; settings = {ASSET_TAGS = (); }; };
|
||||
D4DF970C1BC5DF9E0040F41F /* BoundsCheckedArray.swift in Sources */ = {isa = PBXBuildFile; fileRef = D435B7521BB31BBC000902F6 /* BoundsCheckedArray.swift */; settings = {ASSET_TAGS = (); }; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@ -164,7 +164,6 @@
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
D435B7471BB31949000902F6 /* main.swift */,
|
||||
D435B7521BB31BBC000902F6 /* BoundsCheckedArray.swift */,
|
||||
);
|
||||
path = "doubt-swift";
|
||||
sourceTree = "<group>";
|
||||
@ -213,6 +212,7 @@
|
||||
D49FCBC51BBF214300C5E9C3 /* Patch.swift */,
|
||||
D49FCBC71BBF2C4300C5E9C3 /* Algorithm.swift */,
|
||||
D4DF96EC1BC46B630040F41F /* SES.swift */,
|
||||
D435B7521BB31BBC000902F6 /* BoundsCheckedArray.swift */,
|
||||
D4AAE5001B5AE22E004E581F /* Supporting Files */,
|
||||
);
|
||||
path = Doubt;
|
||||
@ -380,7 +380,6 @@
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
D4C2B1351BB33D1D0096F92A /* BoundsCheckedArray.swift in Sources */,
|
||||
D4C2B12E1BB33CEC0096F92A /* main.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
@ -405,6 +404,7 @@
|
||||
D45A36CD1BBC75DF00BE3DDE /* Info.swift in Sources */,
|
||||
D4AAE5461B5AE2D0004E581F /* Parse.swift in Sources */,
|
||||
D49FCBC81BBF2C4300C5E9C3 /* Algorithm.swift in Sources */,
|
||||
D4DF970C1BC5DF9E0040F41F /* BoundsCheckedArray.swift in Sources */,
|
||||
D432D4751BA9D6A400F3FABC /* Memo.swift in Sources */,
|
||||
D40B89C41BC319070078E098 /* Matrix.swift in Sources */,
|
||||
D4AAE5491B5AE2D0004E581F /* StringLiteralConvertible.swift in Sources */,
|
||||
|
16
prototype/Doubt/BoundsCheckedArray.swift
Normal file
16
prototype/Doubt/BoundsCheckedArray.swift
Normal file
@ -0,0 +1,16 @@
|
||||
public struct BoundsCheckedArray<Element>: CollectionType {
|
||||
init(array: [Element]) {
|
||||
self.array = array
|
||||
}
|
||||
|
||||
let array: [Element]
|
||||
|
||||
public let startIndex = 0
|
||||
public var endIndex: Int {
|
||||
return array.count
|
||||
}
|
||||
|
||||
public subscript (i: Int) -> Element? {
|
||||
return i < count ? array[i] : nil
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
struct BoundsCheckedArray<Element>: CollectionType {
|
||||
init(array: [Element]) {
|
||||
self.array = array
|
||||
}
|
||||
|
||||
let array: [Element]
|
||||
|
||||
let startIndex = 0
|
||||
var endIndex: Int {
|
||||
return array.count
|
||||
}
|
||||
|
||||
subscript (i: Int) -> Element? {
|
||||
return i < count ? array[i] : nil
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user