mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
grammar: removed a remnant of Slice
This commit is contained in:
@@ -178,9 +178,7 @@
|
|||||||
return new Accessor(new Literal('prototype'));
|
return new Accessor(new Literal('prototype'));
|
||||||
}), o("SOAK_ACCESS Identifier", function() {
|
}), o("SOAK_ACCESS Identifier", function() {
|
||||||
return new Accessor($2, 'soak');
|
return new Accessor($2, 'soak');
|
||||||
}), o("Index"), o("Slice", function() {
|
}), o("Index")
|
||||||
return new Slice($1);
|
|
||||||
})
|
|
||||||
],
|
],
|
||||||
Index: [
|
Index: [
|
||||||
o("INDEX_START Expression INDEX_END", function() {
|
o("INDEX_START Expression INDEX_END", function() {
|
||||||
|
|||||||
240
lib/parser.js
240
lib/parser.js
File diff suppressed because one or more lines are too long
@@ -244,7 +244,6 @@ grammar =
|
|||||||
o "::", -> new Accessor(new Literal('prototype'))
|
o "::", -> new Accessor(new Literal('prototype'))
|
||||||
o "SOAK_ACCESS Identifier", -> new Accessor $2, 'soak'
|
o "SOAK_ACCESS Identifier", -> new Accessor $2, 'soak'
|
||||||
o "Index"
|
o "Index"
|
||||||
o "Slice", -> new Slice $1
|
|
||||||
]
|
]
|
||||||
|
|
||||||
# Indexing into an object or array using bracket notation.
|
# Indexing into an object or array using bracket notation.
|
||||||
|
|||||||
Reference in New Issue
Block a user