-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
96 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/doenetml-worker-rust/doenetml-core/src/component/_error.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/doenetml-worker-rust/doenetml-core/src/component/document.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
use std::collections::HashMap; | ||
|
||
use crate::dast::Position as DastPosition; | ||
use crate::{ComponentChild, ComponentInd, ExtendSource}; | ||
use crate::{ComponentChild, ComponentIdx, ExtendSource}; | ||
|
||
use super::ComponentNode; | ||
|
||
#[derive(Debug, Default, ComponentNode)] | ||
pub struct Document { | ||
pub ind: ComponentInd, | ||
pub parent: Option<ComponentInd>, | ||
pub idx: ComponentIdx, | ||
pub parent: Option<ComponentIdx>, | ||
pub children: Vec<ComponentChild>, | ||
|
||
pub extend: Option<ExtendSource>, | ||
|
||
// map of descendant names to their indices | ||
pub descendant_names: HashMap<String, Vec<ComponentInd>>, | ||
pub descendant_names: HashMap<String, Vec<ComponentIdx>>, | ||
|
||
pub position: Option<DastPosition>, | ||
} |
8 changes: 4 additions & 4 deletions
8
packages/doenetml-worker-rust/doenetml-core/src/component/p.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
use std::collections::HashMap; | ||
|
||
use crate::dast::Position as DastPosition; | ||
use crate::{ComponentChild, ComponentInd, ExtendSource}; | ||
use crate::{ComponentChild, ComponentIdx, ExtendSource}; | ||
|
||
use super::ComponentNode; | ||
|
||
#[derive(Debug, Default, ComponentNode)] | ||
pub struct P { | ||
pub ind: ComponentInd, | ||
pub parent: Option<ComponentInd>, | ||
pub idx: ComponentIdx, | ||
pub parent: Option<ComponentIdx>, | ||
pub children: Vec<ComponentChild>, | ||
|
||
pub extend: Option<ExtendSource>, | ||
|
||
// map of descendant names to their indices | ||
pub descendant_names: HashMap<String, Vec<ComponentInd>>, | ||
pub descendant_names: HashMap<String, Vec<ComponentIdx>>, | ||
|
||
pub position: Option<DastPosition>, | ||
} |
Oops, something went wrong.