Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Pulling in changes from PR 358#375

Merged
bettinaheim merged 3 commits intomarshallsa/rename-laterfrom
beheim/rename-later
Mar 16, 2020
Merged

Pulling in changes from PR 358#375
bettinaheim merged 3 commits intomarshallsa/rename-laterfrom
beheim/rename-later

Conversation

@bettinaheim
Copy link
Contributor

No description provided.

@bettinaheim bettinaheim requested a review from bamarsha March 16, 2020 15:33
Copy link
Contributor

@bamarsha bamarsha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! This got lost since I branched off of the feature branch, instead of #360's branch.

@bettinaheim bettinaheim merged commit 85fc5e3 into marshallsa/rename-later Mar 16, 2020
@bettinaheim bettinaheim deleted the beheim/rename-later branch March 16, 2020 18:03
bamarsha added a commit that referenced this pull request Mar 17, 2020
…#345)

* Keep track of modifiers for callables and types

* Make Modifiers a struct so serialization works

* Remove runtime tests until compiler version is updated

* Add converter and update serialization test

* Update transformation and walker

* Move modifiers out of the signatures

* Fix attribute reader test

* Undo superfluous changes

* Update documentation for DefaultAccess

* Re-enable execution tests

* Add parsing for access modifiers

* Update syntax highlighting for private and internal

* Add TODOs for parsing the final syntax

* Fix code style for creating modifiers record

* Parse modifiers before fragment headers

* Include modifiers in the fragment header parser

* Move private/internal to a separate list

* Make getFragments a normal value

* Remove let rec from fragment parsers

* Move fragment header consistency check to do-block

* Add access modifiers to code completion

* Include modifiers in code completion tests

* optR makes more sense this way

* Fix fragment being created without consuming input

* Check for access when resolving callables

* Check access when resolving types

* Add error code for inaccessible type in a qualified symbol

* Show specific error message for inaccessible type in open NS

* Add custom error message for inaccessible callable (unqualified) - needs cleanup

* Show specific error message for inaccessible qualified callables

* Rename ContainsCallable/Type to TryFindCallable/Type

* Make errors for using less accessible types in more accessible declarations

* Reword description of Ambiguous

* Update comments for NamespacesContaining{Callable, Type}

* Clarify checkUdt parameter in doc comment

* Update src/QsCompiler/Core/SymbolTable.fs

Co-Authored-By: bettinaheim <34236215+bettinaheim@users.noreply.github.com>

* NonSupportedException -> NotSupportedException

* Add tests for access modifiers

* Add a few more tests

* Add tests for access modifiers in a referenced assembly

* Update access modifiers test namespace

* Skip access modifier tests for now

* Add tests for type constructor accessibility

* Re-enable tests except for redeclarations of references

* Replace tabs with spaces

* Use more descriptive names

* Add access modifiers to hover information

* Add access modifiers to Q# code output

* Add test for skipping inaccessible items in documentation

* Skip private and internal items when generating documentation

* Add copyright headers

* Add doc comment for new test

* Clarify doc comment for WriteToStream

* Hide inaccessible callables and types from code completion

* Update namespace suggestion code actions for access modifiers

* Add QsNullable.Bind

* Refactor this if statement a little

* Move nsName == null check earlier

* Update doc comments for namespace suggestions

* Update symbol table documentation for access modifiers

* Remove the private access modifier

* Move internal keyword to operations syntax group

* Move "References" tests to other test groups

* Allow shadowing imported internal callables

* Mangle names in CompilationUnit.Build

* Add TODO about reversing name mangling

* Update comments about accessibility in Namespace class

* Check partial NS before ref in TryAddCallableSpecialization

* Skip calling FromSingleSource in NS.TryFindCallable

* Allow shadowing imported internal types

* Enable redeclaration test

* Remove unused functions

* Check source then references in TryGetAttributeDeclaredIn

* Fix bug in PossibleQualifications

* Fix bug in resolveInOpenNamespaces

* Re-enable exception in SpecializationsDefinedInAllSources

* Re-enable assertion about external specializations

* Add name mangling tests

* Add test for using same internal name in multiple references

* No diagnostics for "conflicting" internal names

* Move ResolutionResult to SymbolResolution.fs

* Add comment about name tagging

* Use Library2 instead of Library1Copy

* Ignore async tasks instead of waiting

* Disable multiple reference test

* Use PascalCase in ResolutionResult module

* Check if source is in references dictionary

* Use reversible name mangling

* Add missing doc comments

* Add missing underscores

* Remove unnecessary thunking

* Remove unnecessary nullability

* Add test for grouping internal specializations

* Refactor creating references

* Skip test for now

* Pulling in changes from PR 358 (#375)

* Bringing over change from PR #360; avoid shadowing

* Re-enable multiple internal references test

* Update symbol table

* Group specializations by source file

* Fix alignment

* Only group specializations by source if callable is internal

* Re-add explicit this

* getting updates from master

* Undo checks for current NS in code actions/completion

* Check if methodDecl is null

Co-authored-by: bettinaheim <34236215+bettinaheim@users.noreply.github.com>
Co-authored-by: Bettina Heim <beheim@microsoft.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants