Reason Native
  • Docs
  • Help
  • GitHub

โ€บFile Context Printer

Overview

  • Introduction
  • Native Basics
  • Getting Started

Rely

  • Introduction
  • Quickstart
  • Guides

    • Setup and Teardown
    • Mock Functions

    API Reference

    • Basic API
    • Expect
  • Advanced

Console

  • Introduction
  • Quickstart
  • API

Pastel

  • Introduction
  • Quickstart
  • API
  • Console

Refmterr

  • Introduction
  • Quickstart

File Context Printer

  • Introduction
  • Quickstart
  • API

File Context Printer Introduction

File Context Printer allows for quick and easy extraction of code snippets from Reason and OCaml files - it is used internally by Rely to print differing snapshot cases.

FCP.printFile(
  "src/file-context-printer/test/DummyFile.re",
  ((7, 1), (7, 11)),
);
 4 โ”†  * This source code is licensed under the ...
 5 โ”†  * LICENSE file in the root directory of ...
 6 โ”†  */;
 7 โ”† let myFunction = () => print_endline("do something");
 8 โ”† 
 9 โ”† let ex = (arg) => {
10 โ”†     if(arg === true) {
โ† QuickstartQuickstart โ†’
Reason Native
Projects
RelyConsolePastelRefmterrFile Context Printer
More
GitHubStar
Facebook Open Source
Copyright ยฉ 2021 Facebook Inc.