mirror of https://github.com/AMT-Cheif/drift.git
Remove moor-specific nodes from ast megalib
This commit is contained in:
parent
8d625cc13b
commit
10266ed7a6
|
@ -4,15 +4,20 @@ import 'package:sqlparser/src/reader/tokenizer/token.dart';
|
||||||
|
|
||||||
// todo: Remove these imports after splitting up this library
|
// todo: Remove these imports after splitting up this library
|
||||||
import 'expressions/expressions.dart';
|
import 'expressions/expressions.dart';
|
||||||
|
import 'moor/inline_dart.dart';
|
||||||
import 'node.dart';
|
import 'node.dart';
|
||||||
import 'statements/create_index.dart';
|
import 'statements/create_index.dart';
|
||||||
import 'statements/select.dart';
|
import 'statements/select.dart';
|
||||||
import 'statements/statement.dart';
|
|
||||||
import 'visitor.dart';
|
import 'visitor.dart';
|
||||||
|
|
||||||
export 'clauses/returning.dart';
|
export 'clauses/returning.dart';
|
||||||
export 'clauses/upsert.dart';
|
export 'clauses/upsert.dart';
|
||||||
export 'expressions/expressions.dart';
|
export 'expressions/expressions.dart';
|
||||||
|
export 'moor/declared_statement.dart';
|
||||||
|
export 'moor/import_statement.dart';
|
||||||
|
export 'moor/inline_dart.dart';
|
||||||
|
export 'moor/moor_file.dart';
|
||||||
|
export 'moor/nested_star_result_column.dart';
|
||||||
export 'node.dart';
|
export 'node.dart';
|
||||||
export 'statements/block.dart';
|
export 'statements/block.dart';
|
||||||
export 'statements/create_index.dart';
|
export 'statements/create_index.dart';
|
||||||
|
@ -43,10 +48,5 @@ part 'expressions/reference.dart';
|
||||||
part 'expressions/simple.dart';
|
part 'expressions/simple.dart';
|
||||||
part 'expressions/subquery.dart';
|
part 'expressions/subquery.dart';
|
||||||
part 'expressions/variables.dart';
|
part 'expressions/variables.dart';
|
||||||
part 'moor/declared_statement.dart';
|
|
||||||
part 'moor/import_statement.dart';
|
|
||||||
part 'moor/inline_dart.dart';
|
|
||||||
part 'moor/moor_file.dart';
|
|
||||||
part 'moor/nested_star_result_column.dart';
|
|
||||||
part 'schema/column_definition.dart';
|
part 'schema/column_definition.dart';
|
||||||
part 'schema/table_definition.dart';
|
part 'schema/table_definition.dart';
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
part of '../ast.dart';
|
import '../../reader/tokenizer/token.dart';
|
||||||
|
import '../ast.dart' show Variable;
|
||||||
|
import '../expressions/expressions.dart';
|
||||||
|
import '../node.dart';
|
||||||
|
import '../statements/statement.dart';
|
||||||
|
import '../visitor.dart';
|
||||||
|
import 'moor_file.dart';
|
||||||
|
|
||||||
/// A declared statement inside a `.moor` file. It consists of an identifier,
|
/// A declared statement inside a `.moor` file. It consists of an identifier,
|
||||||
/// followed by a colon and the query to run.
|
/// followed by a colon and the query to run.
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
part of '../ast.dart';
|
import '../../reader/tokenizer/token.dart';
|
||||||
|
import '../node.dart';
|
||||||
|
import '../statements/statement.dart';
|
||||||
|
import '../visitor.dart';
|
||||||
|
import 'moor_file.dart';
|
||||||
|
|
||||||
/// An `import "file.dart";` statement that can appear inside a moor file.
|
/// An `import "file.dart";` statement that can appear inside a moor file.
|
||||||
class ImportStatement extends Statement implements PartOfMoorFile {
|
class ImportStatement extends Statement implements PartOfMoorFile {
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
part of '../ast.dart';
|
import '../../reader/tokenizer/token.dart';
|
||||||
|
import '../ast.dart';
|
||||||
|
import '../node.dart';
|
||||||
|
import '../visitor.dart';
|
||||||
|
|
||||||
/// An inline Dart component that appears in a compiled sql query. Inline Dart
|
/// An inline Dart component that appears in a compiled sql query. Inline Dart
|
||||||
/// components can be bound with complex expressions at runtime by using moor's
|
/// components can be bound with complex expressions at runtime by using moor's
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
part of '../ast.dart';
|
import '../node.dart';
|
||||||
|
import '../statements/statement.dart';
|
||||||
|
import '../visitor.dart';
|
||||||
|
import 'declared_statement.dart';
|
||||||
|
import 'import_statement.dart';
|
||||||
|
|
||||||
/// Something that can appear as a top-level declaration inside a `.moor` file.
|
/// Something that can appear as a top-level declaration inside a `.moor` file.
|
||||||
abstract class PartOfMoorFile implements Statement {}
|
abstract class PartOfMoorFile implements Statement {}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
part of '../ast.dart';
|
import '../../analysis/analysis.dart';
|
||||||
|
import '../ast.dart' show StarResultColumn, ResultColumn;
|
||||||
|
import '../node.dart';
|
||||||
|
import '../visitor.dart';
|
||||||
|
|
||||||
/// A nested star result column, denoted by `**` in user queries.
|
/// A nested star result column, denoted by `**` in user queries.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue