- {props.node["ast-node"]}
+ {props.node["ast-node"]}
+ {selfSource}
Standard Properties
@@ -116,6 +144,7 @@ const OrgAstNode = (props: {
parentUniqueId={props.uid}
selectedNode={props.selectedNode}
properties={props.node["standard-properties"]}
+ fullSource={props.fullSource}
/>
{!!Object.keys(props.node.properties).length ? (
@@ -129,6 +158,7 @@ const OrgAstNode = (props: {
parentUniqueId={props.uid}
selectedNode={props.selectedNode}
properties={props.node.properties}
+ fullSource={props.fullSource}
/>
>
@@ -144,6 +174,7 @@ const OrgAstNode = (props: {
parentUniqueId={props.uid}
selectedNode={props.selectedNode}
node_list={props.node.children}
+ fullSource={props.fullSource}
/>
@@ -159,6 +190,7 @@ const OrgAstNodeList = (props: {
parentUniqueId: string;
selectedNode: OrgNodeReference | null;
node_list: any[];
+ fullSource: string;
}): React.JSX.Element[] => {
return props.node_list.map((node) => {
const uid =
@@ -179,6 +211,7 @@ const OrgAstNodeList = (props: {
endHoverNode={props.endHoverNode}
selectedNode={props.selectedNode}
node={node}
+ fullSource={props.fullSource}
/>
);
});
@@ -191,6 +224,7 @@ const OrgPropertiesList = (props: {
parentUniqueId: string;
selectedNode: OrgNodeReference | null;
properties: Object;
+ fullSource: string;
}): React.JSX.Element => {
const entries = Object.entries(props.properties)
.sort((a, b) => {
@@ -218,6 +252,7 @@ const OrgPropertiesList = (props: {
parentUniqueId={props.parentUniqueId}
selectedNode={props.selectedNode}
value={value}
+ fullSource={props.fullSource}
/>
@@ -238,6 +273,7 @@ const OrgPropertyValue = (props: {
parentUniqueId: string;
selectedNode: OrgNodeReference | null;
value: any;
+ fullSource: string;
}): React.ReactNode => {
if (
props.value === null ||
@@ -255,6 +291,7 @@ const OrgPropertyValue = (props: {
parentUniqueId={props.parentUniqueId}
selectedNode={props.selectedNode}
node_list={props.value}
+ fullSource={props.fullSource}
/>
);
@@ -282,6 +319,7 @@ const OrgPropertyValue = (props: {
parentUniqueId={props.parentUniqueId}
selectedNode={props.selectedNode}
value={props.value}
+ fullSource={props.fullSource}
/>
);
} else {
@@ -296,6 +334,7 @@ interface OrgObjectTreeProps {
parentUniqueId: string;
selectedNode: OrgNodeReference | null;
value: any;
+ fullSource: string;
}
function OrgObjectTree({
@@ -305,6 +344,7 @@ function OrgObjectTree({
parentUniqueId,
selectedNode,
value,
+ fullSource,
}: OrgObjectTreeProps): React.ReactNode {
const entries = value["object-tree"].map((entry: any) => {
return (
@@ -319,6 +359,7 @@ function OrgObjectTree({
parentUniqueId={parentUniqueId}
selectedNode={selectedNode}
node_list={entry[0]}
+ fullSource={fullSource}
/>
@@ -332,6 +373,7 @@ function OrgObjectTree({
parentUniqueId={parentUniqueId}
selectedNode={selectedNode}
node_list={entry[1]}
+ fullSource={fullSource}
/>
@@ -366,7 +408,9 @@ function is_list_of_ast_nodes(val: any): boolean {
}
function is_optional_pair(val: any): boolean {
- return is_object(val) && val.hasOwnProperty("optval") && val.hasOwnProperty("val");
+ return (
+ is_object(val) && val.hasOwnProperty("optval") && val.hasOwnProperty("val")
+ );
}
function is_object_tree(val: any): boolean {