Parse errors

This mapping is unfinished: 2 of 1051 nodes are still unmarked.

Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–119 unchanged (119 lines)
120 *
121 * On failure, the call triggers an assertion and no ownership is transferred.
122 *
123 * The caller is responsible for managing the lifetime of the returned handle.
124 */
125 AggStageParseNodeHandle clone() const;
126
127 static void assertVTableConstraints(const VTable_t& vtable) {
128 tassert(11217600, "AggStageParseNode 'get_name' is null", vtable.get_name != nullptr);
129 tassert(10977600,
130 "AggStageParseNode 'get_query_shape' is null",
131 vtable.get_query_shape != nullptr);
132 tassert(11113800,
133 "AggStageParseNode 'get_expanded_size' is null",
134 vtable.get_expanded_size != nullptr);
135 tassert(10977601, "AggStageParseNode 'expand' is null", vtable.expand != nullptr);
136 tassert(11565500, "AggStageParseNode 'clone' is null", vtable.clone != nullptr);
137 }
138
139private:
140 /**
141 * Returns the number of elements the parse node will produce when expanded. This value is used
142 * by the host to size the ExpandedArray.
143 */
…lines 144–150 unchanged (7 lines)

After

…lines 1–120 unchanged (120 lines)
121 * On failure, the call triggers an assertion and no ownership is transferred.
122 *
123 * The caller is responsible for managing the lifetime of the returned handle.
124 */
125 AggStageParseNodeHandle clone() const;
126
127 BSONObj toBsonForLog() const;
128
129 static void assertVTableConstraints(const VTable_t& vtable) {
130 tassert(11217600, "AggStageParseNode 'get_name' is null", vtable.get_name != nullptr);
131 tassert(10977600,
132 "AggStageParseNode 'get_query_shape' is null",
133 vtable.get_query_shape != nullptr);
134 tassert(11113800,
135 "AggStageParseNode 'get_expanded_size' is null",
136 vtable.get_expanded_size != nullptr);
137 tassert(10977601, "AggStageParseNode 'expand' is null", vtable.expand != nullptr);
138 tassert(11565500, "AggStageParseNode 'clone' is null", vtable.clone != nullptr);
139 tassert(11906801,
140 "AggStageParseNode 'to_bson_for_log' is null",
141 vtable.to_bson_for_log != nullptr);
142 }
143
144private:
145 /**
146 * Returns the number of elements the parse node will produce when expanded. This value is used
147 * by the host to size the ExpandedArray.
…lines 148–155 unchanged (8 lines)

Before

translation_unit
comment "/**\n * Copyright (C) 2025-present MongoDB, Inc.\n *\n * "...
preproc_call
preproc_directive "#pragma"
preproc_arg "once"
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/db/extension/public/api.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/db/extension/shared/handle/aggregation_stage/ast_node."...
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/db/extension/shared/handle/handle.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/util/modules.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<vector>"
function_definition
type_identifier "namespace"
ERROR
identifier "mongo"
: ":"
: ":"
identifier "extension"
compound_statement
{ "{"
declaration
type_identifier "class"
identifier "AggStageParseNodeAPI"
; ";"
ERROR
identifier "template"
< "<"
> ">"
function_definition (+21 nodes collapsed)
expression_statement
; ";"
declaration
type_identifier "using"
init_declarator
identifier "AggStageParseNodeHandle"
= "="
binary_expression
identifier "OwnedHandle"
< "<"
ERROR
: ":"
: ":"
identifier "MongoExtensionAggStageParseNode"
ERROR
> ">"
; ";"
declaration
type_identifier "using"
init_declarator
identifier "LogicalAggStageHandle"
= "="
binary_expression
identifier "OwnedHandle"
< "<"
ERROR
: ":"
: ":"
identifier "MongoExtensionLogicalAggStage"
ERROR
> ">"
; ";"
comment "/**\n * Represents the possible types of nodes created during"...
declaration
type_identifier "using"
init_declarator
identifier "VariantNodeHandle"
= "="
ERROR
identifier "std"
: ":"
: ":"
binary_expression
identifier "variant"
< "<"
identifier "AggStageParseNodeHandle"
, ","
identifier "AggStageAstNodeHandle"
ERROR
> ">"
; ";"
comment "/**\n * Represents the possible types of elements that can be"...
declaration
type_identifier "using"
init_declarator
identifier "VariantDPLHandle"
= "="
ERROR
identifier "std"
: ":"
: ":"
binary_expression
identifier "variant"
< "<"
identifier "AggStageParseNodeHandle"
, ","
identifier "LogicalAggStageHandle"
ERROR
> ">"
; ";"
comment "/**\n * Wrapper function that converts a DPL array to a vecto"...
labeled_statement (+25 nodes collapsed)
comment "/**\n * AggStageParseNodeAPI is a wrapper around a MongoExten"...
function_definition
type_identifier "class"
ERROR
identifier "AggStageParseNodeAPI"
: ":"
identifier "public"
identifier "VTableAPI"
< "<"
: ":"
: ":"
identifier "MongoExtensionAggStageParseNode"
ERROR
> ">"
compound_statement
{ "{"
labeled_statement (+33 nodes collapsed)
function_definition (+69 nodes collapsed)
ERROR
type_identifier "BSONObj"
function_declarator
identifier "getQueryShape"
parameter_list
( "("
parameter_declaration
type_qualifier
const "const"
ERROR
: ":"
: ":"
type_identifier "MongoExtensionHostQueryShapeOpts"
ERROR
& "&"
identifier "opts"
) ")"
identifier "const"
expression_statement
; ";"
comment "/**\n * Expands this parse node into its child nodes and "...
labeled_statement
statement_identifier "std"
: ":"
ERROR
: ":"
expression_statement
binary_expression
binary_expression
identifier "vector"
< "<"
identifier "VariantNodeHandle"
> ">"
call_expression
identifier "expand"
argument_list
( "("
) ")"
ERROR
identifier "const"
; ";"
comment "/**\n * Clones this parse node into an identical parse no"...
ERROR
type_identifier "AggStageParseNodeHandle"
function_declarator
identifier "clone"
parameter_list
( "("
) ")"
declaration
type_qualifier
const "const"
ERROR
; ";"
storage_class_specifier
static "static"
primitive_type "void"
ERROR
function_declarator
identifier "assertVTableConstraints"
parameter_list
( "("
parameter_declaration
type_qualifier
const "const"
type_identifier "VTable_t"
ERROR
& "&"
identifier "vtable"
) ")"
{ "{"
function_declarator (+24 nodes collapsed)
; ";"
identifier "tassert"
( "("
expression_statement (+21 nodes collapsed)
expression_statement (+22 nodes collapsed)
expression_statement (+22 nodes collapsed)
expression_statement (+22 nodes collapsed)
} "}"
labeled_statement (+35 nodes collapsed)
} "}"
expression_statement
; ";"
ERROR
} "}"
comment "// namespace mongo::extension"

After

translation_unit
comment "/**\n * Copyright (C) 2025-present MongoDB, Inc.\n *\n * "...
preproc_call
preproc_directive "#pragma"
preproc_arg "once"
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/db/extension/public/api.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/db/extension/shared/handle/aggregation_stage/ast_node."...
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/db/extension/shared/handle/handle.h"
" "\""
preproc_include
#include "#include"
string_literal
" "\""
string_content "mongo/util/modules.h"
" "\""
preproc_include
#include "#include"
system_lib_string "<vector>"
function_definition
type_identifier "namespace"
ERROR
identifier "mongo"
: ":"
: ":"
identifier "extension"
compound_statement
{ "{"
declaration
type_identifier "class"
identifier "AggStageParseNodeAPI"
; ";"
ERROR
identifier "template"
< "<"
> ">"
function_definition (+21 nodes collapsed)
expression_statement
; ";"
declaration
type_identifier "using"
init_declarator
identifier "AggStageParseNodeHandle"
= "="
binary_expression
identifier "OwnedHandle"
< "<"
ERROR
: ":"
: ":"
identifier "MongoExtensionAggStageParseNode"
ERROR
> ">"
; ";"
declaration
type_identifier "using"
init_declarator
identifier "LogicalAggStageHandle"
= "="
binary_expression
identifier "OwnedHandle"
< "<"
ERROR
: ":"
: ":"
identifier "MongoExtensionLogicalAggStage"
ERROR
> ">"
; ";"
comment "/**\n * Represents the possible types of nodes created during"...
declaration
type_identifier "using"
init_declarator
identifier "VariantNodeHandle"
= "="
ERROR
identifier "std"
: ":"
: ":"
binary_expression
identifier "variant"
< "<"
identifier "AggStageParseNodeHandle"
, ","
identifier "AggStageAstNodeHandle"
ERROR
> ">"
; ";"
comment "/**\n * Represents the possible types of elements that can be"...
declaration
type_identifier "using"
init_declarator
identifier "VariantDPLHandle"
= "="
ERROR
identifier "std"
: ":"
: ":"
binary_expression
identifier "variant"
< "<"
identifier "AggStageParseNodeHandle"
, ","
identifier "LogicalAggStageHandle"
ERROR
> ">"
; ";"
comment "/**\n * Wrapper function that converts a DPL array to a vecto"...
labeled_statement (+25 nodes collapsed)
comment "/**\n * AggStageParseNodeAPI is a wrapper around a MongoExten"...
function_definition
type_identifier "class"
ERROR
identifier "AggStageParseNodeAPI"
: ":"
identifier "public"
identifier "VTableAPI"
< "<"
: ":"
: ":"
identifier "MongoExtensionAggStageParseNode"
ERROR
> ">"
compound_statement
{ "{"
labeled_statement (+33 nodes collapsed)
function_definition (+69 nodes collapsed)
ERROR
type_identifier "BSONObj"
function_declarator
identifier "getQueryShape"
parameter_list
( "("
parameter_declaration
type_qualifier
const "const"
ERROR
: ":"
: ":"
type_identifier "MongoExtensionHostQueryShapeOpts"
ERROR
& "&"
identifier "opts"
) ")"
identifier "const"
expression_statement
; ";"
comment "/**\n * Expands this parse node into its child nodes and "...
labeled_statement
statement_identifier "std"
: ":"
ERROR
: ":"
expression_statement
binary_expression
binary_expression
identifier "vector"
< "<"
identifier "VariantNodeHandle"
> ">"
call_expression
identifier "expand"
argument_list
( "("
) ")"
ERROR
identifier "const"
; ";"
comment "/**\n * Clones this parse node into an identical parse no"...
ERROR
type_identifier "AggStageParseNodeHandle"
function_declarator
identifier "clone"
parameter_list
( "("
) ")"
declaration
type_qualifier
const "const"
ERROR
; ";"
type_identifier "BSONObj"
ERROR
function_declarator
identifier "toBsonForLog"
parameter_list
( "("
) ")"
identifier "const"
; ";"
static "static"
primitive_type "void"
function_declarator
identifier "assertVTableConstraints"
parameter_list
( "("
parameter_declaration
type_qualifier
const "const"
type_identifier "VTable_t"
ERROR
& "&"
identifier "vtable"
) ")"
{ "{"
function_declarator (+24 nodes collapsed)
; ";"
identifier "tassert"
( "("
expression_statement (+21 nodes collapsed)
expression_statement (+22 nodes collapsed)
expression_statement (+22 nodes collapsed)
expression_statement (+22 nodes collapsed)
expression_statement
call_expression
identifier "tassert"
argument_list
( "("
number_literal "11906801"
, ","
string_literal
" "\""
string_content "AggStageParseNode 'to_bson_for_log' is null"
" "\""
, ","
binary_expression
field_expression
identifier "vtable"
. "."
field_identifier "to_bson_for_log"
!= "!="
null
nullptr "nullptr"
) ")"
; ";"
} "}"
labeled_statement (+35 nodes collapsed)
} "}"
expression_statement
; ";"
ERROR
} "}"
comment "// namespace mongo::extension"