File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -724,16 +724,19 @@ class GenericTypeInstantiationExpr extends Expr {
724
724
* ```go
725
725
* a[1:3]
726
726
* a[1:3:5]
727
+ * a[1:]
728
+ * a[:3]
729
+ * a[:]
727
730
* ```
728
731
*/
729
732
class SliceExpr extends @sliceexpr, Expr {
730
733
/** Gets the base of this slice expression. */
731
734
Expr getBase ( ) { result = this .getChildExpr ( 0 ) }
732
735
733
- /** Gets the lower bound of this slice expression. */
736
+ /** Gets the lower bound of this slice expression, if any . */
734
737
Expr getLow ( ) { result = this .getChildExpr ( 1 ) }
735
738
736
- /** Gets the upper bound of this slice expression. */
739
+ /** Gets the upper bound of this slice expression, if any . */
737
740
Expr getHigh ( ) { result = this .getChildExpr ( 2 ) }
738
741
739
742
/** Gets the maximum of this slice expression, if any. */
You can’t perform that action at this time.
0 commit comments