MCPcopy Create free account
hub / github.com/amber-lang/amber / new_expr

Method new_expr

src/modules/command/modifier.rs:52–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51impl CommandModifier {
52 pub fn new_expr() -> Self {
53 CommandModifier {
54 block: None,
55 is_trust: false,
56 is_silent: false,
57 is_suppress: false,
58 is_sudo: false,
59 trust_position: None,
60 silent_position: None,
61 suppress_position: None,
62 sudo_position: None,
63 }
64 }
65
66 pub fn use_modifiers<F>(&mut self, meta: &mut ParserMetadata, context: F) -> SyntaxResult
67 where

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected