This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
libswiftCore.dylib`swift_getObjectType: | |
-> 0x10c7a8180 <+0>: pushq %rbp | |
0x10c7a8181 <+1>: movq %rsp, %rbp | |
0x10c7a8184 <+4>: pushq %r14 | |
0x10c7a8186 <+6>: pushq %rbx | |
0x10c7a8187 <+7>: movq %rdi, %rbx | |
0x10c7a818a <+10>: testq %rdi, %rdi | |
0x10c7a818d <+13>: jns 0x10c7a8199 ; <+25> | |
0x10c7a818f <+15>: movq %rbx, %rdi | |
0x10c7a8192 <+18>: callq 0x10c7d5a04 ; symbol stub for: object_getClass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This file: | |
# - Builds openssl fat binary for iPhoneOS and iPhoneSimulator | |
# | |
# Usage: | |
# ./build_openssl.sh [-d <OPENSSL_DIR>] | |
# The MIT License (MIT) | |
# Copyright (c) 2017 Amaiz LLC and contributors | |
set -o errexit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MasterViewController: UICollectionViewController, UICollectionViewDelegateFlowLayout, View { | |
func bind(reactor: MasterViewReactor) { | |
self.refreshControl.rx | |
.controlEvent(.valueChanged) | |
.filter { _ in self.refreshControl.isRefreshing } | |
.subscribe(self.refresher) | |
.disposed(by: self.disposeBag) | |
self.refresher | |
.map { Reactor.Action.refreshList } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git ls-files "*.h" "*.m" "*.mm" "*.swift" | while read i; do git blame --line-porcelain "$i" | sed -n 's/^author //p' | tail +6; done | sort -f | uniq -ic | sort -nr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case '!': | |
if (isLeftBound(TokStart, BufferStart)) | |
return formToken(tok::exclaim_postfix, TokStart); | |
return lexOperatorIdentifier(); | |
case '?': | |
if (isLeftBound(TokStart, BufferStart)) | |
return formToken(tok::question_postfix, TokStart); | |
return lexOperatorIdentifier(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case '/': | |
if (CurPtr[0] == '/') { | |
// treat single-line comment "//" as whitespace | |
skipSlashSlashComment(); | |
goto Restart; | |
} | |
if (CurPtr[0] == '*') { | |
// treat multi-line comment "/*" as whitespace | |
skipSlashStarComment(); | |
goto Restart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: { | |
... | |
if (advanceIfValidStartOfOperator(tmp, BufferEnd)) | |
return lexOperatorIdentifier(); | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: { | |
char const *tmp = CurPtr-1; | |
if (advanceIfValidStartOfIdentifier(tmp, BufferEnd)) | |
return lexIdentifier(); | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// valid variable name | |
let a$b: Int = 12 | |
// valid function name | |
func _$(_$_$: Int) -> Int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// lexIdentifier - Match [a-zA-Z_][a-zA-Z_$0-9]* | |
void Lexer::lexIdentifier() { | |
const char *TokStart = CurPtr-1; | |
CurPtr = TokStart; | |
advanceIfValidStartOfIdentifier(CurPtr, BufferEnd); | |
// Lex [a-zA-Z_$0-9[[:XID_Continue:]]]* | |
while (advanceIfValidContinuationOfIdentifier(CurPtr, BufferEnd)); | |
tok Kind = kindOfIdentifier(StringRef(TokStart, CurPtr-TokStart)); | |
return formToken(Kind, TokStart); |
NewerOlder