TEST
  1. TEST

swift234

Public
AuthorCommitMessageCommit date
Doug GregorDoug Gregor
54031f1ec35MMerge pull request #4609 from DougGregor/scope-mapIntroduce a new data structure to explicitly model scopes in the AST
Slava PestovSlava Pestov
a26253275a7MMerge pull request #4625 from timbodeit/SR-1681[Sema] Fix SR-1681 spurious "unused result" warning
Dmitri GribenkoDmitri Gribenko
1ac59192befMMerge pull request #4629 from tonisuter/patch-1Fix wrong parameter name in documentation comment
Toni SuterToni Suter
c11ae52e033Fix wrong parameter name in documentation comment
Dmitri GribenkoDmitri Gribenko
e9d457540abMMerge pull request #4624 from rjmansfield/masterFix build error when SWIFT_DEBUG_RUNTIME is defined.
Dmitri GribenkoDmitri Gribenko
fe7f3c61658MMerge pull request #4626 from apple/stdlib-string-comparable-movestdlib: move 'String : Comparable' conformance to a separate file
Dmitri GribenkoDmitri Gribenko
fc6add38802stdlib: move 'String : Comparable' conformance to a separate fileI'm about to add more code around it.
Dmitri GribenkoDmitri Gribenko
5aa005f9dd6MMerge pull request #4552 from Nirma/string_buffer_check[stdlib] rewrite optional handling using map
Tim BodeitTim Bodeit
7c0f9ae333e[test] Add test cases for SR-1681 - spurious "unused result" warning
Tim BodeitTim Bodeit
c97ebb05244[Sema] Fix SR-1681: spurious "unused result" warning in Swift 3An OptionalEvaluationExpr can have a CallExpr directly as its SubExpr, if the CallExpr already has optional type. extends ea52d4fbc7093582eef84c57b3906e9d7e274fe8
Ryan MansfieldRyan Mansfield
75084a78683Fix build error when SWIFT_DEBUG_RUNTIME is defined.
Dmitri GribenkoDmitri Gribenko
80f0044adfbMMerge pull request #4623 from apple/stdlib-split-reflectable.swiftstdlib: move non-legacy parts of Reflection.swift into separate files
Chris LattnerChris Lattner
74798108707MMerge pull request #4619 from rintaro/SE-0081-astprinter[SE-0081] Update ASTPrinter for SE-0081
Dmitri GribenkoDmitri Gribenko
cee0d7a3346stdlib: rename Reflection.swift to ReflectionLegacy.swift
Dmitri GribenkoDmitri Gribenko
46ef62db6ecstdlib: move non-legacy parts of Reflection.swift into separate files
Dmitri GribenkoDmitri Gribenko
59d3361cf91MMerge pull request #4620 from apple/swift-shims-unicode-nullabilitystdlib: annotate Unicode shims with nullability
Dmitri GribenkoDmitri Gribenko
4da587b388astdlib: annotate Unicode shims with nullability
Rintaro IshizakiRintaro Ishizaki
229beac8131[SE-0081][ASTPrinter] Move where clause to the end of declaration
Dmitri GribenkoDmitri Gribenko
e06d676d756MMerge pull request #4615 from apple/tests-mkdir-pTests: use 'mkdir -p'
Dmitri GribenkoDmitri Gribenko
55864d10cbcTests: use 'mkdir -p'
Dmitri GribenkoDmitri Gribenko
e6a7d07385bMMerge pull request #4613 from apple/stdlib-remove-unused-unicode-tablestdlib: remove an unused Unicode data table
Dmitri GribenkoDmitri Gribenko
27edca2632bMMerge pull request #4614 from apple/stdlib-fix-coding-stylestdlib: fix coding style
Dmitri GribenkoDmitri Gribenko
31d3bb61988MMerge pull request #4612 from apple/stdlib-string-hashing-movestdlib: move 'String : Hashable' conformance to a separate file
Dmitri GribenkoDmitri Gribenko
31f7a0a56b0stdlib: fix coding style
Dmitri GribenkoDmitri Gribenko
e7650912171stdlib: remove an unused Unicode data table
Dmitri GribenkoDmitri Gribenko
c314b599fc5stdlib: move 'String : Hashable' conformance to a separate fileI'm about to add more code around it.
swift-ciswift-ci
897de2c39deMMerge pull request #4606 from swiftix/master
Doug GregorDoug Gregor
f47fc34a982[Scope map] Document the ASTScope class.
Doug GregorDoug Gregor
69adfacb717[Scope map] Deal with some previously-broken ASTs
Doug GregorDoug Gregor
c612f4feda7[Scope map] Add support for querying the immediate and nearest enclosing DeclContexts of a scope.
Doug GregorDoug Gregor
8e39f3e0cd1[Scope map] Model the scopes of default arguments.
Doug GregorDoug Gregor
ed173d2fbcd[Scope map] Explicitly model pattern bindings and their initializers.Consistently model all pattern bindings in the scope map, as well as having specific nodes for their initializers. This provides us with more consistency (the declarations are represented) as well as giving us a scope we can use to extract the DeclContext for a non-local initializer.
Doug GregorDoug Gregor
84b043365cb[Scope map] Add a scope node for top-level code declarations.
Doug GregorDoug Gregor
35888ee0c21[Scope map] Always introduce a node for AbstractFunctionDecls.Part of making the scope map subsume the DeclContext change, so we can identify the nearest enclosing DeclContext.
Doug GregorDoug Gregor
65c1bd2112d[Scope map] Cache the source range for a scope node, once computed.Source ranges are non-trivial to compute, small to store, and used often. Cache 'em.
Doug GregorDoug Gregor
412d1d5e1e4[Scope map] Introduce an operation to find the innermost scope based on a given source location.Given a source location, we can find the innermost enclosing scope that describes that source location. Introduce this operation into the scope map, then add a testing mode where we probe the scope map at specifi locations to see what we find. Test for: 1) Finding the right innermost enclosing scope, and 2) That we're only expanding the part of the scope map that is needed to identify that scope.
Doug GregorDoug Gregor
eabf6d058c3Check overlap of AST nodes.
Doug GregorDoug Gregor
b50ba75458bTighten up out-of-order checking, fixing up some issues with computed properties in local scopes.
Doug GregorDoug Gregor
4d9a92d898cSplit guard statement into three non-overlapping children: * A child to evaluate the conditions, which covers expressions in the conditions * A child for the 'else' body, which does not have access to the names in the conditions * A child for the continuation, which re-introduces the names in the conditions for the rest of the bodyNow we can assert that the only out-of-order case is for accessors.
Doug GregorDoug Gregor
d1945e7f536[Scope map] Add top-level code declaration support.
Doug GregorDoug Gregor
9a216776630Add support for closures
Doug GregorDoug Gregor
9ea2fab6b93Add support for getters/setters.
Doug GregorDoug Gregor
d1ce3b82ef2Add support for the C-style 'for' statement.
Doug GregorDoug Gregor
b3855c90575Add switch/case support
Doug GregorDoug Gregor
1e52d53ae23Add support for do-catch
Doug GregorDoug Gregor
8c319609003Add support for for-each statements
Doug GregorDoug Gregor
ebad77e1afdAdd support for repeat-while.
Doug GregorDoug Gregor
c775d944783[Scope map] Add support for conditional statements.
Doug GregorDoug Gregor
b6a93246ac0[Scope map] Use continuations for local declarations that introduce scopes.
Doug GregorDoug Gregor
4e214687cae[WIP Name binding] Introduce a basic 'scope map' to model scopes in the AST.The scope map models all of the name lookup scopes within a source file. It can be queried by source location to find the innermost scope that contains that source location. Then, one can follow the parent pointers in the scope to enumerate the enclosing scopes. The scope map itself is lazily constructed, only creating scope map nodes when required implicitly (e.g, when searching for a particu...