MCPcopy Create free account
hub / github.com/apache/datafusion / hint

Method hint

datafusion-cli/src/helper.rs:136–142  ·  view source on GitHub ↗
(&self, line: &str, _pos: usize, _ctx: &Context<'_>)

Source from the content-addressed store, hash-verified

134 type Hint = String;
135
136 fn hint(&self, line: &str, _pos: usize, _ctx: &Context<'_>) -> Option<String> {
137 if !line.is_empty() {
138 self.show_hint.set(false);
139 }
140 (self.show_hint.get() && line.trim().is_empty())
141 .then(|| DEFAULT_HINT_SUGGESTION.to_owned())
142 }
143}
144
145/// returns true if the current position is after the open quote for

Callers

nothing calls this directly

Calls 4

trimMethod · 0.80
is_emptyMethod · 0.45
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected