Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b880214

Browse files
committed
external field, now is_extern
1 parent b5ee342 commit b880214

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/ast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ pub struct SoftwareTask {
216216
pub stmts: Vec<Stmt>,
217217

218218
/// The task is declared externally
219-
pub external: bool,
219+
pub is_extern: bool,
220220

221221
pub(crate) _extensible: (),
222222
}
@@ -266,7 +266,7 @@ pub struct HardwareTask {
266266
pub stmts: Vec<Stmt>,
267267

268268
/// The task is declared externally
269-
pub external: bool,
269+
pub is_extern: bool,
270270

271271
pub(crate) _extensible: (),
272272
}

src/parse/hardware_task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ impl HardwareTask {
3434
context,
3535
locals: Local::parse(locals)?,
3636
stmts,
37-
external: false,
37+
is_extern: false,
3838
_extensible: (),
3939
});
4040
}
@@ -81,7 +81,7 @@ impl HardwareTask {
8181
context,
8282
locals: Map::<Local>::new(),
8383
stmts: Vec::<Stmt>::new(),
84-
external: true,
84+
is_extern: true,
8585
_extensible: (),
8686
});
8787
}

src/parse/software_task.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl SoftwareTask {
2828
inputs,
2929
locals: Local::parse(locals)?,
3030
stmts,
31-
external: false,
31+
is_extern: false,
3232
_extensible: (),
3333
});
3434
}
@@ -68,7 +68,7 @@ impl SoftwareTask {
6868
inputs,
6969
locals: Map::<Local>::new(),
7070
stmts: Vec::<Stmt>::new(),
71-
external: true,
71+
is_extern: true,
7272
_extensible: (),
7373
});
7474
}

0 commit comments

Comments
 (0)