Skip to content

Commit

Permalink
Add line_number and column number to nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
roxy-dao committed Nov 12, 2024
1 parent 9567d13 commit d91e506
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/graphql/types/src/types/program/program_indicator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ impl IndicatorLineRowNode {
pub async fn name(&self) -> &str {
&self.line.description
}

pub async fn line_number(&self) -> i32 {
self.line.line_number
}
}

impl IndicatorColumnNode {
Expand All @@ -172,6 +176,10 @@ impl IndicatorColumnNode {
pub async fn value_type(&self) -> IndicatorValueTypeNode {
IndicatorValueTypeNode::from_domain(&self.column.value_type)
}

pub async fn column_number(&self) -> i32 {
self.column.column_number
}
}

#[derive(Enum, Copy, Clone, PartialEq, Eq, Debug)]
Expand Down

0 comments on commit d91e506

Please sign in to comment.