Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 44 lines (33 sloc) 1.373 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
digraph finite_state_machine {
size="8,5"
rankdir = "LR"
node [fontname=Sans]


  /* Execution Contexts */
  node [shape=Mrecord, fillcolor=beige, style=filled];
  top [label="<__proto__>[ Scope ]|<description1>description1|<description2>description2|<makeClosure>makeClosure"];
  closure1 [label="<__proto__>[ Scope ]|<name>name"];
  closure2 [label="<__proto__>[ Scope ]|<name>name"];

  /* Normal Objects */
  node [shape = Mrecord, fillcolor=lightskyblue, style=filled];

  /* Function Objects */
  node [shape = Mrecord, fillcolor=orange, style=filled];
  fn_makeClosure [label="<__proto__>[ makeClosure(name) ]|\{ return function () \{…\} \}"];
  fn1 [label="<__proto__>[ λ() ]|\{return name\}|<__scope__>[scope]"];
  fn2 [label="<__proto__>[ λ() ]|\{return name\}|<__scope__>[scope]"];

  /* Literals */
  node [shape = plaintext, fillcolor=gray92, style="filled,rounded"];
  cloe [label="\"Cloe the Closure\""]
  albert [label="\"Albert the Awesome\""]

  /* References */
  top:makeClosure -> fn_makeClosure:__proto__;
  top:description1 -> fn1:__proto__;
  top:description2 -> fn2:__proto__;
  closure1:name -> cloe;
  closure2:name -> albert;
  fn1:__scope__ -> closure1:__proto__;
  fn2:__scope__ -> closure2:__proto__;

  /* Inheritance Chains */
  edge [style=dashed]
  closure1:__proto__ -> top:__proto__;
  closure2:__proto__ -> top:__proto__;



}
Something went wrong with that request. Please try again.