From 013b4cbe50a93aabece167d9103608a75a8f3e32 Mon Sep 17 00:00:00 2001 From: Christian Findlay <16697547+MelbourneDeveloper@users.noreply.github.com> Date: Tue, 6 Jan 2026 20:00:04 +1100 Subject: [PATCH] Make types and members private --- CLAUDE.md | 1 + .../CodeGeneration/SqliteDatabaseEffects.cs | 2 +- .../Parsing/SQLiteLexer.cs | 2 +- .../Parsing/SQLiteParser.cs | 228 +++++++++--------- .../Parsing/SQLiteParserBaseListener.cs | 2 +- .../Parsing/SQLiteParserBaseVisitor.cs | 2 +- .../Parsing/SQLiteParserListener.cs | 2 +- .../Parsing/SQLiteParserVisitor.cs | 2 +- .../Parsing/SqliteParameterExtractor.cs | 2 +- .../Parsing/SqliteQueryTypeListener.cs | 2 +- .../SqlServerSchemaInspector.cs | 2 +- .../SqlParsing/SqlParserCsImplementation.cs | 2 +- .../SqlServerCodeGenerator.cs | 2 +- .../DataProvider.SqlServer/SqlServerParser.cs | 2 +- .../CodeGeneration/GroupingTransformations.cs | 2 +- DataProvider/DataProvider/ICodeGenerator.cs | 2 +- DataProvider/DataProvider/SchemaTypes.cs | 2 +- DataProvider/README.md | 8 - Lql/Lql/LqlExtensions.cs | 2 +- Lql/Lql/Parsing/LqlBaseListener.cs | 2 +- Lql/Lql/Parsing/LqlBaseVisitor.cs | 2 +- Lql/Lql/Parsing/LqlCodeParser.cs | 2 +- Lql/Lql/Parsing/LqlLexer.cs | 2 +- Lql/Lql/Parsing/LqlListener.cs | 2 +- Lql/Lql/Parsing/LqlParser.cs | 62 ++--- Lql/Lql/Parsing/LqlToAstVisitor.cs | 2 +- Lql/Lql/Parsing/LqlVisitor.cs | 2 +- .../Migration.Postgres.csproj | 4 + .../PostgresSchemaInspector.cs | 2 +- .../Migration.SQLite/Migration.SQLite.csproj | 4 + .../Migration.SQLite/SqliteSchemaInspector.cs | 2 +- Migration/Migration/SchemaSerializer.cs | 2 +- Migration/Migration/SchemaYamlSerializer.cs | 4 +- Sync/Sync/BatchManager.cs | 2 +- Sync/Sync/ChangeApplier.cs | 2 +- Sync/Sync/ConflictResolver.cs | 2 +- Sync/Sync/HashVerifier.cs | 2 +- Sync/Sync/LqlExpressionEvaluator.cs | 2 +- Sync/Sync/MappingConfigParser.cs | 2 +- Sync/Sync/MappingEngine.cs | 2 +- Sync/Sync/MappingState.cs | 2 +- Sync/Sync/SubscriptionManager.cs | 2 +- Sync/Sync/Sync.csproj | 8 + Sync/Sync/SyncTrackingState.cs | 2 +- Sync/Sync/TombstoneManager.cs | 2 +- 45 files changed, 201 insertions(+), 192 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 045bd52..e391938 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,6 +15,7 @@ - **No raw SQL inserts/updates** - Use generated extensions - **Use DataProvider Migrations to spin up DBs** - ⛔️ SQL for creating db schema = ILLEGAL (schema.sql = ILLEGAL). Use the Migration.CLI with YAML. This is the ONLY valid tool to migrate dbs unless the app itself spins up the migrations in code. - **NO CLASSES** - Records + static methods (FP style) +- **PRIVATE/INTERNAL BY DEFAULT** - Don't expose types/members that users don't need - **Copious ILogger** - Especially sync projects - **NO INTERFACES** - Use `Action`/`Func` - **Expressions over assignments** diff --git a/DataProvider/DataProvider.SQLite/CodeGeneration/SqliteDatabaseEffects.cs b/DataProvider/DataProvider.SQLite/CodeGeneration/SqliteDatabaseEffects.cs index 01a4a1a..664d53b 100644 --- a/DataProvider/DataProvider.SQLite/CodeGeneration/SqliteDatabaseEffects.cs +++ b/DataProvider/DataProvider.SQLite/CodeGeneration/SqliteDatabaseEffects.cs @@ -10,7 +10,7 @@ namespace DataProvider.SQLite.CodeGeneration; /// SQLite-specific database effects implementation /// [ExcludeFromCodeCoverage] -public class SqliteDatabaseEffects : IDatabaseEffects +internal sealed class SqliteDatabaseEffects : IDatabaseEffects { /// /// Gets column metadata by executing the SQL query against the SQLite database. diff --git a/DataProvider/DataProvider.SQLite/Parsing/SQLiteLexer.cs b/DataProvider/DataProvider.SQLite/Parsing/SQLiteLexer.cs index a294991..0c198c5 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SQLiteLexer.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SQLiteLexer.cs @@ -30,7 +30,7 @@ namespace DataProvider.SQLite.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public partial class SQLiteLexer : Lexer { +internal partial class SQLiteLexer : Lexer { protected static DFA[] decisionToDFA; protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); public const int diff --git a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParser.cs b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParser.cs index 615e1fb..1ea7b50 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParser.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParser.cs @@ -33,7 +33,7 @@ namespace DataProvider.SQLite.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public partial class SQLiteParser : Parser { +internal partial class SQLiteParser : Parser { protected static DFA[] decisionToDFA; protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); public const int @@ -226,7 +226,7 @@ public SQLiteParser(ITokenStream input, TextWriter output, TextWriter errorOutpu Interpreter = new ParserATNSimulator(this, _ATN, decisionToDFA, sharedContextCache); } - public partial class ParseContext : ParserRuleContext { + internal partial class ParseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode Eof() { return GetToken(SQLiteParser.Eof, 0); } [System.Diagnostics.DebuggerNonUserCode] public Sql_stmt_listContext[] sql_stmt_list() { return GetRuleContexts(); @@ -294,7 +294,7 @@ public ParseContext parse() { return _localctx; } - public partial class Sql_stmt_listContext : ParserRuleContext { + internal partial class Sql_stmt_listContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Sql_stmtContext[] sql_stmt() { return GetRuleContexts(); } @@ -412,7 +412,7 @@ public Sql_stmt_listContext sql_stmt_list() { return _localctx; } - public partial class Sql_stmtContext : ParserRuleContext { + internal partial class Sql_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Alter_table_stmtContext alter_table_stmt() { return GetRuleContext(0); } @@ -702,7 +702,7 @@ public Sql_stmtContext sql_stmt() { return _localctx; } - public partial class Alter_table_stmtContext : ParserRuleContext { + internal partial class Alter_table_stmtContext : ParserRuleContext { public Table_nameContext new_table_name; public Column_nameContext old_column_name; public Column_nameContext new_column_name; @@ -873,7 +873,7 @@ public Alter_table_stmtContext alter_table_stmt() { return _localctx; } - public partial class Analyze_stmtContext : ParserRuleContext { + internal partial class Analyze_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ANALYZE_() { return GetToken(SQLiteParser.ANALYZE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Schema_nameContext schema_name() { return GetRuleContext(0); @@ -955,7 +955,7 @@ public Analyze_stmtContext analyze_stmt() { return _localctx; } - public partial class Attach_stmtContext : ParserRuleContext { + internal partial class Attach_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ATTACH_() { return GetToken(SQLiteParser.ATTACH_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { return GetRuleContext(0); @@ -1026,7 +1026,7 @@ public Attach_stmtContext attach_stmt() { return _localctx; } - public partial class Begin_stmtContext : ParserRuleContext { + internal partial class Begin_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BEGIN_() { return GetToken(SQLiteParser.BEGIN_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TRANSACTION_() { return GetToken(SQLiteParser.TRANSACTION_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DEFERRED_() { return GetToken(SQLiteParser.DEFERRED_, 0); } @@ -1118,7 +1118,7 @@ public Begin_stmtContext begin_stmt() { return _localctx; } - public partial class Commit_stmtContext : ParserRuleContext { + internal partial class Commit_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COMMIT_() { return GetToken(SQLiteParser.COMMIT_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode END_() { return GetToken(SQLiteParser.END_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TRANSACTION_() { return GetToken(SQLiteParser.TRANSACTION_, 0); } @@ -1185,7 +1185,7 @@ public Commit_stmtContext commit_stmt() { return _localctx; } - public partial class Rollback_stmtContext : ParserRuleContext { + internal partial class Rollback_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ROLLBACK_() { return GetToken(SQLiteParser.ROLLBACK_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TRANSACTION_() { return GetToken(SQLiteParser.TRANSACTION_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TO_() { return GetToken(SQLiteParser.TO_, 0); } @@ -1271,7 +1271,7 @@ public Rollback_stmtContext rollback_stmt() { return _localctx; } - public partial class Savepoint_stmtContext : ParserRuleContext { + internal partial class Savepoint_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode SAVEPOINT_() { return GetToken(SQLiteParser.SAVEPOINT_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Savepoint_nameContext savepoint_name() { return GetRuleContext(0); @@ -1323,7 +1323,7 @@ public Savepoint_stmtContext savepoint_stmt() { return _localctx; } - public partial class Release_stmtContext : ParserRuleContext { + internal partial class Release_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode RELEASE_() { return GetToken(SQLiteParser.RELEASE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Savepoint_nameContext savepoint_name() { return GetRuleContext(0); @@ -1386,7 +1386,7 @@ public Release_stmtContext release_stmt() { return _localctx; } - public partial class Create_index_stmtContext : ParserRuleContext { + internal partial class Create_index_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CREATE_() { return GetToken(SQLiteParser.CREATE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INDEX_() { return GetToken(SQLiteParser.INDEX_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Index_nameContext index_name() { @@ -1544,7 +1544,7 @@ public Create_index_stmtContext create_index_stmt() { return _localctx; } - public partial class Indexed_columnContext : ParserRuleContext { + internal partial class Indexed_columnContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Column_nameContext column_name() { return GetRuleContext(0); } @@ -1640,7 +1640,7 @@ public Indexed_columnContext indexed_column() { return _localctx; } - public partial class Create_table_stmtContext : ParserRuleContext { + internal partial class Create_table_stmtContext : ParserRuleContext { public IToken row_ROW_ID; [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CREATE_() { return GetToken(SQLiteParser.CREATE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TABLE_() { return GetToken(SQLiteParser.TABLE_, 0); } @@ -1844,7 +1844,7 @@ public Create_table_stmtContext create_table_stmt() { return _localctx; } - public partial class Column_defContext : ParserRuleContext { + internal partial class Column_defContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Column_nameContext column_name() { return GetRuleContext(0); } @@ -1927,7 +1927,7 @@ public Column_defContext column_def() { return _localctx; } - public partial class Type_nameContext : ParserRuleContext { + internal partial class Type_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public NameContext[] name() { return GetRuleContexts(); } @@ -2035,7 +2035,7 @@ public Type_nameContext type_name() { return _localctx; } - public partial class Column_constraintContext : ParserRuleContext { + internal partial class Column_constraintContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CHECK_() { return GetToken(SQLiteParser.CHECK_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR() { return GetToken(SQLiteParser.OPEN_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { @@ -2324,7 +2324,7 @@ public Column_constraintContext column_constraint() { return _localctx; } - public partial class Signed_numberContext : ParserRuleContext { + internal partial class Signed_numberContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NUMERIC_LITERAL() { return GetToken(SQLiteParser.NUMERIC_LITERAL, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PLUS() { return GetToken(SQLiteParser.PLUS, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode MINUS() { return GetToken(SQLiteParser.MINUS, 0); } @@ -2391,7 +2391,7 @@ public Signed_numberContext signed_number() { return _localctx; } - public partial class Table_constraintContext : ParserRuleContext { + internal partial class Table_constraintContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR() { return GetToken(SQLiteParser.OPEN_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public Indexed_columnContext[] indexed_column() { return GetRuleContexts(); @@ -2591,7 +2591,7 @@ public Table_constraintContext table_constraint() { return _localctx; } - public partial class Foreign_key_clauseContext : ParserRuleContext { + internal partial class Foreign_key_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode REFERENCES_() { return GetToken(SQLiteParser.REFERENCES_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Foreign_tableContext foreign_table() { return GetRuleContext(0); @@ -2860,7 +2860,7 @@ public Foreign_key_clauseContext foreign_key_clause() { return _localctx; } - public partial class Conflict_clauseContext : ParserRuleContext { + internal partial class Conflict_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ON_() { return GetToken(SQLiteParser.ON_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CONFLICT_() { return GetToken(SQLiteParser.CONFLICT_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ROLLBACK_() { return GetToken(SQLiteParser.ROLLBACK_, 0); } @@ -2925,7 +2925,7 @@ public Conflict_clauseContext conflict_clause() { return _localctx; } - public partial class Create_trigger_stmtContext : ParserRuleContext { + internal partial class Create_trigger_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CREATE_() { return GetToken(SQLiteParser.CREATE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TRIGGER_() { return GetToken(SQLiteParser.TRIGGER_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Trigger_nameContext trigger_name() { @@ -3252,7 +3252,7 @@ public Create_trigger_stmtContext create_trigger_stmt() { return _localctx; } - public partial class Create_view_stmtContext : ParserRuleContext { + internal partial class Create_view_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CREATE_() { return GetToken(SQLiteParser.CREATE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VIEW_() { return GetToken(SQLiteParser.VIEW_, 0); } [System.Diagnostics.DebuggerNonUserCode] public View_nameContext view_name() { @@ -3410,7 +3410,7 @@ public Create_view_stmtContext create_view_stmt() { return _localctx; } - public partial class Create_virtual_table_stmtContext : ParserRuleContext { + internal partial class Create_virtual_table_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CREATE_() { return GetToken(SQLiteParser.CREATE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VIRTUAL_() { return GetToken(SQLiteParser.VIRTUAL_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TABLE_() { return GetToken(SQLiteParser.TABLE_, 0); } @@ -3552,7 +3552,7 @@ public Create_virtual_table_stmtContext create_virtual_table_stmt() { return _localctx; } - public partial class With_clauseContext : ParserRuleContext { + internal partial class With_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode WITH_() { return GetToken(SQLiteParser.WITH_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Cte_table_nameContext[] cte_table_name() { return GetRuleContexts(); @@ -3673,7 +3673,7 @@ public With_clauseContext with_clause() { return _localctx; } - public partial class Cte_table_nameContext : ParserRuleContext { + internal partial class Cte_table_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Table_nameContext table_name() { return GetRuleContext(0); } @@ -3765,7 +3765,7 @@ public Cte_table_nameContext cte_table_name() { return _localctx; } - public partial class Recursive_cteContext : ParserRuleContext { + internal partial class Recursive_cteContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Cte_table_nameContext cte_table_name() { return GetRuleContext(0); } @@ -3848,7 +3848,7 @@ public Recursive_cteContext recursive_cte() { return _localctx; } - public partial class Common_table_expressionContext : ParserRuleContext { + internal partial class Common_table_expressionContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Table_nameContext table_name() { return GetRuleContext(0); } @@ -3958,7 +3958,7 @@ public Common_table_expressionContext common_table_expression() { return _localctx; } - public partial class Delete_stmtContext : ParserRuleContext { + internal partial class Delete_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DELETE_() { return GetToken(SQLiteParser.DELETE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FROM_() { return GetToken(SQLiteParser.FROM_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Qualified_table_nameContext qualified_table_name() { @@ -4056,7 +4056,7 @@ public Delete_stmtContext delete_stmt() { return _localctx; } - public partial class Delete_stmt_limitedContext : ParserRuleContext { + internal partial class Delete_stmt_limitedContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DELETE_() { return GetToken(SQLiteParser.DELETE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FROM_() { return GetToken(SQLiteParser.FROM_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Qualified_table_nameContext qualified_table_name() { @@ -4180,7 +4180,7 @@ public Delete_stmt_limitedContext delete_stmt_limited() { return _localctx; } - public partial class Detach_stmtContext : ParserRuleContext { + internal partial class Detach_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DETACH_() { return GetToken(SQLiteParser.DETACH_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Schema_nameContext schema_name() { return GetRuleContext(0); @@ -4243,7 +4243,7 @@ public Detach_stmtContext detach_stmt() { return _localctx; } - public partial class Drop_stmtContext : ParserRuleContext { + internal partial class Drop_stmtContext : ParserRuleContext { public IToken @object; [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DROP_() { return GetToken(SQLiteParser.DROP_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { @@ -4341,7 +4341,7 @@ public Drop_stmtContext drop_stmt() { return _localctx; } - public partial class ExprContext : ParserRuleContext { + internal partial class ExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Literal_valueContext literal_value() { return GetRuleContext(0); } @@ -5422,7 +5422,7 @@ private ExprContext expr(int _p) { return _localctx; } - public partial class Raise_functionContext : ParserRuleContext { + internal partial class Raise_functionContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode RAISE_() { return GetToken(SQLiteParser.RAISE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR() { return GetToken(SQLiteParser.OPEN_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE_PAR() { return GetToken(SQLiteParser.CLOSE_PAR, 0); } @@ -5515,7 +5515,7 @@ public Raise_functionContext raise_function() { return _localctx; } - public partial class Literal_valueContext : ParserRuleContext { + internal partial class Literal_valueContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NUMERIC_LITERAL() { return GetToken(SQLiteParser.NUMERIC_LITERAL, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING_LITERAL() { return GetToken(SQLiteParser.STRING_LITERAL, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BLOB_LITERAL() { return GetToken(SQLiteParser.BLOB_LITERAL, 0); } @@ -5578,7 +5578,7 @@ public Literal_valueContext literal_value() { return _localctx; } - public partial class Value_rowContext : ParserRuleContext { + internal partial class Value_rowContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR() { return GetToken(SQLiteParser.OPEN_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public ExprContext[] expr() { return GetRuleContexts(); @@ -5657,7 +5657,7 @@ public Value_rowContext value_row() { return _localctx; } - public partial class Values_clauseContext : ParserRuleContext { + internal partial class Values_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VALUES_() { return GetToken(SQLiteParser.VALUES_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Value_rowContext[] value_row() { return GetRuleContexts(); @@ -5733,7 +5733,7 @@ public Values_clauseContext values_clause() { return _localctx; } - public partial class Insert_stmtContext : ParserRuleContext { + internal partial class Insert_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INTO_() { return GetToken(SQLiteParser.INTO_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Table_nameContext table_name() { return GetRuleContext(0); @@ -5985,7 +5985,7 @@ public Insert_stmtContext insert_stmt() { return _localctx; } - public partial class Returning_clauseContext : ParserRuleContext { + internal partial class Returning_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode RETURNING_() { return GetToken(SQLiteParser.RETURNING_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Result_columnContext[] result_column() { return GetRuleContexts(); @@ -6061,7 +6061,7 @@ public Returning_clauseContext returning_clause() { return _localctx; } - public partial class Upsert_clauseContext : ParserRuleContext { + internal partial class Upsert_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ON_() { return GetToken(SQLiteParser.ON_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CONFLICT_() { return GetToken(SQLiteParser.CONFLICT_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DO_() { return GetToken(SQLiteParser.DO_, 0); } @@ -6286,7 +6286,7 @@ public Upsert_clauseContext upsert_clause() { return _localctx; } - public partial class Pragma_stmtContext : ParserRuleContext { + internal partial class Pragma_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PRAGMA_() { return GetToken(SQLiteParser.PRAGMA_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Pragma_nameContext pragma_name() { return GetRuleContext(0); @@ -6410,7 +6410,7 @@ public Pragma_stmtContext pragma_stmt() { return _localctx; } - public partial class Pragma_valueContext : ParserRuleContext { + internal partial class Pragma_valueContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Signed_numberContext signed_number() { return GetRuleContext(0); } @@ -6483,7 +6483,7 @@ public Pragma_valueContext pragma_value() { return _localctx; } - public partial class Reindex_stmtContext : ParserRuleContext { + internal partial class Reindex_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode REINDEX_() { return GetToken(SQLiteParser.REINDEX_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Collation_nameContext collation_name() { return GetRuleContext(0); @@ -6585,7 +6585,7 @@ public Reindex_stmtContext reindex_stmt() { return _localctx; } - public partial class Select_stmtContext : ParserRuleContext { + internal partial class Select_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Select_coreContext[] select_core() { return GetRuleContexts(); } @@ -6702,7 +6702,7 @@ public Select_stmtContext select_stmt() { return _localctx; } - public partial class Join_clauseContext : ParserRuleContext { + internal partial class Join_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Table_or_subqueryContext[] table_or_subquery() { return GetRuleContexts(); } @@ -6793,7 +6793,7 @@ public Join_clauseContext join_clause() { return _localctx; } - public partial class Select_coreContext : ParserRuleContext { + internal partial class Select_coreContext : ParserRuleContext { public ExprContext whereExpr; public ExprContext _expr; public IList _groupByExpr = new List(); @@ -7083,7 +7083,7 @@ public Select_coreContext select_core() { return _localctx; } - public partial class Factored_select_stmtContext : ParserRuleContext { + internal partial class Factored_select_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Select_stmtContext select_stmt() { return GetRuleContext(0); } @@ -7132,7 +7132,7 @@ public Factored_select_stmtContext factored_select_stmt() { return _localctx; } - public partial class Simple_select_stmtContext : ParserRuleContext { + internal partial class Simple_select_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Select_coreContext select_core() { return GetRuleContext(0); } @@ -7221,7 +7221,7 @@ public Simple_select_stmtContext simple_select_stmt() { return _localctx; } - public partial class Compound_select_stmtContext : ParserRuleContext { + internal partial class Compound_select_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Select_coreContext[] select_core() { return GetRuleContexts(); } @@ -7377,7 +7377,7 @@ public Compound_select_stmtContext compound_select_stmt() { return _localctx; } - public partial class Table_or_subqueryContext : ParserRuleContext { + internal partial class Table_or_subqueryContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Table_nameContext table_name() { return GetRuleContext(0); } @@ -7711,7 +7711,7 @@ public Table_or_subqueryContext table_or_subquery() { return _localctx; } - public partial class Result_columnContext : ParserRuleContext { + internal partial class Result_columnContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STAR() { return GetToken(SQLiteParser.STAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public Table_nameContext table_name() { return GetRuleContext(0); @@ -7814,7 +7814,7 @@ public Result_columnContext result_column() { return _localctx; } - public partial class Join_operatorContext : ParserRuleContext { + internal partial class Join_operatorContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COMMA() { return GetToken(SQLiteParser.COMMA, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode JOIN_() { return GetToken(SQLiteParser.JOIN_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode NATURAL_() { return GetToken(SQLiteParser.NATURAL_, 0); } @@ -7946,7 +7946,7 @@ public Join_operatorContext join_operator() { return _localctx; } - public partial class Join_constraintContext : ParserRuleContext { + internal partial class Join_constraintContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ON_() { return GetToken(SQLiteParser.ON_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { return GetRuleContext(0); @@ -8049,7 +8049,7 @@ public Join_constraintContext join_constraint() { return _localctx; } - public partial class Compound_operatorContext : ParserRuleContext { + internal partial class Compound_operatorContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UNION_() { return GetToken(SQLiteParser.UNION_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ALL_() { return GetToken(SQLiteParser.ALL_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode INTERSECT_() { return GetToken(SQLiteParser.INTERSECT_, 0); } @@ -8132,7 +8132,7 @@ public Compound_operatorContext compound_operator() { return _localctx; } - public partial class Update_stmtContext : ParserRuleContext { + internal partial class Update_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UPDATE_() { return GetToken(SQLiteParser.UPDATE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Qualified_table_nameContext qualified_table_name() { return GetRuleContext(0); @@ -8384,7 +8384,7 @@ public Update_stmtContext update_stmt() { return _localctx; } - public partial class Column_name_listContext : ParserRuleContext { + internal partial class Column_name_listContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR() { return GetToken(SQLiteParser.OPEN_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public Column_nameContext[] column_name() { return GetRuleContexts(); @@ -8463,7 +8463,7 @@ public Column_name_listContext column_name_list() { return _localctx; } - public partial class Update_stmt_limitedContext : ParserRuleContext { + internal partial class Update_stmt_limitedContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode UPDATE_() { return GetToken(SQLiteParser.UPDATE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Qualified_table_nameContext qualified_table_name() { return GetRuleContext(0); @@ -8689,7 +8689,7 @@ public Update_stmt_limitedContext update_stmt_limited() { return _localctx; } - public partial class Qualified_table_nameContext : ParserRuleContext { + internal partial class Qualified_table_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Table_nameContext table_name() { return GetRuleContext(0); } @@ -8832,7 +8832,7 @@ public Qualified_table_nameContext qualified_table_name() { return _localctx; } - public partial class Vacuum_stmtContext : ParserRuleContext { + internal partial class Vacuum_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode VACUUM_() { return GetToken(SQLiteParser.VACUUM_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Schema_nameContext schema_name() { return GetRuleContext(0); @@ -8909,7 +8909,7 @@ public Vacuum_stmtContext vacuum_stmt() { return _localctx; } - public partial class Filter_clauseContext : ParserRuleContext { + internal partial class Filter_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode FILTER_() { return GetToken(SQLiteParser.FILTER_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR() { return GetToken(SQLiteParser.OPEN_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode WHERE_() { return GetToken(SQLiteParser.WHERE_, 0); } @@ -8970,7 +8970,7 @@ public Filter_clauseContext filter_clause() { return _localctx; } - public partial class Window_defnContext : ParserRuleContext { + internal partial class Window_defnContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR() { return GetToken(SQLiteParser.OPEN_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CLOSE_PAR() { return GetToken(SQLiteParser.CLOSE_PAR, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ORDER_() { return GetToken(SQLiteParser.ORDER_, 0); } @@ -9123,7 +9123,7 @@ public Window_defnContext window_defn() { return _localctx; } - public partial class Over_clauseContext : ParserRuleContext { + internal partial class Over_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OVER_() { return GetToken(SQLiteParser.OVER_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Window_nameContext window_name() { return GetRuleContext(0); @@ -9302,7 +9302,7 @@ public Over_clauseContext over_clause() { return _localctx; } - public partial class Frame_specContext : ParserRuleContext { + internal partial class Frame_specContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Frame_clauseContext frame_clause() { return GetRuleContext(0); } @@ -9403,7 +9403,7 @@ public Frame_specContext frame_spec() { return _localctx; } - public partial class Frame_clauseContext : ParserRuleContext { + internal partial class Frame_clauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode RANGE_() { return GetToken(SQLiteParser.RANGE_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ROWS_() { return GetToken(SQLiteParser.ROWS_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode GROUPS_() { return GetToken(SQLiteParser.GROUPS_, 0); } @@ -9493,7 +9493,7 @@ public Frame_clauseContext frame_clause() { return _localctx; } - public partial class Simple_function_invocationContext : ParserRuleContext { + internal partial class Simple_function_invocationContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Simple_funcContext simple_func() { return GetRuleContext(0); } @@ -9757,7 +9757,7 @@ public Simple_function_invocationContext simple_function_invocation() { return _localctx; } - public partial class Aggregate_function_invocationContext : ParserRuleContext { + internal partial class Aggregate_function_invocationContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Aggregate_funcContext aggregate_func() { return GetRuleContext(0); } @@ -10047,7 +10047,7 @@ public Aggregate_function_invocationContext aggregate_function_invocation() { return _localctx; } - public partial class Window_function_invocationContext : ParserRuleContext { + internal partial class Window_function_invocationContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Window_functionContext window_function() { return GetRuleContext(0); } @@ -10351,7 +10351,7 @@ public Window_function_invocationContext window_function_invocation() { return _localctx; } - public partial class Common_table_stmtContext : ParserRuleContext { + internal partial class Common_table_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode WITH_() { return GetToken(SQLiteParser.WITH_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Common_table_expressionContext[] common_table_expression() { return GetRuleContexts(); @@ -10438,7 +10438,7 @@ public Common_table_stmtContext common_table_stmt() { return _localctx; } - public partial class Order_by_stmtContext : ParserRuleContext { + internal partial class Order_by_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ORDER_() { return GetToken(SQLiteParser.ORDER_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BY_() { return GetToken(SQLiteParser.BY_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Ordering_termContext[] ordering_term() { @@ -10517,7 +10517,7 @@ public Order_by_stmtContext order_by_stmt() { return _localctx; } - public partial class Limit_stmtContext : ParserRuleContext { + internal partial class Limit_stmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode LIMIT_() { return GetToken(SQLiteParser.LIMIT_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ExprContext[] expr() { return GetRuleContexts(); @@ -10594,7 +10594,7 @@ public Limit_stmtContext limit_stmt() { return _localctx; } - public partial class Ordering_termContext : ParserRuleContext { + internal partial class Ordering_termContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { return GetRuleContext(0); } @@ -10695,7 +10695,7 @@ public Ordering_termContext ordering_term() { return _localctx; } - public partial class Asc_descContext : ParserRuleContext { + internal partial class Asc_descContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ASC_() { return GetToken(SQLiteParser.ASC_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DESC_() { return GetToken(SQLiteParser.DESC_, 0); } public Asc_descContext(ParserRuleContext parent, int invokingState) @@ -10751,7 +10751,7 @@ public Asc_descContext asc_desc() { return _localctx; } - public partial class Frame_leftContext : ParserRuleContext { + internal partial class Frame_leftContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { return GetRuleContext(0); } @@ -10840,7 +10840,7 @@ public Frame_leftContext frame_left() { return _localctx; } - public partial class Frame_rightContext : ParserRuleContext { + internal partial class Frame_rightContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { return GetRuleContext(0); } @@ -10929,7 +10929,7 @@ public Frame_rightContext frame_right() { return _localctx; } - public partial class Frame_singleContext : ParserRuleContext { + internal partial class Frame_singleContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { return GetRuleContext(0); } @@ -11008,7 +11008,7 @@ public Frame_singleContext frame_single() { return _localctx; } - public partial class Window_functionContext : ParserRuleContext { + internal partial class Window_functionContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] OPEN_PAR() { return GetTokens(SQLiteParser.OPEN_PAR); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OPEN_PAR(int i) { return GetToken(SQLiteParser.OPEN_PAR, i); @@ -11368,7 +11368,7 @@ public Window_functionContext window_function() { return _localctx; } - public partial class OffsetContext : ParserRuleContext { + internal partial class OffsetContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COMMA() { return GetToken(SQLiteParser.COMMA, 0); } [System.Diagnostics.DebuggerNonUserCode] public Signed_numberContext signed_number() { return GetRuleContext(0); @@ -11420,7 +11420,7 @@ public OffsetContext offset() { return _localctx; } - public partial class Default_valueContext : ParserRuleContext { + internal partial class Default_valueContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode COMMA() { return GetToken(SQLiteParser.COMMA, 0); } [System.Diagnostics.DebuggerNonUserCode] public Signed_numberContext signed_number() { return GetRuleContext(0); @@ -11472,7 +11472,7 @@ public Default_valueContext default_value() { return _localctx; } - public partial class Partition_byContext : ParserRuleContext { + internal partial class Partition_byContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PARTITION_() { return GetToken(SQLiteParser.PARTITION_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BY_() { return GetToken(SQLiteParser.BY_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ExprContext[] expr() { @@ -11549,7 +11549,7 @@ public Partition_byContext partition_by() { return _localctx; } - public partial class Order_by_exprContext : ParserRuleContext { + internal partial class Order_by_exprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ORDER_() { return GetToken(SQLiteParser.ORDER_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BY_() { return GetToken(SQLiteParser.BY_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ExprContext[] expr() { @@ -11620,7 +11620,7 @@ public Order_by_exprContext order_by_expr() { return _localctx; } - public partial class Order_by_expr_asc_descContext : ParserRuleContext { + internal partial class Order_by_expr_asc_descContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ORDER_() { return GetToken(SQLiteParser.ORDER_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BY_() { return GetToken(SQLiteParser.BY_, 0); } [System.Diagnostics.DebuggerNonUserCode] public Expr_asc_descContext expr_asc_desc() { @@ -11675,7 +11675,7 @@ public Order_by_expr_asc_descContext order_by_expr_asc_desc() { return _localctx; } - public partial class Expr_asc_descContext : ParserRuleContext { + internal partial class Expr_asc_descContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ExprContext[] expr() { return GetRuleContexts(); } @@ -11774,7 +11774,7 @@ public Expr_asc_descContext expr_asc_desc() { return _localctx; } - public partial class Initial_selectContext : ParserRuleContext { + internal partial class Initial_selectContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Select_stmtContext select_stmt() { return GetRuleContext(0); } @@ -11823,7 +11823,7 @@ public Initial_selectContext initial_select() { return _localctx; } - public partial class Recursive_selectContext : ParserRuleContext { + internal partial class Recursive_selectContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Select_stmtContext select_stmt() { return GetRuleContext(0); } @@ -11872,7 +11872,7 @@ public Recursive_selectContext recursive_select() { return _localctx; } - public partial class Unary_operatorContext : ParserRuleContext { + internal partial class Unary_operatorContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode MINUS() { return GetToken(SQLiteParser.MINUS, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PLUS() { return GetToken(SQLiteParser.PLUS, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode TILDE() { return GetToken(SQLiteParser.TILDE, 0); } @@ -11930,7 +11930,7 @@ public Unary_operatorContext unary_operator() { return _localctx; } - public partial class Error_messageContext : ParserRuleContext { + internal partial class Error_messageContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING_LITERAL() { return GetToken(SQLiteParser.STRING_LITERAL, 0); } public Error_messageContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) @@ -11977,7 +11977,7 @@ public Error_messageContext error_message() { return _localctx; } - public partial class Module_argumentContext : ParserRuleContext { + internal partial class Module_argumentContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ExprContext expr() { return GetRuleContext(0); } @@ -12042,7 +12042,7 @@ public Module_argumentContext module_argument() { return _localctx; } - public partial class Column_aliasContext : ParserRuleContext { + internal partial class Column_aliasContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENTIFIER() { return GetToken(SQLiteParser.IDENTIFIER, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode STRING_LITERAL() { return GetToken(SQLiteParser.STRING_LITERAL, 0); } public Column_aliasContext(ParserRuleContext parent, int invokingState) @@ -12098,7 +12098,7 @@ public Column_aliasContext column_alias() { return _localctx; } - public partial class KeywordContext : ParserRuleContext { + internal partial class KeywordContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ABORT_() { return GetToken(SQLiteParser.ABORT_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ACTION_() { return GetToken(SQLiteParser.ACTION_, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ADD_() { return GetToken(SQLiteParser.ADD_, 0); } @@ -12307,7 +12307,7 @@ public KeywordContext keyword() { return _localctx; } - public partial class NameContext : ParserRuleContext { + internal partial class NameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12356,7 +12356,7 @@ public NameContext name() { return _localctx; } - public partial class Function_nameContext : ParserRuleContext { + internal partial class Function_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12405,7 +12405,7 @@ public Function_nameContext function_name() { return _localctx; } - public partial class Schema_nameContext : ParserRuleContext { + internal partial class Schema_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12454,7 +12454,7 @@ public Schema_nameContext schema_name() { return _localctx; } - public partial class Table_nameContext : ParserRuleContext { + internal partial class Table_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12503,7 +12503,7 @@ public Table_nameContext table_name() { return _localctx; } - public partial class Table_or_index_nameContext : ParserRuleContext { + internal partial class Table_or_index_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12552,7 +12552,7 @@ public Table_or_index_nameContext table_or_index_name() { return _localctx; } - public partial class Column_nameContext : ParserRuleContext { + internal partial class Column_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12601,7 +12601,7 @@ public Column_nameContext column_name() { return _localctx; } - public partial class Collation_nameContext : ParserRuleContext { + internal partial class Collation_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12650,7 +12650,7 @@ public Collation_nameContext collation_name() { return _localctx; } - public partial class Foreign_tableContext : ParserRuleContext { + internal partial class Foreign_tableContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12699,7 +12699,7 @@ public Foreign_tableContext foreign_table() { return _localctx; } - public partial class Index_nameContext : ParserRuleContext { + internal partial class Index_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12748,7 +12748,7 @@ public Index_nameContext index_name() { return _localctx; } - public partial class Trigger_nameContext : ParserRuleContext { + internal partial class Trigger_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12797,7 +12797,7 @@ public Trigger_nameContext trigger_name() { return _localctx; } - public partial class View_nameContext : ParserRuleContext { + internal partial class View_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12846,7 +12846,7 @@ public View_nameContext view_name() { return _localctx; } - public partial class Module_nameContext : ParserRuleContext { + internal partial class Module_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12895,7 +12895,7 @@ public Module_nameContext module_name() { return _localctx; } - public partial class Pragma_nameContext : ParserRuleContext { + internal partial class Pragma_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12944,7 +12944,7 @@ public Pragma_nameContext pragma_name() { return _localctx; } - public partial class Savepoint_nameContext : ParserRuleContext { + internal partial class Savepoint_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -12993,7 +12993,7 @@ public Savepoint_nameContext savepoint_name() { return _localctx; } - public partial class Table_aliasContext : ParserRuleContext { + internal partial class Table_aliasContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13042,7 +13042,7 @@ public Table_aliasContext table_alias() { return _localctx; } - public partial class Transaction_nameContext : ParserRuleContext { + internal partial class Transaction_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13091,7 +13091,7 @@ public Transaction_nameContext transaction_name() { return _localctx; } - public partial class Window_nameContext : ParserRuleContext { + internal partial class Window_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13140,7 +13140,7 @@ public Window_nameContext window_name() { return _localctx; } - public partial class AliasContext : ParserRuleContext { + internal partial class AliasContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13189,7 +13189,7 @@ public AliasContext alias() { return _localctx; } - public partial class FilenameContext : ParserRuleContext { + internal partial class FilenameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13238,7 +13238,7 @@ public FilenameContext filename() { return _localctx; } - public partial class Base_window_nameContext : ParserRuleContext { + internal partial class Base_window_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13287,7 +13287,7 @@ public Base_window_nameContext base_window_name() { return _localctx; } - public partial class Simple_funcContext : ParserRuleContext { + internal partial class Simple_funcContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13336,7 +13336,7 @@ public Simple_funcContext simple_func() { return _localctx; } - public partial class Aggregate_funcContext : ParserRuleContext { + internal partial class Aggregate_funcContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13385,7 +13385,7 @@ public Aggregate_funcContext aggregate_func() { return _localctx; } - public partial class Table_function_nameContext : ParserRuleContext { + internal partial class Table_function_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public Any_nameContext any_name() { return GetRuleContext(0); } @@ -13434,7 +13434,7 @@ public Table_function_nameContext table_function_name() { return _localctx; } - public partial class Any_nameContext : ParserRuleContext { + internal partial class Any_nameContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENTIFIER() { return GetToken(SQLiteParser.IDENTIFIER, 0); } [System.Diagnostics.DebuggerNonUserCode] public KeywordContext keyword() { return GetRuleContext(0); diff --git a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseListener.cs b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseListener.cs index 222da9e..9c72219 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseListener.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseListener.cs @@ -35,7 +35,7 @@ namespace DataProvider.SQLite.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.Diagnostics.DebuggerNonUserCode] [System.CLSCompliant(false)] -public partial class SQLiteParserBaseListener : ISQLiteParserListener { +internal partial class SQLiteParserBaseListener : ISQLiteParserListener { /// /// Enter a parse tree produced by . /// The default implementation does nothing. diff --git a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseVisitor.cs b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseVisitor.cs index be1b6ad..543f7b2 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseVisitor.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserBaseVisitor.cs @@ -34,7 +34,7 @@ namespace DataProvider.SQLite.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.Diagnostics.DebuggerNonUserCode] [System.CLSCompliant(false)] -public partial class SQLiteParserBaseVisitor : AbstractParseTreeVisitor, ISQLiteParserVisitor { +internal partial class SQLiteParserBaseVisitor : AbstractParseTreeVisitor, ISQLiteParserVisitor { /// /// Visit a parse tree produced by . /// diff --git a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserListener.cs b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserListener.cs index 0dcaaa2..d2bb11e 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserListener.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserListener.cs @@ -30,7 +30,7 @@ namespace DataProvider.SQLite.Parsing { /// [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public interface ISQLiteParserListener : IParseTreeListener { +internal interface ISQLiteParserListener : IParseTreeListener { /// /// Enter a parse tree produced by . /// diff --git a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserVisitor.cs b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserVisitor.cs index f17b321..6dc0aea 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserVisitor.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SQLiteParserVisitor.cs @@ -31,7 +31,7 @@ namespace DataProvider.SQLite.Parsing { /// The return type of the visit operation. [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public interface ISQLiteParserVisitor : IParseTreeVisitor { +internal interface ISQLiteParserVisitor : IParseTreeVisitor { /// /// Visit a parse tree produced by . /// diff --git a/DataProvider/DataProvider.SQLite/Parsing/SqliteParameterExtractor.cs b/DataProvider/DataProvider.SQLite/Parsing/SqliteParameterExtractor.cs index 1cc2b25..97394c0 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SqliteParameterExtractor.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SqliteParameterExtractor.cs @@ -7,7 +7,7 @@ namespace DataProvider.SQLite.Parsing; /// Parameter extractor for SQLite using ANTLR parse tree /// [ExcludeFromCodeCoverage] -public sealed class SqliteParameterExtractor +internal sealed class SqliteParameterExtractor { /// /// Extracts parameter names from the provided ANTLR . diff --git a/DataProvider/DataProvider.SQLite/Parsing/SqliteQueryTypeListener.cs b/DataProvider/DataProvider.SQLite/Parsing/SqliteQueryTypeListener.cs index dff231a..a03dfc3 100644 --- a/DataProvider/DataProvider.SQLite/Parsing/SqliteQueryTypeListener.cs +++ b/DataProvider/DataProvider.SQLite/Parsing/SqliteQueryTypeListener.cs @@ -6,7 +6,7 @@ namespace DataProvider.SQLite.Parsing; /// Listener to determine SQLite query type from parse tree /// [ExcludeFromCodeCoverage] -public sealed class SqliteQueryTypeListener : SQLiteParserBaseListener +internal sealed class SqliteQueryTypeListener : SQLiteParserBaseListener { /// /// Gets the detected query type (e.g. SELECT, INSERT, UPDATE, DELETE). diff --git a/DataProvider/DataProvider.SqlServer/SchemaInspection/SqlServerSchemaInspector.cs b/DataProvider/DataProvider.SqlServer/SchemaInspection/SqlServerSchemaInspector.cs index 720c0f0..be60ebc 100644 --- a/DataProvider/DataProvider.SqlServer/SchemaInspection/SqlServerSchemaInspector.cs +++ b/DataProvider/DataProvider.SqlServer/SchemaInspection/SqlServerSchemaInspector.cs @@ -6,7 +6,7 @@ namespace DataProvider.SqlServer.SchemaInspection; /// /// SQL Server implementation of schema inspection /// -public sealed class SqlServerSchemaInspector : ISchemaInspector +internal sealed class SqlServerSchemaInspector : ISchemaInspector { private readonly string _connectionString; diff --git a/DataProvider/DataProvider.SqlServer/SqlParsing/SqlParserCsImplementation.cs b/DataProvider/DataProvider.SqlServer/SqlParsing/SqlParserCsImplementation.cs index 3c3a7a1..9adc7a3 100644 --- a/DataProvider/DataProvider.SqlServer/SqlParsing/SqlParserCsImplementation.cs +++ b/DataProvider/DataProvider.SqlServer/SqlParsing/SqlParserCsImplementation.cs @@ -8,7 +8,7 @@ namespace DataProvider.SqlServer.SqlParsing; /// /// SQL parser implementation using SqlParserCS library /// -public sealed class SqlParserCsImplementation : ISqlParser +internal sealed class SqlParserCsImplementation : ISqlParser { private readonly SqlQueryParser _parser = new(); diff --git a/DataProvider/DataProvider.SqlServer/SqlServerCodeGenerator.cs b/DataProvider/DataProvider.SqlServer/SqlServerCodeGenerator.cs index 5f8e060..d1a9070 100644 --- a/DataProvider/DataProvider.SqlServer/SqlServerCodeGenerator.cs +++ b/DataProvider/DataProvider.SqlServer/SqlServerCodeGenerator.cs @@ -11,7 +11,7 @@ namespace DataProvider.SqlServer; /// /// SQL Server specific code generator static methods /// -public static class SqlServerCodeGenerator +internal static class SqlServerCodeGenerator { /// /// Generate C# source code for a SQL file (fallback method) diff --git a/DataProvider/DataProvider.SqlServer/SqlServerParser.cs b/DataProvider/DataProvider.SqlServer/SqlServerParser.cs index 8567f8a..63271a5 100644 --- a/DataProvider/DataProvider.SqlServer/SqlServerParser.cs +++ b/DataProvider/DataProvider.SqlServer/SqlServerParser.cs @@ -7,7 +7,7 @@ namespace DataProvider.SqlServer; /// /// SQL Server specific parser implementation using SqlParserCS /// -public sealed class SqlServerParser : ISqlParser +internal sealed class SqlServerParser : ISqlParser { private readonly SqlParserCsImplementation _parser = new(); diff --git a/DataProvider/DataProvider/CodeGeneration/GroupingTransformations.cs b/DataProvider/DataProvider/CodeGeneration/GroupingTransformations.cs index 16aabf9..608b8c8 100644 --- a/DataProvider/DataProvider/CodeGeneration/GroupingTransformations.cs +++ b/DataProvider/DataProvider/CodeGeneration/GroupingTransformations.cs @@ -8,7 +8,7 @@ namespace DataProvider.CodeGeneration; /// /// Pure transformation functions for generating grouped query code /// -public static class GroupingTransformations +internal static class GroupingTransformations { /// /// Generates the grouping method that transforms flat results into parent-child structure diff --git a/DataProvider/DataProvider/ICodeGenerator.cs b/DataProvider/DataProvider/ICodeGenerator.cs index 9fc965a..fc4620e 100644 --- a/DataProvider/DataProvider/ICodeGenerator.cs +++ b/DataProvider/DataProvider/ICodeGenerator.cs @@ -6,7 +6,7 @@ namespace DataProvider; /// /// Type aliases for code generation functions /// -public static class CodeGenerators +internal static class CodeGenerators { /// /// Function type for generating C# source code from SQL metadata diff --git a/DataProvider/DataProvider/SchemaTypes.cs b/DataProvider/DataProvider/SchemaTypes.cs index a622609..37a6976 100644 --- a/DataProvider/DataProvider/SchemaTypes.cs +++ b/DataProvider/DataProvider/SchemaTypes.cs @@ -165,7 +165,7 @@ public sealed record SqlQueryMetadata /// /// Abstraction for inspecting database schema /// -public interface ISchemaInspector +internal interface ISchemaInspector { /// /// Gets table information including columns and their metadata diff --git a/DataProvider/README.md b/DataProvider/README.md index a9ae57d..cb16a88 100644 --- a/DataProvider/README.md +++ b/DataProvider/README.md @@ -124,14 +124,6 @@ YourProject → DataProvider → (build target) DataProvider.SQLite.Cli → Data ``` -### Forbidden Patterns - -- **NO raw SQL DDL files** - Use Migration.Cli with YAML -- **NO individual BuildDb projects** - Use Migration.Cli (single tool) -- **NO `schema.sql` files** - YAML schemas only -- **NO code generation before schema creation** - Migration MUST run first -- **NO C# schema export at build time** - Export once, commit YAML to git - ## Configuration Create a `DataProvider.json` file in your project root: diff --git a/Lql/Lql/LqlExtensions.cs b/Lql/Lql/LqlExtensions.cs index e8d3578..f047c14 100644 --- a/Lql/Lql/LqlExtensions.cs +++ b/Lql/Lql/LqlExtensions.cs @@ -3,7 +3,7 @@ namespace Lql; /// /// Extension methods for working with nodes and steps. /// -public static class LqlExtensions +internal static class LqlExtensions { /// /// Wraps a node in an identity step. diff --git a/Lql/Lql/Parsing/LqlBaseListener.cs b/Lql/Lql/Parsing/LqlBaseListener.cs index a3f5589..2afe922 100644 --- a/Lql/Lql/Parsing/LqlBaseListener.cs +++ b/Lql/Lql/Parsing/LqlBaseListener.cs @@ -36,7 +36,7 @@ namespace Lql.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.Diagnostics.DebuggerNonUserCode] [System.CLSCompliant(false)] -public partial class LqlBaseListener : ILqlListener { +internal partial class LqlBaseListener : ILqlListener { /// /// Enter a parse tree produced by . /// The default implementation does nothing. diff --git a/Lql/Lql/Parsing/LqlBaseVisitor.cs b/Lql/Lql/Parsing/LqlBaseVisitor.cs index 1fb3e3d..537df14 100644 --- a/Lql/Lql/Parsing/LqlBaseVisitor.cs +++ b/Lql/Lql/Parsing/LqlBaseVisitor.cs @@ -35,7 +35,7 @@ namespace Lql.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.Diagnostics.DebuggerNonUserCode] [System.CLSCompliant(false)] -public partial class LqlBaseVisitor : AbstractParseTreeVisitor, ILqlVisitor { +internal partial class LqlBaseVisitor : AbstractParseTreeVisitor, ILqlVisitor { /// /// Visit a parse tree produced by . /// diff --git a/Lql/Lql/Parsing/LqlCodeParser.cs b/Lql/Lql/Parsing/LqlCodeParser.cs index 9e6921e..baa55d0 100644 --- a/Lql/Lql/Parsing/LqlCodeParser.cs +++ b/Lql/Lql/Parsing/LqlCodeParser.cs @@ -7,7 +7,7 @@ namespace Lql.Parsing; /// /// Utility class for parsing LQL code. /// -public static class LqlCodeParser +internal static class LqlCodeParser { private static readonly char[] SplitCharacters = [' ', '\t', '|', '>', '(', ')', ',', '=']; diff --git a/Lql/Lql/Parsing/LqlLexer.cs b/Lql/Lql/Parsing/LqlLexer.cs index 1bfa2e5..9ec13ad 100644 --- a/Lql/Lql/Parsing/LqlLexer.cs +++ b/Lql/Lql/Parsing/LqlLexer.cs @@ -31,7 +31,7 @@ namespace Lql.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public partial class LqlLexer : Lexer { +internal partial class LqlLexer : Lexer { protected static DFA[] decisionToDFA; protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); public const int diff --git a/Lql/Lql/Parsing/LqlListener.cs b/Lql/Lql/Parsing/LqlListener.cs index 918aac4..fb3d1c1 100644 --- a/Lql/Lql/Parsing/LqlListener.cs +++ b/Lql/Lql/Parsing/LqlListener.cs @@ -31,7 +31,7 @@ namespace Lql.Parsing { /// [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public interface ILqlListener : IParseTreeListener { +internal interface ILqlListener : IParseTreeListener { /// /// Enter a parse tree produced by . /// diff --git a/Lql/Lql/Parsing/LqlParser.cs b/Lql/Lql/Parsing/LqlParser.cs index 414d40b..78cf48c 100644 --- a/Lql/Lql/Parsing/LqlParser.cs +++ b/Lql/Lql/Parsing/LqlParser.cs @@ -34,7 +34,7 @@ namespace Lql.Parsing { [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public partial class LqlParser : Parser { +internal partial class LqlParser : Parser { protected static DFA[] decisionToDFA; protected static PredictionContextCache sharedContextCache = new PredictionContextCache(); public const int @@ -113,7 +113,7 @@ public LqlParser(ITokenStream input, TextWriter output, TextWriter errorOutput) Interpreter = new ParserATNSimulator(this, _ATN, decisionToDFA, sharedContextCache); } - public partial class ProgramContext : ParserRuleContext { + internal partial class ProgramContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode Eof() { return GetToken(LqlParser.Eof, 0); } [System.Diagnostics.DebuggerNonUserCode] public StatementContext[] statement() { return GetRuleContexts(); @@ -181,7 +181,7 @@ public ProgramContext program() { return _localctx; } - public partial class StatementContext : ParserRuleContext { + internal partial class StatementContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public LetStmtContext letStmt() { return GetRuleContext(0); } @@ -256,7 +256,7 @@ public StatementContext statement() { return _localctx; } - public partial class LetStmtContext : ParserRuleContext { + internal partial class LetStmtContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENT() { return GetToken(LqlParser.IDENT, 0); } [System.Diagnostics.DebuggerNonUserCode] public PipeExprContext pipeExpr() { return GetRuleContext(0); @@ -312,7 +312,7 @@ public LetStmtContext letStmt() { return _localctx; } - public partial class PipeExprContext : ParserRuleContext { + internal partial class PipeExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ExprContext[] expr() { return GetRuleContexts(); } @@ -381,7 +381,7 @@ public PipeExprContext pipeExpr() { return _localctx; } - public partial class ExprContext : ParserRuleContext { + internal partial class ExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENT() { return GetToken(LqlParser.IDENT, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode OVER() { return GetToken(LqlParser.OVER, 0); } [System.Diagnostics.DebuggerNonUserCode] public WindowSpecContext windowSpec() { @@ -576,7 +576,7 @@ public ExprContext expr() { return _localctx; } - public partial class WindowSpecContext : ParserRuleContext { + internal partial class WindowSpecContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public PartitionClauseContext partitionClause() { return GetRuleContext(0); } @@ -647,7 +647,7 @@ public WindowSpecContext windowSpec() { return _localctx; } - public partial class PartitionClauseContext : ParserRuleContext { + internal partial class PartitionClauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode PARTITION() { return GetToken(LqlParser.PARTITION, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BY() { return GetToken(LqlParser.BY, 0); } [System.Diagnostics.DebuggerNonUserCode] public ArgListContext argList() { @@ -702,7 +702,7 @@ public PartitionClauseContext partitionClause() { return _localctx; } - public partial class OrderClauseContext : ParserRuleContext { + internal partial class OrderClauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ORDER() { return GetToken(LqlParser.ORDER, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode BY() { return GetToken(LqlParser.BY, 0); } [System.Diagnostics.DebuggerNonUserCode] public ArgListContext argList() { @@ -757,7 +757,7 @@ public OrderClauseContext orderClause() { return _localctx; } - public partial class LambdaExprContext : ParserRuleContext { + internal partial class LambdaExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] IDENT() { return GetTokens(LqlParser.IDENT); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENT(int i) { return GetToken(LqlParser.IDENT, i); @@ -837,7 +837,7 @@ public LambdaExprContext lambdaExpr() { return _localctx; } - public partial class QualifiedIdentContext : ParserRuleContext { + internal partial class QualifiedIdentContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode[] IDENT() { return GetTokens(LqlParser.IDENT); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENT(int i) { return GetToken(LqlParser.IDENT, i); @@ -904,7 +904,7 @@ public QualifiedIdentContext qualifiedIdent() { return _localctx; } - public partial class ArgListContext : ParserRuleContext { + internal partial class ArgListContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ArgContext[] arg() { return GetRuleContexts(); } @@ -973,7 +973,7 @@ public ArgListContext argList() { return _localctx; } - public partial class ArgContext : ParserRuleContext { + internal partial class ArgContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ColumnAliasContext columnAlias() { return GetRuleContext(0); } @@ -1119,7 +1119,7 @@ public ArgContext arg() { return _localctx; } - public partial class ColumnAliasContext : ParserRuleContext { + internal partial class ColumnAliasContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ArithmeticExprContext arithmeticExpr() { return GetRuleContext(0); } @@ -1218,7 +1218,7 @@ public ColumnAliasContext columnAlias() { return _localctx; } - public partial class ArithmeticExprContext : ParserRuleContext { + internal partial class ArithmeticExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ArithmeticTermContext[] arithmeticTerm() { return GetRuleContexts(); } @@ -1294,7 +1294,7 @@ public ArithmeticExprContext arithmeticExpr() { return _localctx; } - public partial class ArithmeticTermContext : ParserRuleContext { + internal partial class ArithmeticTermContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ArithmeticFactorContext[] arithmeticFactor() { return GetRuleContexts(); } @@ -1377,7 +1377,7 @@ public ArithmeticTermContext arithmeticTerm() { return _localctx; } - public partial class ArithmeticFactorContext : ParserRuleContext { + internal partial class ArithmeticFactorContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public QualifiedIdentContext qualifiedIdent() { return GetRuleContext(0); } @@ -1506,7 +1506,7 @@ public ArithmeticFactorContext arithmeticFactor() { return _localctx; } - public partial class FunctionCallContext : ParserRuleContext { + internal partial class FunctionCallContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENT() { return GetToken(LqlParser.IDENT, 0); } [System.Diagnostics.DebuggerNonUserCode] public ArgListContext argList() { return GetRuleContext(0); @@ -1582,7 +1582,7 @@ public FunctionCallContext functionCall() { return _localctx; } - public partial class NamedArgContext : ParserRuleContext { + internal partial class NamedArgContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IDENT() { return GetToken(LqlParser.IDENT, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ON() { return GetToken(LqlParser.ON, 0); } [System.Diagnostics.DebuggerNonUserCode] public ComparisonContext comparison() { @@ -1662,7 +1662,7 @@ public NamedArgContext namedArg() { return _localctx; } - public partial class LogicalExprContext : ParserRuleContext { + internal partial class LogicalExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public AndExprContext[] andExpr() { return GetRuleContexts(); } @@ -1737,7 +1737,7 @@ public LogicalExprContext logicalExpr() { return _localctx; } - public partial class AndExprContext : ParserRuleContext { + internal partial class AndExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public AtomicExprContext[] atomicExpr() { return GetRuleContexts(); } @@ -1812,7 +1812,7 @@ public AndExprContext andExpr() { return _localctx; } - public partial class AtomicExprContext : ParserRuleContext { + internal partial class AtomicExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ComparisonContext comparison() { return GetRuleContext(0); } @@ -1881,7 +1881,7 @@ public AtomicExprContext atomicExpr() { return _localctx; } - public partial class ComparisonContext : ParserRuleContext { + internal partial class ComparisonContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ArithmeticExprContext[] arithmeticExpr() { return GetRuleContexts(); } @@ -2226,7 +2226,7 @@ public ComparisonContext comparison() { return _localctx; } - public partial class ExistsExprContext : ParserRuleContext { + internal partial class ExistsExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode EXISTS() { return GetToken(LqlParser.EXISTS, 0); } [System.Diagnostics.DebuggerNonUserCode] public PipeExprContext pipeExpr() { return GetRuleContext(0); @@ -2282,7 +2282,7 @@ public ExistsExprContext existsExpr() { return _localctx; } - public partial class NullCheckExprContext : ParserRuleContext { + internal partial class NullCheckExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public QualifiedIdentContext qualifiedIdent() { return GetRuleContext(0); } @@ -2373,7 +2373,7 @@ public NullCheckExprContext nullCheckExpr() { return _localctx; } - public partial class InExprContext : ParserRuleContext { + internal partial class InExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode IN() { return GetToken(LqlParser.IN, 0); } [System.Diagnostics.DebuggerNonUserCode] public QualifiedIdentContext qualifiedIdent() { return GetRuleContext(0); @@ -2473,7 +2473,7 @@ public InExprContext inExpr() { return _localctx; } - public partial class CaseExprContext : ParserRuleContext { + internal partial class CaseExprContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode CASE() { return GetToken(LqlParser.CASE, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode END() { return GetToken(LqlParser.END, 0); } [System.Diagnostics.DebuggerNonUserCode] public WhenClauseContext[] whenClause() { @@ -2560,7 +2560,7 @@ public CaseExprContext caseExpr() { return _localctx; } - public partial class WhenClauseContext : ParserRuleContext { + internal partial class WhenClauseContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode WHEN() { return GetToken(LqlParser.WHEN, 0); } [System.Diagnostics.DebuggerNonUserCode] public ComparisonContext comparison() { return GetRuleContext(0); @@ -2620,7 +2620,7 @@ public WhenClauseContext whenClause() { return _localctx; } - public partial class CaseResultContext : ParserRuleContext { + internal partial class CaseResultContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ArithmeticExprContext arithmeticExpr() { return GetRuleContext(0); } @@ -2735,7 +2735,7 @@ public CaseResultContext caseResult() { return _localctx; } - public partial class OrderDirectionContext : ParserRuleContext { + internal partial class OrderDirectionContext : ParserRuleContext { [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode ASC() { return GetToken(LqlParser.ASC, 0); } [System.Diagnostics.DebuggerNonUserCode] public ITerminalNode DESC() { return GetToken(LqlParser.DESC, 0); } public OrderDirectionContext(ParserRuleContext parent, int invokingState) @@ -2791,7 +2791,7 @@ public OrderDirectionContext orderDirection() { return _localctx; } - public partial class ComparisonOpContext : ParserRuleContext { + internal partial class ComparisonOpContext : ParserRuleContext { public ComparisonOpContext(ParserRuleContext parent, int invokingState) : base(parent, invokingState) { diff --git a/Lql/Lql/Parsing/LqlToAstVisitor.cs b/Lql/Lql/Parsing/LqlToAstVisitor.cs index 8c8b797..6597205 100644 --- a/Lql/Lql/Parsing/LqlToAstVisitor.cs +++ b/Lql/Lql/Parsing/LqlToAstVisitor.cs @@ -9,7 +9,7 @@ namespace Lql.Parsing; /// /// Visitor that converts ANTLR parse tree to transpiler AST nodes. /// -public sealed class LqlToAstVisitor : LqlBaseVisitor +internal sealed class LqlToAstVisitor : LqlBaseVisitor { private readonly Dictionary _variables = []; private HashSet? _lambdaScope; diff --git a/Lql/Lql/Parsing/LqlVisitor.cs b/Lql/Lql/Parsing/LqlVisitor.cs index e52821b..f28f944 100644 --- a/Lql/Lql/Parsing/LqlVisitor.cs +++ b/Lql/Lql/Parsing/LqlVisitor.cs @@ -32,7 +32,7 @@ namespace Lql.Parsing { /// The return type of the visit operation. [System.CodeDom.Compiler.GeneratedCode("ANTLR", "4.13.1")] [System.CLSCompliant(false)] -public interface ILqlVisitor : IParseTreeVisitor { +internal interface ILqlVisitor : IParseTreeVisitor { /// /// Visit a parse tree produced by . /// diff --git a/Migration/Migration.Postgres/Migration.Postgres.csproj b/Migration/Migration.Postgres/Migration.Postgres.csproj index 022fea9..e13e2a0 100644 --- a/Migration/Migration.Postgres/Migration.Postgres.csproj +++ b/Migration/Migration.Postgres/Migration.Postgres.csproj @@ -6,6 +6,10 @@ $(NoWarn);CA2254;CA2100 + + + + diff --git a/Migration/Migration.Postgres/PostgresSchemaInspector.cs b/Migration/Migration.Postgres/PostgresSchemaInspector.cs index aa58c9c..268297f 100644 --- a/Migration/Migration.Postgres/PostgresSchemaInspector.cs +++ b/Migration/Migration.Postgres/PostgresSchemaInspector.cs @@ -3,7 +3,7 @@ namespace Migration.Postgres; /// /// Inspects PostgreSQL database schema and returns a SchemaDefinition. /// -public static class PostgresSchemaInspector +internal static class PostgresSchemaInspector { /// /// Inspect all tables in a PostgreSQL database. diff --git a/Migration/Migration.SQLite/Migration.SQLite.csproj b/Migration/Migration.SQLite/Migration.SQLite.csproj index 2afb75c..5581e34 100644 --- a/Migration/Migration.SQLite/Migration.SQLite.csproj +++ b/Migration/Migration.SQLite/Migration.SQLite.csproj @@ -6,6 +6,10 @@ $(NoWarn);CA2254;CA2100 + + + + diff --git a/Migration/Migration.SQLite/SqliteSchemaInspector.cs b/Migration/Migration.SQLite/SqliteSchemaInspector.cs index e34979e..370d61e 100644 --- a/Migration/Migration.SQLite/SqliteSchemaInspector.cs +++ b/Migration/Migration.SQLite/SqliteSchemaInspector.cs @@ -3,7 +3,7 @@ namespace Migration.SQLite; /// /// Inspects SQLite database schema and returns a SchemaDefinition. /// -public static class SqliteSchemaInspector +internal static class SqliteSchemaInspector { /// /// Inspect all tables in a SQLite database. diff --git a/Migration/Migration/SchemaSerializer.cs b/Migration/Migration/SchemaSerializer.cs index b7bbdb4..22c807f 100644 --- a/Migration/Migration/SchemaSerializer.cs +++ b/Migration/Migration/SchemaSerializer.cs @@ -54,7 +54,7 @@ public static SchemaDefinition FromJson(string json) => /// /// JSON converter for PortableType discriminated union. /// -public sealed class PortableTypeJsonConverter : JsonConverter +internal sealed class PortableTypeJsonConverter : JsonConverter { /// public override PortableType? Read( diff --git a/Migration/Migration/SchemaYamlSerializer.cs b/Migration/Migration/SchemaYamlSerializer.cs index 03488c2..38a5ec1 100644 --- a/Migration/Migration/SchemaYamlSerializer.cs +++ b/Migration/Migration/SchemaYamlSerializer.cs @@ -90,7 +90,7 @@ public static void ToYamlFile(SchemaDefinition schema, string filePath) /// YAML type converter for PortableType discriminated union. /// Serializes types as simple strings like "Text", "Int", "VarChar(255)". /// -public sealed class PortableTypeYamlConverter : IYamlTypeConverter +internal sealed class PortableTypeYamlConverter : IYamlTypeConverter { /// public bool Accepts(Type type) => typeof(PortableType).IsAssignableFrom(type); @@ -239,7 +239,7 @@ private static EnumType ParseEnum(string paramsStr) /// /// YAML type converter for ForeignKeyAction enum. /// -public sealed class ForeignKeyActionYamlConverter : IYamlTypeConverter +internal sealed class ForeignKeyActionYamlConverter : IYamlTypeConverter { /// public bool Accepts(Type type) => type == typeof(ForeignKeyAction); diff --git a/Sync/Sync/BatchManager.cs b/Sync/Sync/BatchManager.cs index 12fbc9f..1863d7c 100644 --- a/Sync/Sync/BatchManager.cs +++ b/Sync/Sync/BatchManager.cs @@ -6,7 +6,7 @@ namespace Sync; /// Manages batch fetching and processing for sync operations. /// Implements spec Section 12 (Batching). /// -public static class BatchManager +internal static class BatchManager { /// /// Fetches a batch of changes from the sync log. diff --git a/Sync/Sync/ChangeApplier.cs b/Sync/Sync/ChangeApplier.cs index e33612c..9459698 100644 --- a/Sync/Sync/ChangeApplier.cs +++ b/Sync/Sync/ChangeApplier.cs @@ -6,7 +6,7 @@ namespace Sync; /// Applies changes to the local database with FK violation defer/retry. /// Implements spec Section 11 (Bi-Directional Sync Protocol). /// -public static class ChangeApplier +internal static class ChangeApplier { /// /// Applies a batch of changes with FK violation handling. diff --git a/Sync/Sync/ConflictResolver.cs b/Sync/Sync/ConflictResolver.cs index 6699e19..af93bdb 100644 --- a/Sync/Sync/ConflictResolver.cs +++ b/Sync/Sync/ConflictResolver.cs @@ -32,7 +32,7 @@ public sealed record ConflictResolution(SyncLogEntry Winner, ConflictStrategy St /// Resolves conflicts between local and remote changes. /// Implements spec Section 14 (Conflict Resolution). /// -public static class ConflictResolver +internal static class ConflictResolver { /// /// Detects if two changes conflict. diff --git a/Sync/Sync/HashVerifier.cs b/Sync/Sync/HashVerifier.cs index decc593..7b6a493 100644 --- a/Sync/Sync/HashVerifier.cs +++ b/Sync/Sync/HashVerifier.cs @@ -8,7 +8,7 @@ namespace Sync; /// Computes and verifies hashes for sync verification. /// Implements spec Section 15 (Hash Verification). /// -public static class HashVerifier +internal static class HashVerifier { private static readonly JsonSerializerOptions CanonicalJsonOptions = new() { diff --git a/Sync/Sync/LqlExpressionEvaluator.cs b/Sync/Sync/LqlExpressionEvaluator.cs index aa44df9..57ea16f 100644 --- a/Sync/Sync/LqlExpressionEvaluator.cs +++ b/Sync/Sync/LqlExpressionEvaluator.cs @@ -9,7 +9,7 @@ namespace Sync; /// Supports: upper(col), lower(col), concat(a, b, ...), coalesce(a, b), /// substring(col, start, len), trim(col), length(col). /// -public static partial class LqlExpressionEvaluator +internal static partial class LqlExpressionEvaluator { /// /// Evaluates an LQL expression against a JSON source object. diff --git a/Sync/Sync/MappingConfigParser.cs b/Sync/Sync/MappingConfigParser.cs index 0acc135..e22d1fb 100644 --- a/Sync/Sync/MappingConfigParser.cs +++ b/Sync/Sync/MappingConfigParser.cs @@ -8,7 +8,7 @@ namespace Sync; /// Parses JSON mapping configuration files. /// Implements spec Section 7.3 - Mapping Configuration Schema. /// -public static class MappingConfigParser +internal static class MappingConfigParser { private static readonly JsonSerializerOptions JsonOptions = new() { diff --git a/Sync/Sync/MappingEngine.cs b/Sync/Sync/MappingEngine.cs index 33815b8..0c367df 100644 --- a/Sync/Sync/MappingEngine.cs +++ b/Sync/Sync/MappingEngine.cs @@ -50,7 +50,7 @@ public sealed record MappingFailed(SyncError Error) : MappingResult; /// Engine for applying data mappings to sync log entries. /// Implements spec Section 7 - Data Mapping. /// -public static class MappingEngine +internal static class MappingEngine { /// /// Applies mapping configuration to a sync log entry. diff --git a/Sync/Sync/MappingState.cs b/Sync/Sync/MappingState.cs index d63073e..0bf4e0c 100644 --- a/Sync/Sync/MappingState.cs +++ b/Sync/Sync/MappingState.cs @@ -44,7 +44,7 @@ string SyncedAt /// Static methods for managing mapping state. /// Implements spec Section 7.5.3 - Sync Decision Logic. /// -public static class MappingStateManager +internal static class MappingStateManager { /// /// Determines if a change should be synced based on version tracking. diff --git a/Sync/Sync/SubscriptionManager.cs b/Sync/Sync/SubscriptionManager.cs index ddb152a..0325a9e 100644 --- a/Sync/Sync/SubscriptionManager.cs +++ b/Sync/Sync/SubscriptionManager.cs @@ -52,7 +52,7 @@ public sealed record ChangeNotification(string SubscriptionId, SyncLogEntry Chan /// Manages real-time subscriptions for sync notifications. /// Implements spec Section 10 (Real-Time Subscriptions). /// -public static class SubscriptionManager +internal static class SubscriptionManager { /// /// Creates a new record-level subscription. diff --git a/Sync/Sync/Sync.csproj b/Sync/Sync/Sync.csproj index 57b4397..618401a 100644 --- a/Sync/Sync/Sync.csproj +++ b/Sync/Sync/Sync.csproj @@ -6,6 +6,14 @@ $(NoWarn); + + + + + + + + diff --git a/Sync/Sync/SyncTrackingState.cs b/Sync/Sync/SyncTrackingState.cs index 0efe8f4..0355c01 100644 --- a/Sync/Sync/SyncTrackingState.cs +++ b/Sync/Sync/SyncTrackingState.cs @@ -35,7 +35,7 @@ string SyncedAt /// Manages sync tracking state per spec Section 7.5. /// Determines whether records should be synced based on tracking strategy. /// -public static class SyncTrackingManager +internal static class SyncTrackingManager { /// /// Determines if an entry should be synced based on tracking state. diff --git a/Sync/Sync/TombstoneManager.cs b/Sync/Sync/TombstoneManager.cs index 30fcf7d..bedb027 100644 --- a/Sync/Sync/TombstoneManager.cs +++ b/Sync/Sync/TombstoneManager.cs @@ -4,7 +4,7 @@ namespace Sync; /// Manages tombstone retention and purging. /// Implements spec Section 13 (Tombstone Retention). /// -public static class TombstoneManager +internal static class TombstoneManager { /// /// Default maximum age for inactive clients before removal.