forked from swiftlang/swift-syntax
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge remote-tracking branch 'upstream/main' into wasm32-wasi-test #61
Merged
Conversation
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
…raction in `LookupName`.
…dd a way to customize lookup behavior through `LookupConfig`/
Similar treatment as 'SyntaxVisitor'. Reuse `Syntax.Info` when it's safe to do so (i.e. uniquely referenced)
Returnning array literal from computed property allocates and initializes the array buffer every time it's called, and they are deallocated after use. Make them stored properties so they stay in memory.
Building standard operator table is not trivial. Make is an immutable stored property so it stays in memory once it's initialized.
Factor out 'Syntax.Info' reusing into 'SyntaxNodeFactory' and 'SyntaxInfoRepository' as the backing storage. The underlying storage now uses a fixed length 'ManagedBuffer' to avoid 'ContiguousArray' overhead.
Use manually allocated 'UnsafeBufferPointer' to avoid 'ContiguousArray' overhead. Pre-initialize the buffer with the "old" layout at once, and update each element only when updated.
This was a generic function only for casting the result at the end. Hoist the casting part to the caller and make 'visitChilden()' non-generic.
Simpify the iteration code. Also, stop counting 'childIndex' as it can be retrieved from the absolute info.
Use 'SyntaxNodeFactory' in 'SyntaxVisitor' too. Thanks to the simplified implementation, it improves the performance a bit.
Initializer parameters are "+1" in caller site, but these casting initializers only uses the ._syntaxNode and don't store the parameter itself.
- instead of treating as unrecognized, try to parse the remaining tokens as a type even if the preceding colon is missing
Workaround for a Foundation bug that can return non-nil URL for "https://not a url.com".
Add an article about using `SWIFTSYNTAX_ENABLE_RAWSYNTAX_VALIDATION`
Package cross-module-optimization allows non-resilient access between modules as long as they share the same package name.
[Syntax] Mark the parameter of casting initializers '__shared'
CONTRIBUTING.md: Update for new Swift.org section about release branch PRs
There's no performance reason to return 'nil'
[SwiftLexicalLookup][GSoC] Add initial name lookup functionality
…body to be misparsed `get {}` was parsed by `Parser.parseDeclaration()` but it doesn't parse accessors. `AccessorDeclSyntax` needs a special implementation of `init(header:bodyBuilder:)`. rdar://131720084
…nitializer Fix issue that caused `AccessorDeclSyntax` initializer with header + body to be misparsed
If swift-syntax is being built with `-cxx-interoperability-mode=default`, it fails because of `annot initialize a variable of type 'AtomicBool *' with an rvalue of type 'void *'`. Add a cast here to fix the build issue. rdar://129252735
Fix build warnings
… `expansion` method that takes a `conformingTo` parameter The `expansion` method that takes a `conformingTo` has been defaulted to be source-compatible with older versions of swift-syntax that required a version of the `expansion` function without the `conformingTo` parameter. That meant that you could state a conformance to `MemberMacro` without implementing any methods and you wouldn’t get any compile time diagnostics. Deprecate the forwarding default implementation so that you get a warning if you are relying on it.
…stic] returns This provides a more consistent diagnostics story.
…anup Address most of the code review comments on the SwiftIfConfig library
[SwiftLexicalLookup][GSoC] Fix Swift 5.8 compatibility and update documentation.
… file as `file private`
Make position marker in `ActiveRegionTests` be ascending
[CMake] Enable package CMO only in newer compiler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.