You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="hljs-keyword">if</span> tag <spanclass="hljs-keyword">in</span> IMPLICIT_END <spanclass="hljs-keyword">or</span> tag <spanclass="hljs-keyword">in</span> CALL_CLOSERS <spanclass="hljs-keyword">and</span> newLine
@@ -746,11 +763,11 @@ <h1>rewriter.coffee</h1>
746
763
</li>
747
764
748
765
749
-
<liid="section-29">
766
+
<liid="section-30">
750
767
<divclass="annotation">
751
768
752
769
<divclass="pilwrap ">
753
-
<aclass="pilcrow" href="#section-29">¶</a>
770
+
<aclass="pilcrow" href="#section-30">¶</a>
754
771
</div>
755
772
<p>Close implicit calls when reached end of argument list</p>
756
773
@@ -762,11 +779,11 @@ <h1>rewriter.coffee</h1>
762
779
</li>
763
780
764
781
765
-
<liid="section-30">
782
+
<liid="section-31">
766
783
<divclass="annotation">
767
784
768
785
<divclass="pilwrap ">
769
-
<aclass="pilcrow" href="#section-30">¶</a>
786
+
<aclass="pilcrow" href="#section-31">¶</a>
770
787
</div>
771
788
<p>Close implicit objects such as:
772
789
return a: 1, b: 2 unless true</p>
@@ -780,11 +797,11 @@ <h1>rewriter.coffee</h1>
780
797
</li>
781
798
782
799
783
-
<liid="section-31">
800
+
<liid="section-32">
784
801
<divclass="annotation">
785
802
786
803
<divclass="pilwrap ">
787
-
<aclass="pilcrow" href="#section-31">¶</a>
804
+
<aclass="pilcrow" href="#section-32">¶</a>
788
805
</div>
789
806
<p>Close implicit objects when at end of line, line didn’t end with a comma
790
807
and the implicit object didn’t start the line or the next line doesn’t look like
@@ -802,11 +819,11 @@ <h1>rewriter.coffee</h1>
802
819
</li>
803
820
804
821
805
-
<liid="section-32">
822
+
<liid="section-33">
806
823
<divclass="annotation">
807
824
808
825
<divclass="pilwrap ">
809
-
<aclass="pilcrow" href="#section-32">¶</a>
826
+
<aclass="pilcrow" href="#section-33">¶</a>
810
827
</div>
811
828
<p>Close implicit object if comma is the last character
812
829
and what comes after doesn’t look like it belongs.
@@ -827,11 +844,11 @@ <h1>rewriter.coffee</h1>
827
844
</li>
828
845
829
846
830
-
<liid="section-33">
847
+
<liid="section-34">
831
848
<divclass="annotation">
832
849
833
850
<divclass="pilwrap ">
834
-
<aclass="pilcrow" href="#section-33">¶</a>
851
+
<aclass="pilcrow" href="#section-34">¶</a>
835
852
</div>
836
853
<p>When nextTag is OUTDENT the comma is insignificant and
837
854
should just be ignored so embed it in the implicit object.</p>
@@ -849,11 +866,11 @@ <h1>rewriter.coffee</h1>
849
866
</li>
850
867
851
868
852
-
<liid="section-34">
869
+
<liid="section-35">
853
870
<divclass="annotation">
854
871
855
872
<divclass="pilwrap ">
856
-
<aclass="pilcrow" href="#section-34">¶</a>
873
+
<aclass="pilcrow" href="#section-35">¶</a>
857
874
</div>
858
875
<p>Add location data to all tokens generated by the rewriter.</p>
859
876
@@ -879,11 +896,11 @@ <h1>rewriter.coffee</h1>
879
896
</li>
880
897
881
898
882
-
<liid="section-35">
899
+
<liid="section-36">
883
900
<divclass="annotation">
884
901
885
902
<divclass="pilwrap ">
886
-
<aclass="pilcrow" href="#section-35">¶</a>
903
+
<aclass="pilcrow" href="#section-36">¶</a>
887
904
</div>
888
905
<p>OUTDENT tokens should always be positioned at the last character of the
889
906
previous token, so that AST nodes ending in an OUTDENT token end up with a
@@ -907,11 +924,11 @@ <h1>rewriter.coffee</h1>
907
924
</li>
908
925
909
926
910
-
<liid="section-36">
927
+
<liid="section-37">
911
928
<divclass="annotation">
912
929
913
930
<divclass="pilwrap ">
914
-
<aclass="pilcrow" href="#section-36">¶</a>
931
+
<aclass="pilcrow" href="#section-37">¶</a>
915
932
</div>
916
933
<p>Because our grammar is LALR(1), it can’t handle some single-line
917
934
expressions that lack ending delimiters. The <strong>Rewriter</strong> adds the implicit
@@ -962,11 +979,11 @@ <h1>rewriter.coffee</h1>
962
979
</li>
963
980
964
981
965
-
<liid="section-37">
982
+
<liid="section-38">
966
983
<divclass="annotation">
967
984
968
985
<divclass="pilwrap ">
969
-
<aclass="pilcrow" href="#section-37">¶</a>
986
+
<aclass="pilcrow" href="#section-38">¶</a>
970
987
</div>
971
988
<p>Tag postfix conditionals as such, so that we can parse them with a
972
989
different precedence.</p>
@@ -995,11 +1012,11 @@ <h1>rewriter.coffee</h1>
995
1012
</li>
996
1013
997
1014
998
-
<liid="section-38">
1015
+
<liid="section-39">
999
1016
<divclass="annotation">
1000
1017
1001
1018
<divclass="pilwrap ">
1002
-
<aclass="pilcrow" href="#section-38">¶</a>
1019
+
<aclass="pilcrow" href="#section-39">¶</a>
1003
1020
</div>
1004
1021
<p>Generate the indentation tokens, based on another token on the same line.</p>
0 commit comments