Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
ec79e85
Allow access modifies to auto properties
ijklam Feb 10, 2024
47f34ab
move types
ijklam Feb 10, 2024
76e615b
update release note
ijklam Feb 10, 2024
5c3b230
Put it under preview flag
ijklam Feb 10, 2024
f974953
add and update baseline
ijklam Feb 10, 2024
3588ada
move checks leave parser
ijklam Feb 11, 2024
09311ef
update ServiceNavigation; fantomas
ijklam Feb 11, 2024
dc04a91
add tests
ijklam Feb 11, 2024
be9cec3
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Mar 1, 2024
6cf5d1c
fix tests
ijklam Mar 1, 2024
d7ae5fb
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Mar 1, 2024
dbc52d4
fix tests
ijklam Mar 1, 2024
f8c2f5b
Merge branch 'access-modifies-to-auto-properties' of https://github.c…
ijklam Mar 1, 2024
fbe1736
fix tests
ijklam Mar 1, 2024
8e3a529
fix tests
ijklam Mar 1, 2024
88e1678
fix
ijklam Mar 1, 2024
304348f
fix
ijklam Mar 1, 2024
f82df9e
fix
ijklam Mar 1, 2024
97933a5
fix
ijklam Mar 1, 2024
5a2d1fe
add spaces
ijklam Mar 1, 2024
55e9081
fix grammar
ijklam Mar 5, 2024
01d093e
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Mar 7, 2024
34a0010
support in signature file
ijklam Mar 12, 2024
25b75f6
update test
ijklam Mar 12, 2024
6c4ea36
Merge branch 'main' into access-modifies-to-auto-properties
ijklam Mar 12, 2024
eba76af
Update preview.md
ijklam Mar 12, 2024
a6d5a6d
fix
ijklam Mar 12, 2024
6d27474
fix
ijklam Mar 12, 2024
85f83c0
format
ijklam Mar 12, 2024
5d2ae12
put tooling new feature under langFeature flag
ijklam Mar 14, 2024
39d045b
format
ijklam Mar 14, 2024
bfde90f
fix typo
ijklam Mar 14, 2024
46fe0cc
Merge branch 'main' into access-modifies-to-auto-properties
ijklam Apr 7, 2024
4a2a754
fix test; format
ijklam Apr 7, 2024
14bfbad
fix test
ijklam Apr 7, 2024
dd957ee
fix test
ijklam Apr 7, 2024
fd2caaa
add test
ijklam Apr 7, 2024
316a9ea
typo
ijklam Apr 7, 2024
f027ffe
update baseline
ijklam Apr 8, 2024
fcc6d97
Merge branch 'dotnet:main' into access-modifies-to-auto-properties
ijklam Apr 8, 2024
9fcf95f
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Apr 25, 2024
49cbdad
Merge branch 'main' into access-modifies-to-auto-properties
ijklam Apr 29, 2024
9102fee
add error tcAccessModifiersNotAllowedInSRTPConstraint
ijklam Apr 29, 2024
97a6c59
fix build; check new feature and error under preview
ijklam Apr 29, 2024
d064e3c
format
ijklam Apr 29, 2024
5023f21
Merge branch 'main' into access-modifies-to-auto-properties
ijklam May 9, 2024
a0e2b55
fix xlf
ijklam May 9, 2024
86728d1
update test
ijklam May 9, 2024
79655c8
Merge branch 'main' into access-modifies-to-auto-properties
ijklam May 9, 2024
f6d775c
update xlf
ijklam May 9, 2024
8305a85
Merge branch 'main' into access-modifies-to-auto-properties
ijklam May 20, 2024
aa7790f
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii May 22, 2024
ede6c14
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Jun 26, 2024
0249ab4
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Jul 16, 2024
ecc647c
Fix tests
vzarytovskii Jul 16, 2024
70ba918
Updated release notes
vzarytovskii Jul 16, 2024
4438cd6
Merge branch 'main' into access-modifies-to-auto-properties
psfinaki Jul 22, 2024
b501108
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Jul 24, 2024
6838437
Update bsl
vzarytovskii Jul 24, 2024
c037354
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Jul 29, 2024
b344aea
Fix baseline
vzarytovskii Jul 29, 2024
d5a3509
Merge remote-tracking branch 'upstream/main' into access-modifies-to-…
ijklam Aug 10, 2024
dc427d8
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Aug 10, 2024
ba25173
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Aug 10, 2024
3adaf31
Merge branch 'main' into access-modifies-to-auto-properties
vzarytovskii Aug 12, 2024
fdce4c5
Update FSComp.txt
ijklam Aug 12, 2024
489e7fa
Some unfinished changes
ijklam Aug 12, 2024
ddb6302
Merge branch 'access-modifies-to-auto-properties' of https://github.c…
ijklam Aug 12, 2024
a708761
change release note
ijklam Aug 12, 2024
20a6b68
fix test
ijklam Aug 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/release-notes/.FSharp.Compiler.Service/9.0.100.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* Parser: recover on missing union case fields (PR [#17452](https://github.com/dotnet/fsharp/pull/17452))
* Parser: recover on missing union case field types (PR [#17455](https://github.com/dotnet/fsharp/pull/17455))
* Sink: report function domain type ([PR #17470](https://github.com/dotnet/fsharp/pull/17470))
* Allow access modifies to auto properties getters and setters ([PR 16687](https://github.com/dotnet/fsharp/pull/16687), [PR 16861](https://github.com/dotnet/fsharp/pull/16861), [Language suggestion #430](https://github.com/fsharp/fslang-suggestions/issues/430))
* Allow access modifies to auto properties getters and setters ([Language suggestion #430](https://github.com/fsharp/fslang-suggestions/issues/430), [PR 16687](https://github.com/dotnet/fsharp/pull/16687), [PR 16861](https://github.com/dotnet/fsharp/pull/16861), [PR 17522](https://github.com/dotnet/fsharp/pull/17522))
* Render C# nullable-analysis attributes in tooltips ([PR #17485](https://github.com/dotnet/fsharp/pull/17485))

### Changed
Expand Down
2 changes: 1 addition & 1 deletion docs/release-notes/.Language/preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Bidirectional F#/C# interop for 'unmanaged' constraint. ([PR #12154](https://github.com/dotnet/fsharp/pull/12154))
* Make `.Is*` discriminated union properties visible. ([Language suggestion #222](https://github.com/fsharp/fslang-suggestions/issues/222), [PR #16341](https://github.com/dotnet/fsharp/pull/16341))
* Allow returning bool instead of unit option for partial active patterns. ([Language suggestion #1041](https://github.com/fsharp/fslang-suggestions/issues/1041), [PR #16473](https://github.com/dotnet/fsharp/pull/16473))
* Allow access modifies to auto properties getters and setters ([PR 16687](https://github.com/dotnet/fsharp/pull/16687), [PR 16861](https://github.com/dotnet/fsharp/pull/16861), [Language suggestion #430](https://github.com/fsharp/fslang-suggestions/issues/430))
* Allow access modifies to auto properties getters and setters ([Language suggestion #430](https://github.com/fsharp/fslang-suggestions/issues/430), [PR 16687](https://github.com/dotnet/fsharp/pull/16687), [PR 16861](https://github.com/dotnet/fsharp/pull/16861), [PR 17522](https://github.com/dotnet/fsharp/pull/17522))
* Allow #nowarn to support the FS prefix on error codes to disable warnings ([Issue #17206](https://github.com/dotnet/fsharp/issues/16447), [PR #17209](https://github.com/dotnet/fsharp/pull/17209))
* Allow ParsedHashDirectives to have argument types other than strings ([Issue #17240](https://github.com/dotnet/fsharp/issues/16447), [PR #17209](https://github.com/dotnet/fsharp/pull/17209))
* Support empty-bodied computation expressions. ([Language suggestion #1232](https://github.com/fsharp/fslang-suggestions/issues/1232), [PR #17352](https://github.com/dotnet/fsharp/pull/17352))
Expand Down
8 changes: 4 additions & 4 deletions src/Compiler/FSComp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1771,10 +1771,10 @@ featureReuseSameFieldsInStructUnions,"Share underlying fields in a [<Struct>] di
3868,tcActivePatternArgsCountNotMatchOnlyPat,"This active pattern expects exactly one pattern argument, e.g., '%s pat'."
3868,tcActivePatternArgsCountNotMatchArgs,"This active pattern expects %d expression argument(s), e.g., '%s%s'."
3868,tcActivePatternArgsCountNotMatchArgsAndPat,"This active pattern expects %d expression argument(s) and a pattern argument, e.g., '%s%s pat'."
featureAllowAccessModifiersToAutoPropertiesGettersAndSetters,"Allow access modifiers to auto properties getters and setters"
3869,tcAccessModifiersNotAllowedInSRTPConstraint,"Access modifiers cannot be applied to an SRTP constraint."
featureParsedHashDirectiveArgumentNonString,"# directives with non-quoted string arguments"
3870,featureParsedHashDirectiveUnexpectedInteger,"Unexpected integer literal '%d'."
3870,featureParsedHashDirectiveUnexpectedIdentifier,"Unexpected identifier '%s'."
3869,featureParsedHashDirectiveUnexpectedInteger,"Unexpected integer literal '%d'."
3869,featureParsedHashDirectiveUnexpectedIdentifier,"Unexpected identifier '%s'."
featureEmptyBodiedComputationExpressions,"Support for computation expressions with empty bodies: builder {{ }}"
3870,parsExpectingUnionCaseField,"Expecting union case field"
featureAllowAccessModifiersToAutoPropertiesGettersAndSetters,"Allow access modifiers to auto properties getters and setters"
3871,tcAccessModifiersNotAllowedInSRTPConstraint,"Access modifiers cannot be applied to an SRTP constraint."
2 changes: 1 addition & 1 deletion src/Compiler/SyntaxTree/SyntaxTree.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ type SynComponentInfo =
/// Gets the syntax range of this construct
member Range: range

/// Represents two access
/// Represents one or two access modifier(s) in a property signature
[<NoEquality; NoComparison; RequireQualifiedAccess>]
type SynValSigAccess =
| Single of accessibility: SynAccess option
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,10 +1282,10 @@ let inline length4 (x: ^a when ^a: (member public get_Length: unit -> int)) = x.
|> typecheck
|> shouldFail
|> withDiagnostics [
(Error 3869, Line 2, Col 43, Line 2, Col 49, "Access modifiers cannot be applied to an SRTP constraint.")
(Error 3869, Line 3, Col 61, Line 3, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Error 3869, Line 4, Col 61, Line 4, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Error 3869, Line 5, Col 44, Line 5, Col 50, "Access modifiers cannot be applied to an SRTP constraint.")
(Error 3871, Line 2, Col 43, Line 2, Col 49, "Access modifiers cannot be applied to an SRTP constraint.")
(Error 3871, Line 3, Col 61, Line 3, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Error 3871, Line 4, Col 61, Line 4, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Error 3871, Line 5, Col 44, Line 5, Col 50, "Access modifiers cannot be applied to an SRTP constraint.")
]

[<Fact>]
Expand All @@ -1300,10 +1300,10 @@ let inline length4 (x: ^a when ^a: (member public get_Length: unit -> int)) = x.
|> typecheck
|> shouldFail
|> withDiagnostics [
(Warning 3869, Line 2, Col 43, Line 2, Col 49, "Access modifiers cannot be applied to an SRTP constraint.")
(Warning 3869, Line 3, Col 61, Line 3, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Warning 3869, Line 4, Col 61, Line 4, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Warning 3869, Line 5, Col 44, Line 5, Col 50, "Access modifiers cannot be applied to an SRTP constraint.")
(Warning 3871, Line 2, Col 43, Line 2, Col 49, "Access modifiers cannot be applied to an SRTP constraint.")
(Warning 3871, Line 3, Col 61, Line 3, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Warning 3871, Line 4, Col 61, Line 4, Col 67, "Access modifiers cannot be applied to an SRTP constraint.")
(Warning 3871, Line 5, Col 44, Line 5, Col 50, "Access modifiers cannot be applied to an SRTP constraint.")
]

[<FactForNETCOREAPP>]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ printfn "Hello, World"
|> asExe
|> compile
|> shouldFail
|> withDiagnostics[
|> withDiagnostics [
(Warning 3353, Line 2, Col 9, Line 2, Col 11, "Invalid directive '#r '")
(Warning 213, Line 3, Col 9, Line 3, Col 14, "'' is not a valid assembly name")
(Error 3870, Line 4, Col 12, Line 4, Col 17, "Unexpected identifier 'Ident'.")
(Error 3870, Line 5, Col 12, Line 5, Col 22, "Unexpected identifier 'Long.Ident'.")
(Error 3870, Line 6, Col 12, Line 6, Col 15, "Unexpected integer literal '123'.")
]
(Error 3869, Line 4, Col 12, Line 4, Col 17, "Unexpected identifier 'Ident'.")
(Error 3869, Line 5, Col 12, Line 5, Col 22, "Unexpected identifier 'Long.Ident'.")
(Error 3869, Line 6, Col 12, Line 6, Col 15, "Unexpected integer literal '123'.")
]