File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1828,6 +1828,11 @@ nodes:
1828
1828
type : constant[]
1829
1829
- name : class_keyword_loc
1830
1830
type : location
1831
+ comment : |
1832
+ Represents the location of the `class` keyword.
1833
+
1834
+ class Foo end
1835
+ ^^^^^
1831
1836
- name : constant_path
1832
1837
type : node
1833
1838
kind :
@@ -1836,18 +1841,43 @@ nodes:
1836
1841
- on error : CallNode # class 0.X end
1837
1842
- name : inheritance_operator_loc
1838
1843
type : location?
1844
+ comment : |
1845
+ Represents the location of the `<` operator.
1846
+
1847
+ class Foo < Bar
1848
+ ^
1839
1849
- name : superclass
1840
1850
type : node?
1841
1851
kind : non-void expression
1852
+ comment : |
1853
+ Represents the superclass of the class.
1854
+
1855
+ class Foo < Bar
1856
+ ^^^
1842
1857
- name : body
1843
1858
type : node?
1844
1859
kind :
1845
1860
- StatementsNode
1846
1861
- BeginNode
1862
+ comment : |
1863
+ Represents the body of the class.
1864
+
1865
+ class Foo
1866
+ foo
1867
+ ^^^
1847
1868
- name : end_keyword_loc
1848
1869
type : location
1870
+ comment : |
1871
+ Represents the location of the `end` keyword.
1872
+
1873
+ class Foo end
1874
+ ^^^
1849
1875
- name : name
1850
1876
type : constant
1877
+ comment : |
1878
+ The name of the class.
1879
+
1880
+ class Foo end # name `:Foo`
1851
1881
comment : |
1852
1882
Represents a class declaration involving the `class` keyword.
1853
1883
You can’t perform that action at this time.
0 commit comments