Comments (3)
Fix is probably here, adding the second line below:
entity.AllFieldsAsList
|> List.filter (fun x -> not x.IsCompilerGenerated)
|> List.map (fun x -> FSharpRecordField(g, RecdFieldData.Recd (mkRecdFieldRef entity x.Name)))
Reviewing the use of FSharpRecordField and the data on the corresponding RecdField in the F# compiler, there are some other issues too.
- It looks like it is really be renamed to "FSharpField", i.e. including class fields (it already includes union fields)
- There are other attributes we should reveal, e.g. IsStatic, IsVolatile, IsZeroInit (called UsesDefaultValue when we expose it?).
- There is a question of how F# enum declarations will look through the API. Although enum declarations look superficially like union declarations in the syntax of the language, inside the compiler they are represented as an object model type with a set of static fields, each with a literal value. This is because thi is how they are compiled in .NET. We should probably just reveal these like this in the API, it's the simplest thing to do. This means FSharpField would need a LiteralValue property.
from fsharp-compiler-docs.
Is anyone going to work on this?
from fsharp-compiler-docs.
See 0.0.14. There is a property IsCompilerGenerated on FSharpField, FSharp.Formatting should now filter for that.
from fsharp-compiler-docs.
Related Issues (20)
- 404 for the release note on the F# Language HOT 4
- [Meta] Can't disable appveyor builds for this repo HOT 3
- How to use interpolated strings with FSharp.Compiler.Service (37.0)? HOT 2
- Driver.compileOfAst fails on Xamarin.Mac due to reference to .NET Core HOT 3
- how to set __SOURCE_DIRECTORY__ , File and TopLine on FsiEvaluationSession HOT 2
- FCS update? HOT 7
- Testhost.exe in Azure DevOps on Prime Pipeline hangs after switch from 36.0.3 to 37.0.0 version
- FCS v38.0 fails with the official sample in net472 app HOT 4
- Unable to find package 'FSharp.Compiler.Service.MSBuild.v12.0'
- Expression tree with anonymous type created incorrectly HOT 1
- FSharpCompilerService not working on .NETCore 3.1.12 due to mismatch version of the App ref directory HOT 1
- a syntax highlighter for fslex, fsyacc, F#
- TypeInitializationException in GetProjectOptionsFromScript in published console application HOT 4
- This repo now contains a doc build for FSharp.Compiler.Service
- Doc warnings
- Strict build of docs
- Broken links on docs homepage HOT 4
- Docs are broken, may be fixed by fsdocs 16.1.0 HOT 1
- `nativeint` docs 404 HOT 1
- Product-specific changelogs aren't rendered helpfully in the nav HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp-compiler-docs.