File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ private import Constant
4
4
private import TreeSitter
5
5
private import codeql.ruby.ast.internal.Scope
6
6
private import codeql.ruby.controlflow.CfgNodes
7
- private import codeql.NumberUtils
7
+ private import codeql.util.Numbers
8
8
9
9
int parseInteger ( Ruby:: Integer i ) {
10
10
exists ( string s | s = i .getValue ( ) .toLowerCase ( ) .replaceAll ( "_" , "" ) |
Original file line number Diff line number Diff line change 1
1
/** Provides a class hierarchy corresponding to a parse tree of regular expressions. */
2
2
3
3
private import internal.ParseRegExp
4
- private import codeql.NumberUtils
4
+ private import codeql.util.Numbers
5
5
private import codeql.ruby.ast.Literal as Ast
6
6
private import codeql.Locations
7
7
private import codeql.regex.nfa.NfaUtils as NfaUtils
Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ dependencies:
9
9
codeql/regex : ${workspace}
10
10
codeql/ssa : ${workspace}
11
11
codeql/tutorial : ${workspace}
12
+ codeql/util : ${workspace}
12
13
dataExtensions :
13
14
- codeql/ruby/frameworks/**/model.yml
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ private int toHex(string hex) {
104
104
* Gets the value of 16 to the power of `n`. Holds only for `n` in the range
105
105
* 0..7 (inclusive).
106
106
*/
107
- int sixteenToThe ( int n ) {
107
+ private int sixteenToThe ( int n ) {
108
108
// 16**7 is the largest power of 16 that fits in an int.
109
109
n in [ 0 .. 7 ] and result = 1 .bitShiftLeft ( 4 * n )
110
110
}
@@ -113,7 +113,7 @@ int sixteenToThe(int n) {
113
113
* Gets the value of 8 to the power of `n`. Holds only for `n` in the range
114
114
* 0..10 (inclusive).
115
115
*/
116
- int eightToThe ( int n ) {
116
+ private int eightToThe ( int n ) {
117
117
// 8**10 is the largest power of 8 that fits in an int.
118
118
n in [ 0 .. 10 ] and result = 1 .bitShiftLeft ( 3 * n )
119
119
}
@@ -122,7 +122,7 @@ int eightToThe(int n) {
122
122
* Gets the value of 2 to the power of `n`. Holds only for `n` in the range
123
123
* 0..30 (inclusive).
124
124
*/
125
- int twoToThe ( int n ) { n in [ 0 .. 30 ] and result = 1 .bitShiftLeft ( n ) }
125
+ private int twoToThe ( int n ) { n in [ 0 .. 30 ] and result = 1 .bitShiftLeft ( n ) }
126
126
127
127
/** Gets `s` with any leading "0" characters removed. */
128
128
bindingset [ s]
You can’t perform that action at this time.
0 commit comments