mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 02:13:11 +00:00
feat: add Array.update_nth!
This commit is contained in:
parent
07e37c878c
commit
74bca70017
7 changed files with 87 additions and 15 deletions
|
@ -3321,6 +3321,13 @@ impl Identifier {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn public_with_loc(dot: Token, name: Str, loc: Location) -> Self {
|
||||
Self::new(
|
||||
VisModifierSpec::Public(dot),
|
||||
VarName::from_str_and_loc(name, loc),
|
||||
)
|
||||
}
|
||||
|
||||
pub fn public_from_token(dot: Token, symbol: Token) -> Self {
|
||||
Self::new(VisModifierSpec::Public(dot), VarName::new(symbol))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue