Remove old upgrades

This commit is contained in:
Nick Rolfe
2021-03-08 18:28:23 +00:00
parent be102e24f6
commit 56e03d7ed4
15 changed files with 0 additions and 9072 deletions

View File

@@ -1,26 +0,0 @@
class Superclass extends @superclass {
string toString() { result = "" }
}
class Class extends @class {
string toString() { result = "" }
}
class ClassChildType extends @class_child_type {
string toString() { result = "" }
}
// Select all non-superclass children.
// If the 0th child is a superclass, shuffle all the indexes down one. (Having
// superclass children at other indexes is allowed in the old dbscheme, but
// doesn't happen in practice, given the tree-sitter grammar).
from Class c, int oldIndex, ClassChildType child, int newIndex
where
class_child(c, oldIndex, child) and
(
if exists(Superclass sc | class_child(c, 0, sc))
then newIndex = oldIndex - 1
else newIndex = oldIndex
) and
not child instanceof Superclass
select c, newIndex, child

View File

@@ -1,12 +0,0 @@
class Superclass extends @superclass {
string toString() { result = "" }
}
class Class extends @class {
string toString() { result = "" }
}
// Select the 0th child if it's a @superclass
from Class c, Superclass sc
where class_child(c, 0, sc)
select c, sc

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +0,0 @@
description: moves class superclass nodes into their own table
compatibility: full
class_superclass.rel: run class_superclass.qlo
class_child.rel: run class_child.qlo

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +0,0 @@
class Range extends @range {
string toString() { result = "" }
}
class Child extends @underscore_arg {
string toString() { result = "" }
}
from Range range, Child begin
where range_child(range, 0, begin)
select range, begin

View File

@@ -1,17 +0,0 @@
class Range extends @range {
string toString() { result = "" }
}
class Parent extends @ast_node_parent {
string toString() { result = "" }
}
class Location extends @location {
string toString() { result = "" }
}
from Range range, Parent parent, int parentIndex, int operatorKind, Location loc
where
range_def(range, parent, parentIndex, loc) and
operatorKind = 0 // best we can do is assume it was .. and not ...
select range, parent, parentIndex, operatorKind, loc

View File

@@ -1,11 +0,0 @@
class Range extends @range {
string toString() { result = "" }
}
class Child extends @underscore_arg {
string toString() { result = "" }
}
from Range range, Child end
where range_child(range, 1, end)
select range, end

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +0,0 @@
description: split range_child table into range_begin and range_end
compatibility: partial
range_begin.rel: run range_begin.qlo
range_end.rel: run range_end.qlo
range_def.rel: run range_def.qlo
range_child.rel: delete

View File

@@ -1,13 +0,0 @@
class Stmt extends @underscore_statement {
string toString() { result = "" }
}
class Interpolation extends @interpolation {
string toString() { result = "" }
}
// The new table adds an index column, so any interpolation_child tables in the
// old dbscheme were implicitly index 0.
from Interpolation interpolation, int index, Stmt child
where interpolation_child(interpolation, child) and index = 0
select interpolation, index, child

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +0,0 @@
description: adds support for multiple statements in interpolations
compatibility: partial
interpolation_child.rel: run interpolation_child.qlo