Skip to content

Commit 880792e

Browse files
roboz0redgarfgp
andauthored
Add FS-1012 (#74)
Co-authored-by: Edgar Gonzalez <egonzalez@totallymoney.com>
1 parent c00b1e8 commit 880792e

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

spec/rfc-status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
| F# 4.1 | FS-1008 | [Struct Records](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1008-struct-records.md) | |
2222
| F# 4.1 | FS-1009 | [Mutually Referential Types and Modules in Single Scope](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1009-mutually-referential-types-and-modules-single-scope.md) | |
2323
| F# 4.1 | FS-1010 | [Add Map.count](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1010-add-map-count.md) | This specifies some details of the `FSharp.Core` library, which is not part of this spec (except for the basic items listed in [§18](https://fsharp.github.io/fslang-spec/the-f-library-fsharpcoredll/)) |
24-
| F# 4.1 | FS-1012 | [Caller Info Attributes](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1012-caller-info-attributes.md) | |
24+
| F# 4.1 | FS-1012 | [Caller Info Attributes](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1012-caller-info-attributes.md) | [completed](https://github.com/fsharp/fslang-spec/pull/74) |
2525
| F# 4.1 | FS-1013 | [Enable Reflection Functionality on Portable Profiles](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1013-enable-reflection-functionality-on-portable-profiles.md) | |
2626
| F# 4.1 | FS-1014 | [Struct Discriminated Unions](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1014-struct-discriminated-unions.md) | |
2727
| F# 4.1 | FS-1015 | [Support for fixed](https://github.com/fsharp/fslang-design/tree/main/FSharp-4.1/FS-1015-support-for-fixed.md) | [completed](https://github.com/fsharp/fslang-spec/pull/65) |

spec/special-attributes-and-types.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This chapter describes attributes and types that have special significance to the F# compiler.
44

5-
## Custom Attributes Recognized by F#.
5+
## Custom Attributes Recognized by F\#
66

77
The following custom attributes have special meanings recognized by the F# compiler. Except where
88
indicated, the attributes may be used in F# code, in referenced assemblies authored in F#, or in
@@ -26,6 +26,9 @@ assemblies that are authored in other CLI languages.
2626
| System.Reflection.AssemblyProductAttribute <br> `[<AssemblyProduct(...)>]` | Attaches product name metadata to the compiled form of the assembly, such as the “ProductName” attribute in the Win32 version resource for the assembly. <br>This attribute may be used in both F# and imported assemblies. |
2727
| System.Reflection.AssemblyKeyFileAttribute <br> `[<AssemblyKeyFile(...)>]` | Indicates to the F# compiler how to sign an assembly. <br>This attribute may be used in both F# and imported assemblies. |
2828
| System.Reflection.DefaultMemberAttribute <br> `[<DefaultMember(...)>]` | When applied to a type, specifies the name of the indexer property for that type. <br>This attribute may be used in both F# and imported assemblies. |
29+
| System.Runtime.CompilerServices.CallerFilePathAttribute `[<CallerFilePath>]` | A string optional argument with this attribute will be given a runtime value matching the absolute file path of source of the callsite. <br>This attribute may be used in both F# and imported assemblies. |
30+
| System.Runtime.CompilerServices.CallerLineNumberAttribute `[<CallerLineNumber>]` | An integer optional argument with this attribute will be given a runtime value matching the line number of the source of the callsite. <br>This attribute may be used in both F# and imported assemblies. |
31+
| System.Runtime.CompilerServices.CallerMemberNameAttribute `[<CallerMemberName>]` | A string optional argument with this attribute will be given a runtime value matching the unqualified name of the enclosing member of the callsite. <br>This attribute may be used in both F# and imported assemblies. |
2932
| System.Runtime.CompilerServices.InternalsVisibleToAttribute `[<InternalsVisibleTo(...)>]` | Directs the F# compiler to permit access to the internals of the assembly. <br>This attribute may be used in both F# and imported assemblies. |
3033
| System.Runtime.CompilerServices.TypeForwardedToAttribute `[<TypeForwardedTo(...)>]` | Indicates a type redirection. <br>This attribute may be used only in imported non-F# assemblies. It is not permitted in F# code. |
3134
| System.Runtime.CompilerServices.ExtensionAttribute <br> `[<Extension(...)>]` | Indicates the compiled form of a C# extension member. <br>This attribute may be used only in imported non-F# assemblies. It is not permitted in F# code. |
@@ -64,7 +67,7 @@ assemblies that are authored in other CLI languages.
6467
| FSharp.Core.TypeProviderXmlDocAttribute | Specifies documentation for provided type definitions and provided members |
6568
| FSharp.Core.TypeProviderDefinitionLocationAttribute | Specifies location information for provided type definitions and provided members |
6669

67-
## Custom Attributes Emitted by F#.
70+
## Custom Attributes Emitted by F\#
6871

6972
The F# compiler can emit the following custom attributes:
7073

@@ -81,7 +84,7 @@ The F# compiler can emit the following custom attributes:
8184
| FSharp.Core.FSharpInterfaceDataVersionAttribute | Defines the schema number for the embedded binary resource for F#-specific interface and optimization data. |
8285
| FSharp.Core.OptionalArgumentAttribute | Indicates optional arguments to F# members. |
8386

84-
## Custom Attributes not Recognized by F#.
87+
## Custom Attributes not Recognized by F\#
8588

8689
The following custom attributes are defined in some CLI implementations and may appear to be
8790
relevant to F#. However, they either do not affect the behavior of the F# compiler, or result in an

0 commit comments

Comments
 (0)