pub struct DockerfileLanguage {
pub strict_mode: bool,
pub multi_stage: bool,
}Expand description
Dockerfile 语言配置
Fields§
§strict_mode: bool是否启用严格模式
multi_stage: bool是否允许多阶段构
Trait Implementations§
Source§impl Clone for DockerfileLanguage
impl Clone for DockerfileLanguage
Source§fn clone(&self) -> DockerfileLanguage
fn clone(&self) -> DockerfileLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DockerfileLanguage
impl Debug for DockerfileLanguage
Source§impl Default for DockerfileLanguage
impl Default for DockerfileLanguage
Source§impl Language for DockerfileLanguage
impl Language for DockerfileLanguage
Source§type SyntaxKind = DockerfileSyntaxKind
type SyntaxKind = DockerfileSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§type TypedRoot = DockerfileRoot
type TypedRoot = DockerfileRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<DockerfileLanguage> for DockerfileLexer<'config>
impl<'config> Lexer<DockerfileLanguage> for DockerfileLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, DockerfileLanguage>,
) -> LexOutput<DockerfileLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, DockerfileLanguage>, ) -> LexOutput<DockerfileLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§fn lex(
&self,
source: impl Source,
) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
fn lex( &self, source: impl Source, ) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
Tokenizes the given source text into a sequence of tokens. Read more
impl Copy for DockerfileLanguage
Auto Trait Implementations§
impl Freeze for DockerfileLanguage
impl RefUnwindSafe for DockerfileLanguage
impl Send for DockerfileLanguage
impl Sync for DockerfileLanguage
impl Unpin for DockerfileLanguage
impl UnwindSafe for DockerfileLanguage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more