Class: SwiftPrimitives

Inherits:
Object
  • Object
show all
Defined in:
lib/helpers/swift_primitives.rb

Overview

noinspection RubyLiteralArrayInspection

Constant Summary collapse

@@primitive_swift_types =
Set.new([
  'BOOL',
  'alignofValue',
  'anyGenerator',
  'anyGenerator',
  'assert',
  'assertionFailure',
  'autoclosure',
  'debugPrint',
  'debugPrint',
  'dump',
  'escaping',
  'fatalError',
  'getVaList',
  'isUniquelyReferenced',
  'isUniquelyReferencedNonObjC',
  'isUniquelyReferencedNonObjC',
  'max',
  'max',
  'min',
  'abs',
  'alignof',
  'min',
  'numericCast',
  'numericCast',
  'numericCast',
  'numericCast',
  'precondition',
  'preconditionFailure',
  'print',
  'print',
  'readLine',
  'sizeof',
  'sizeofValue',
  'strideof',
  'strideofValue',
  'swap',
  'throws',
  'transcode',
  'unsafeAddressOf',
  'unsafeBitCast',
  'unsafeDowncast',
  'unsafeUnwrap',
  'where',
  'withExtendedLifetime',
  'withExtendedLifetime',
  'withUnsafeMutablePointer',
  'withUnsafeMutablePointers',
  'withUnsafeMutablePointers',
  'withUnsafePointer',
  'withUnsafePointers',
  'withUnsafePointers',
  'withVaList',
  'withVaList',
  'zip',
  'Any',
  'AnyClass',
  'BooleanLiteralType',
  'CBool',
  'CChar',
  'CChar16',
  'CChar32',
  'CDouble',
  'CFloat',
  'CInt',
  'CLong',
  'CLongLong',
  'CShort',
  'CSignedChar',
  'CUnsignedChar',
  'CUnsignedInt',
  'CUnsignedLong',
  'CUnsignedLongLong',
  'CUnsignedShort',
  'CWideChar',
  'ExtendedGraphemeClusterType',
  'Float32',
  'Float64',
  'FloatLiteralType',
  'IntMax',
  'IntegerLiteralType',
  'StringLiteralType',
  'UIntMax',
  'UnicodeScalarType',
  'Void',
  'Any',
  'AnyHashable',
  'AnyObject',
  'AnyBidirectionalCollection',
  'AnyBidirectionalIndex',
  'AnyForwardCollection',
  'AnyForwardIndex',
  'AnyRandomAccessCollection',
  'AnyRandomAccessIndex',
  'AnySequence',
  'Array',
  'ArraySlice',
  'Array.Index',
  'AutoreleasingUnsafeMutablePointer',
  'Bool',
  'COpaquePointer',
  'CVaListPointer',
  'Character',
  'ClosedInterval',
  'CollectionOfOne',
  'ContiguousArray',
  'Data',
  'Date',
  'Dictionary',
  'DictionaryGenerator',
  'DictionaryIndex',
  'DictionaryLiteral',
  'Double',
  'EmptyGenerator',
  'EnumerateGenerator',
  'EnumerateSequence',
  'Equatable',
  'Error',
  'FlattenBidirectionalCollection',
  'FlattenBidirectionalCollectionIndex',
  'FlattenCollectionIndex',
  'FlattenSequence',
  'Float',
  'GeneratorSequence',
  'HalfOpenInterval',
  'IndexingGenerator',
  'IndexingIterator',
  'Int',
  'Int1',
  'Int16',
  'Int32',
  'Int64',
  'Int8',
  'JoinGenerator',
  'JoinSequence',
  'LazyCollection',
  'LazyFilterCollection',
  'LazyFilterGenerator',
  'LazyFilterIndex',
  'LazyFilterSequence',
  'LazyMapCollection',
  'LazyMapGenerator',
  'LazyMapSequence',
  'LazySequence',
  'ManagedBufferPointer',
  'Mirror',
  'MutableSlice',
  'Never',
  'ObjectIdentifier',
  'Optional',
  'PermutationGenerator',
  'Range',
  'RangeGenerator',
  'RawByte',
  'Repeat',
  'ReverseCollection',
  'ReverseIndex',
  'ReverseRandomAccessCollection',
  'ReverseRandomAccessIndex',
  'Self',
  'Set',
  'SetGenerator',
  'SetIndex',
  'Slice',
  'StaticString',
  'StrideThrough',
  'StrideThroughGenerator',
  'StrideTo',
  'StrideToGenerator',
  'String',
  'String.CharacterView',
  'String.CharacterView.Index',
  'String.UTF16View',
  'String.UTF16View.Index',
  'String.UTF8View',
  'String.UTF8View.Index',
  'String.UnicodeScalarView',
  'String.UnicodeScalarView.Generator',
  'String.UnicodeScalarView.Index',
  'TernaryPrecedence',
  'AssignmentPrecedence',
  'CastingPrecedence',
  'Type',
  'UInt',
  'UInt16',
  'UInt32',
  'UInt64',
  'UInt8',
  'UTF16',
  'UTF32',
  'UTF8',
  'URL',
  'UnicodeScalar',
  'Unmanaged',
  'UnsafeBufferPointer',
  'UnsafeBufferPointerGenerator',
  'UnsafeMutableBufferPointer',
  'UnsafeMutablePointer',
  'UnsafePointer',
  'Zip2Generator',
  'Zip2Sequence',
#Operators      
  '&&',
  '!',
  '!=',
  '||',
  '/',
  '*',
  '==',
  '===',
  '?',
  '??',
  '>=',
  '<=',
  '~=',
  '%',
  '<',
  '<',
  '-',
  '+',
  '-=',
  '+=',
  '..<',
  '>',
  '<',
  '/=',
#Globals   
  'floor',
  'sqrt',
  'abs',
  'fabs',
#Foundation
  'Bundle',
  'CharacterSet',
  'Comparable',
  'FileManager',
  'Foundation',
  'HTTPURLResponse',
  'IndexPath',         
  'IndexSet',
  'JSONSerialization',
  'Notification',
  'NotificationCenter',
  'Operation',
  'OperationQueue',
  'TimeInterval',
  'Timer',
  'URLRequest',
  'URLCache'      
]).freeze

Class Method Summary collapse

Class Method Details

.primitive_typesObject



255
256
257
# File 'lib/helpers/swift_primitives.rb', line 255

def self.primitive_types
  @@primitive_swift_types
end