RecordsModule

PackageReified.Schema.Contracts
The record frontend: parses F# source with the F# compiler's syntax tree (no type checking) and lowers [<DeriveSchema>]-marked records into the same ContractDecl AST the .contract parser produces, so both entry points share the resolver and emitter. Attributes and literals are read from source text; nothing runs at runtime.

Summary

NameSignatureSynopsis
parseRecords.parse naming filePath sourceTextParses one F# source file and lowers its marked records.

parse

Records.parse naming filePath sourceText
Member
Parses one F# source file and lowers its marked records. Returns a contract file whose Contracts list is empty when the file declares no [<DeriveSchema>] records.

Parameters

NameTypeDescription
namingSchemaNaming
filePathstring
sourceTextstring

Returns

Result<ContractFile, ContractDiagnostic list>