Browse Source

Alphabetize methods

master
Dylan Baker 5 years ago
parent
commit
2f5f91b2fe
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      src/parser.js

+ 6
- 4
src/parser.js View File

@@ -102,6 +102,12 @@ module.exports = class Parser {
102 102
     })
103 103
   }
104 104
 
105
+  identifier() {
106
+    return new AST.Identifier({
107
+      name: this.tokenStream.eat(tokenTypes.IDENTIFIER).value,
108
+    })
109
+  }
110
+
105 111
   lambda() {
106 112
     let parameters = []
107 113
 
@@ -123,10 +129,6 @@ module.exports = class Parser {
123 129
     })
124 130
   }
125 131
 
126
-  identifier() {
127
-    return new AST.Identifier({
128
-      name: this.tokenStream.eat(tokenTypes.IDENTIFIER).value,
129
-    })
130 132
   }
131 133
 
132 134
   number() {

Loading…
Cancel
Save