branch: elpa/swift-mode commit 64dff577c12361a6e810ef27f14b23e8d33c36d1 Author: taku0 <mxxouy6x3m_git...@tatapa.org> Commit: taku0 <mxxouy6x3m_git...@tatapa.org>
Update standard types --- swift-mode-standard-types.el | 306 +++++++++++++++++++++++++++++-------------- 1 file changed, 209 insertions(+), 97 deletions(-) diff --git a/swift-mode-standard-types.el b/swift-mode-standard-types.el index a9db967..6d7949f 100644 --- a/swift-mode-standard-types.el +++ b/swift-mode-standard-types.el @@ -1,6 +1,6 @@ ;;; swift-mode-standard-types.el --- Major-mode for Apple's Swift programming language, Standard Types. -*- lexical-binding: t -*- -;; Copyright (C) 2018 taku0 +;; Copyright (C) 2018-2019 taku0 ;; Authors: taku0 (http://github.com/taku0) ;; @@ -338,7 +338,6 @@ "NSSpellServer" "NSSpellServerDelegate" "NSString" - "NSStringDrawingContext" "NSStringDrawingOptions" "NSSwappedDouble" "NSSwappedFloat" @@ -425,6 +424,7 @@ "RecoverableError" "ReferenceConvertible" "ReferenceType" + "Regions" "RelativePosition" "RepeatedTimePolicy" "ReplacingOptions" @@ -469,7 +469,6 @@ "TimeInterval" "Timer" "TimeZone" - "UIBaselineAdjustment" "UIItemProviderPresentationSizeProviding" "UndoManager" "unichar" @@ -1440,6 +1439,7 @@ "firstIndex" "firstMatch" "firstObjectCommon" + "firstRange" "fixAttachmentAttribute" "fixAttributes" "fixFontAttribute" @@ -1493,6 +1493,7 @@ "grammarCheckingResult" "handle" "handleMachMessage" + "hash" "hasItemConformingToTypeIdentifier" "hasMember" "hasMemberInPlane" @@ -1598,6 +1599,7 @@ "languages" "last" "lastIndex" + "lastRange" "laterDate" "launch" "launchedProcess" @@ -2153,6 +2155,8 @@ "willChange" "willChangeValue" "windowsLocaleCode" + "withContiguousMutableStorageIfAvailable" + "withContiguousStorageIfAvailable" "withSubstitutionVariables" "withUnsafeBytes" "withUnsafeFileSystemRepresentation" @@ -2283,6 +2287,7 @@ "announcementRequested" "antialiasThresholdChangedNotification" "anyObject" + "appearance" "appendOnly" "appKitIgnoredException" "appKitVirtualMemoryException" @@ -2588,6 +2593,7 @@ "creationTime" "cStringPersonality" "CTRadioAccessTechnologyDidChange" + "CTServiceRadioAccessTechnologyDidChange" "cubicCentimeters" "cubicDecimeters" "cubicFeet" @@ -3918,6 +3924,11 @@ "NSPPDIncludeStackOverflowException" "NSPPDIncludeStackUnderflowException" "NSPPDParseException" + "NSPreferencePaneCancelUnselect" + "NSPreferencePaneDoUnselect" + "NSPreferencePaneSwitchToPane" + "NSPreferencePaneUpdateHelpMenu" + "NSPreferencePrefPaneIsAvailable" "NSProcessInfoPowerStateDidChange" "NSQuarterCalendarUnit" "NSRTFPropertyStackOverflowException" @@ -4119,6 +4130,7 @@ "PKPassLibraryRemotePaymentPassesDidChange" "placeName" "plain" + "playgroundPageExecutionModeDidChange" "plusSign" "pmSymbol" "pointerFunctions" @@ -4278,6 +4290,7 @@ "referenceDate" "referrerURL" "regionCode" + "regions" "registeredTypeIdentifiers" "registrationDomain" "registryDidChangeNotification" @@ -4926,6 +4939,7 @@ "volumeNameKey" "volumeResourceCount" "volumeResourceCountKey" + "volumeSupportsAccessPermissions" "volumeSupportsAccessPermissionsKey" "volumeSupportsAdvisoryFileLocking" "volumeSupportsAdvisoryFileLockingKey" @@ -4935,12 +4949,15 @@ "volumeSupportsCaseSensitiveNamesKey" "volumeSupportsCompression" "volumeSupportsCompressionKey" + "volumeSupportsExclusiveRenaming" "volumeSupportsExclusiveRenamingKey" "volumeSupportsExtendedSecurity" "volumeSupportsExtendedSecurityKey" + "volumeSupportsFileCloning" "volumeSupportsFileCloningKey" "volumeSupportsHardLinks" "volumeSupportsHardLinksKey" + "volumeSupportsImmutableFiles" "volumeSupportsImmutableFilesKey" "volumeSupportsJournaling" "volumeSupportsJournalingKey" @@ -4952,6 +4969,7 @@ "volumeSupportsRootDirectoryDatesKey" "volumeSupportsSparseFiles" "volumeSupportsSparseFilesKey" + "volumeSupportsSwapRenaming" "volumeSupportsSwapRenamingKey" "volumeSupportsSymbolicLinks" "volumeSupportsSymbolicLinksKey" @@ -5852,6 +5870,7 @@ (defconst swift-mode:standard-types '("_AppendKeyPath" + "AdditiveArithmetic" "AllCases" "AncestorRepresentation" "AnyBidirectionalCollection" @@ -5865,20 +5884,17 @@ "AnyRandomAccessCollection" "AnySequence" "Array" - "ArrayLiteralConvertible" "ArrayLiteralElement" "ArraySlice" "ASCII" "AutoreleasingUnsafeMutablePointer" "BidirectionalCollection" - "BidirectionalIndexable" - "BidirectionalSlice" "BinaryFloatingPoint" "BinaryInteger" "Bool" - "BooleanLiteralConvertible" "BooleanLiteralType" "Bound" + "CanonicalCombiningClass" "CaseIterable" "CBool" "CChar" @@ -5887,7 +5903,6 @@ "CDouble" "CFloat" "Character" - "CharacterView" "Child" "Children" "CInt" @@ -5895,7 +5910,6 @@ "CLongDouble" "CLongLong" "ClosedRange" - "ClosedRangeIndex" "Codable" "CodeUnit" "CodingKey" @@ -5921,7 +5935,6 @@ "CustomLeafReflectable" "CustomNSError" "CustomPlaygroundDisplayConvertible" - "CustomPlaygroundQuickLookable" "CustomReflectable" "CustomStringConvertible" "CVaListPointer" @@ -5930,21 +5943,20 @@ "Decodable" "Decoder" "DecodingError" - "DefaultBidirectionalIndices" "DefaultIndices" - "DefaultRandomAccessIndices" + "DefaultStringInterpolation" "Dictionary" "DictionaryIndex" "DictionaryIterator" "DictionaryLiteral" - "DictionaryLiteralConvertible" "DisplayStyle" "Distance" "Double" + "DropFirstSequence" + "DropWhileSequence" "Element" "Elements" "EmptyCollection" - "EmptyIterator" "Encodable" "EncodedScalar" "Encoder" @@ -5967,14 +5979,10 @@ "ExpressibleByStringInterpolation" "ExpressibleByStringLiteral" "ExpressibleByUnicodeScalarLiteral" - "ExtendedGraphemeClusterLiteralConvertible" "ExtendedGraphemeClusterLiteralType" "ExtendedGraphemeClusterType" "FixedWidthInteger" - "FlattenBidirectionalCollection" - "FlattenBidirectionalCollectionIndex" "FlattenCollection" - "FlattenCollectionIndex" "FlattenSequence" "Float" "Float32" @@ -5984,14 +5992,12 @@ "FloatingPointClassification" "FloatingPointRoundingRule" "FloatingPointSign" - "FloatLiteralConvertible" "FloatLiteralType" "ForwardParser" + "GeneralCategory" "Hashable" "Hasher" "Index" - "Indexable" - "IndexableBase" "IndexDistance" "IndexingIterator" "Indices" @@ -6000,13 +6006,10 @@ "Int32" "Int64" "Int8" - "IntegerLiteralConvertible" "IntegerLiteralType" "Iterator" - "IteratorOverOne" "IteratorProtocol" "IteratorSequence" - "JoinedIterator" "JoinedSequence" "Key" "KeyedDecodingContainer" @@ -6015,30 +6018,17 @@ "KeyedEncodingContainerProtocol" "KeyPath" "Keys" - "LazyBidirectionalCollection" + "KeyValuePairs" "LazyCollection" "LazyCollectionProtocol" - "LazyDropWhileBidirectionalCollection" "LazyDropWhileCollection" - "LazyDropWhileIndex" - "LazyDropWhileIterator" "LazyDropWhileSequence" - "LazyFilterBidirectionalCollection" "LazyFilterCollection" - "LazyFilterIndex" - "LazyFilterIterator" "LazyFilterSequence" - "LazyMapBidirectionalCollection" "LazyMapCollection" - "LazyMapIterator" - "LazyMapRandomAccessCollection" "LazyMapSequence" - "LazyPrefixWhileBidirectionalCollection" "LazyPrefixWhileCollection" - "LazyPrefixWhileIndex" - "LazyPrefixWhileIterator" "LazyPrefixWhileSequence" - "LazyRandomAccessCollection" "LazySequence" "LazySequenceProtocol" "LocalizedError" @@ -6046,19 +6036,12 @@ "Magnitude" "ManagedBuffer" "ManagedBufferPointer" + "MaskStorage" "MemoryLayout" "Mirror" "MirrorPath" - "MutableBidirectionalSlice" "MutableCollection" - "MutableIndexable" - "MutableRandomAccessSlice" - "MutableRangeReplaceableBidirectionalSlice" - "MutableRangeReplaceableRandomAccessSlice" - "MutableRangeReplaceableSlice" - "MutableSlice" "Never" - "NilLiteralConvertible" "NSArray" "NSDictionary" "NSError" @@ -6069,6 +6052,7 @@ "NSSet" "NSString" "Numeric" + "NumericType" "ObjectIdentifier" "OpaquePointer" "Optional" @@ -6080,28 +6064,24 @@ "PartialRangeThrough" "PartialRangeUpTo" "PlaygroundQuickLook" - "Random" + "Pointee" + "PrefixSequence" + "Properties" "RandomAccessCollection" - "RandomAccessIndexable" - "RandomAccessSlice" "RandomNumberGenerator" "Range" "RangeExpression" - "RangeReplaceableBidirectionalSlice" "RangeReplaceableCollection" - "RangeReplaceableIndexable" - "RangeReplaceableRandomAccessSlice" - "RangeReplaceableSlice" "RawExponent" "RawRepresentable" "RawSignificand" "RawValue" "RecoverableError" "ReferenceWritableKeyPath" + "Regions" "Repeated" + "Result" "ReversedCollection" - "ReversedIndex" - "ReversedRandomAccessCollection" "ReverseParser" "Scalar" "Sequence" @@ -6111,12 +6091,28 @@ "SetIterator" "SignedInteger" "SignedNumeric" + "SIMD" + "SIMD16" + "SIMD16Storage" + "SIMD2" + "SIMD2Storage" + "SIMD3" + "SIMD32" + "SIMD32Storage" + "SIMD4" + "SIMD4Storage" + "SIMD64" + "SIMD64Storage" + "SIMD8" + "SIMD8Storage" + "SIMDMask" + "SIMDMaskScalar" + "SIMDScalar" + "SIMDStorage" "SingleValueDecodingContainer" "SingleValueEncodingContainer" "Slice" "StaticString" - "Stream1" - "Stream2" "Stride" "Strideable" "StrideThrough" @@ -6124,12 +6120,13 @@ "StrideTo" "StrideToIterator" "String" - "StringInterpolationConvertible" - "StringLiteralConvertible" + "StringInterpolation" + "StringInterpolationProtocol" "StringLiteralType" "StringProtocol" "SubSequence" "Substring" + "SystemRandomNumberGenerator" "TextOutputStream" "TextOutputStreamable" "UInt" @@ -6146,7 +6143,6 @@ "UnicodeDecodingResult" "UnicodeScalar" "UnicodeScalarIndex" - "UnicodeScalarLiteralConvertible" "UnicodeScalarLiteralType" "UnicodeScalarType" "UnicodeScalarView" @@ -6154,94 +6150,106 @@ "UnkeyedEncodingContainer" "Unmanaged" "UnsafeBufferPointer" - "UnsafeBufferPointerIterator" "UnsafeMutableBufferPointer" "UnsafeMutablePointer" "UnsafeMutableRawBufferPointer" - "UnsafeMutableRawBufferPointerIterator" "UnsafeMutableRawPointer" "UnsafePointer" "UnsafeRawBufferPointer" - "UnsafeRawBufferPointerIterator" "UnsafeRawPointer" "UnsignedInteger" "UTF16" - "UTF16Index" "UTF16View" "UTF32" "UTF8" - "UTF8Index" "UTF8View" "Value" "Values" + "Version" "Void" "Words" "WritableKeyPath" - "Zip2Iterator" "Zip2Sequence") "Built-in types.") (defconst swift-mode:standard-enum-cases - '("attributedString" - "awayFromZero" - "bezierPath" - "bool" + '("awayFromZero" "class" + "closePunctuation" "collection" - "color" + "connectorPunctuation" + "control" + "currencySymbol" "customized" + "dashPunctuation" "dataCorrupted" + "decimal" + "decimalNumber" "dictionary" - "double" + "digit" "down" "emptyInput" + "enclosingMark" "enum" "error" - "float" + "failure" + "finalPunctuation" + "format" "generated" - "image" + "initialPunctuation" "inRange" - "int" "invalidValue" "keyNotFound" + "letterNumber" + "lineSeparator" + "lowercaseLetter" + "mathSymbol" "minus" + "modifierLetter" + "modifierSymbol" "negativeInfinity" "negativeNormal" "negativeSubnormal" "negativeZero" "none" + "nonspacingMark" + "numeric" + "openPunctuation" "optional" + "otherLetter" + "otherNumber" + "otherPunctuation" + "otherSymbol" + "paragraphSeparator" "pastEnd" "plus" - "point" "positiveInfinity" "positiveNormal" "positiveSubnormal" "positiveZero" + "privateUse" "quietNaN" - "range" - "rectangle" "scalarValue" "set" "signalingNaN" - "size" "some" - "sound" - "sprite" + "spaceSeparator" + "spacingMark" "struct" + "success" "suppressed" - "text" + "surrogate" + "titlecaseLetter" "toNearestOrAwayFromZero" "toNearestOrEven" "towardZero" "tuple" "typeMismatch" - "uInt" + "unassigned" "up" - "url" + "uppercaseLetter" "valid" - "valueNotFound" - "view") + "valueNotFound") "Built-in enum cases.") (defconst swift-mode:standard-methods @@ -6256,6 +6264,8 @@ "append" "appending" "appendingFormat" + "appendInterpolation" + "appendLiteral" "applyingTransform" "assign" "assumingMemoryBound" @@ -6269,6 +6279,7 @@ "combine" "commonPrefix" "compactMap" + "compactMapValues" "compare" "completePath" "components" @@ -6309,6 +6320,7 @@ "first" "firstIndex" "flatMap" + "flatMapError" "folding" "forEach" "formIndex" @@ -6319,6 +6331,7 @@ "formTruncatingRemainder" "formUnion" "fromOpaque" + "get" "getBytes" "getCString" "getLineStart" @@ -6337,6 +6350,7 @@ "isLeadSurrogate" "isLess" "isLessThanOrEqualTo" + "isMultiple" "isStrictSubset" "isStrictSuperset" "isSubset" @@ -6364,6 +6378,7 @@ "lowercased" "makeIterator" "map" + "mapError" "mapValues" "max" "maximum" @@ -6394,7 +6409,6 @@ "passUnretained" "popFirst" "popLast" - "predecessor" "prefix" "propertyList" "propertyListFromStringsFileFormat" @@ -6416,7 +6430,9 @@ "removeLast" "removeSubrange" "removeValue" + "replace" "replaceSubrange" + "replacing" "replacingCharacters" "replacingOccurrences" "reserveCapacity" @@ -6442,7 +6458,6 @@ "subtract" "subtracting" "subtractingReportingOverflow" - "successor" "suffix" "superDecoder" "superEncoder" @@ -6459,17 +6474,15 @@ "truncatingRemainder" "union" "unkeyedContainer" - "unsafeAdding" - "unsafeDivided" - "unsafeMultiplied" - "unsafeSubtracting" "update" "updateValue" "uppercased" + "utf16Offset" "width" + "withContiguousMutableStorageIfAvailable" + "withContiguousStorageIfAvailable" "withCString" "withMemoryRebound" - "withMutableCharacters" "withUnsafeBufferPointer" "withUnsafeBytes" "withUnsafeMutableBufferPointer" @@ -6482,24 +6495,42 @@ "Built-in methods.") (defconst swift-mode:standard-properties - '("alignment" + '("above" + "aboveLeft" + "aboveRight" + "age" + "alignment" "allCases" "allKeys" "argc" "arguments" "ascii" + "asciiValue" + "attachedAbove" + "attachedAboveRight" + "attachedBelow" + "attachedBelowLeft" "availableStringEncodings" "base" "baseAddress" + "below" + "belowLeft" + "belowRight" "bigEndian" "binade" "bitPattern" "bitWidth" "buffer" "byteSwapped" + "canonicalCombiningClass" "capacity" "capitalized" - "characters" + "changesWhenCaseFolded" + "changesWhenCaseMapped" + "changesWhenLowercased" + "changesWhenNFKCCaseFolded" + "changesWhenTitlecased" + "changesWhenUppercased" "children" "codingPath" "count" @@ -6511,76 +6542,148 @@ "debugDescription" "decomposedStringWithCanonicalMapping" "decomposedStringWithCompatibilityMapping" - "default" "defaultCStringEncoding" "description" "displayStyle" + "doubleAbove" + "doubleBelow" "elements" "encodedOffset" "encodedReplacementCharacter" "endIndex" + "evenHalf" "exponent" "exponentBitCount" "exponentBitPattern" "fastestEncoding" "first" "floatingPointClass" + "generalCategory" "greatestFiniteMagnitude" "hash" "hashValue" "hasPointerRepresentation" "header" + "hexDigitValue" + "highHalf" "indices" "infinity" "intValue" + "iotaSubscript" + "isAlphabetic" "isASCII" + "isASCIIHexDigit" "isAtEnd" + "isBidiControl" + "isBidiMirrored" "isCanonical" + "isCased" + "isCaseIgnorable" + "isCurrencySymbol" + "isDash" + "isDefaultIgnorableCodePoint" + "isDeprecated" + "isDiacritic" + "isEmoji" + "isEmojiModifier" + "isEmojiModifierBase" + "isEmojiPresentation" "isEmpty" + "isExtender" "isFinite" + "isFullCompositionExclusion" + "isGraphemeBase" + "isGraphemeExtend" + "isHexDigit" + "isIDContinue" + "isIdeographic" + "isIDSBinaryOperator" + "isIDStart" + "isIDSTrinaryOperator" "isInfinite" + "isJoinControl" + "isLetter" + "isLogicalOrderException" + "isLowercase" + "isMath" + "isMathSymbol" "isNaN" + "isNewline" + "isNoncharacterCodePoint" "isNormal" + "isNumber" "iso2022JP" "isoLatin1" "isoLatin2" + "isPatternSyntax" + "isPatternWhitespace" + "isPunctuation" + "isQuotationMark" + "isRadical" + "isSentenceTerminal" "isSignalingNaN" "isSigned" + "isSoftDotted" "isSubnormal" + "isSymbol" + "isTerminalPunctuation" + "isUnifiedIdeograph" + "isUppercase" + "isVariationSelector" + "isWhitespace" + "isWholeNumber" + "isXIDContinue" + "isXIDStart" "isZero" "japaneseEUC" + "kanaVoicing" "keys" "last" "lazy" "leadingZeroBitCount" "leastNonzeroMagnitude" "leastNormalMagnitude" + "left" "littleEndian" "localizedCapitalized" "localizedDescription" "localizedLowercase" "localizedUppercase" "lowerBound" + "lowercaseMapping" + "lowHalf" "macOSRoman" "magnitude" "max" "min" + "name" + "nameAlias" "nan" "nextDown" "nextstep" "nextUp" "nonLossyASCII" "nonzeroBitCount" + "notReordered" + "nukta" + "numericType" + "numericValue" + "oddHalf" + "overlay" "pi" "playgroundDescription" "pointee" "precomposedStringWithCanonicalMapping" "precomposedStringWithCompatibilityMapping" + "properties" "radix" "rawValue" + "regions" "removingPercentEncoding" "repeatedValue" + "right" "rootType" + "scalarCount" "shiftJIS" "sign" "signalingNaN" @@ -6596,6 +6699,7 @@ "subjectType" "superclassMirror" "symbol" + "titlecaseMapping" "trailingZeroBitCount" "ulp" "ulpOfOne" @@ -6607,6 +6711,7 @@ "unsafeArgv" "unsafelyUnwrapped" "upperBound" + "uppercaseMapping" "userInfo" "utf16" "utf16BigEndian" @@ -6621,12 +6726,19 @@ "value" "values" "valueType" + "virama" + "w" + "wholeNumberValue" "windowsCP1250" "windowsCP1251" "windowsCP1252" "windowsCP1253" "windowsCP1254" - "words") + "words" + "x" + "y" + "z" + "zero") "Built-in properties.") (defconst swift-mode:standard-functions