pub struct FSharpLanguage {
pub fsharp_4_0: bool,
pub fsharp_4_1: bool,
pub fsharp_4_5: bool,
pub fsharp_5_0: bool,
pub fsharp_6_0: bool,
pub fsharp_7_0: bool,
pub computation_expressions: bool,
pub type_providers: bool,
pub async_workflows: bool,
pub query_expressions: bool,
}Expand description
F# language implementation.
Fields§
§fsharp_4_0: boolWhether to enable F# 4.0 features.
fsharp_4_1: boolWhether to enable F# 4.1 features.
fsharp_4_5: boolWhether to enable F# 4.5 features.
fsharp_5_0: boolWhether to enable F# 5.0 features.
fsharp_6_0: boolWhether to enable F# 6.0 features.
fsharp_7_0: boolWhether to enable F# 7.0 features.
computation_expressions: boolWhether to enable computation expressions.
type_providers: boolWhether to enable type providers.
async_workflows: boolWhether to enable async workflows.
query_expressions: boolWhether to enable query expressions.
Implementations§
Source§impl FSharpLanguage
impl FSharpLanguage
Sourcepub fn with_all_features(self) -> Self
pub fn with_all_features(self) -> Self
Enables all F# features.
Sourcepub fn with_version(self, major: u8, minor: u8) -> Self
pub fn with_version(self, major: u8, minor: u8) -> Self
Sets the F# version.
Sourcepub fn with_computation_expressions(self, enabled: bool) -> Self
pub fn with_computation_expressions(self, enabled: bool) -> Self
Enables or disables computation expressions.
Sourcepub fn with_type_providers(self, enabled: bool) -> Self
pub fn with_type_providers(self, enabled: bool) -> Self
Enables or disables type providers.
Sourcepub fn with_async_workflows(self, enabled: bool) -> Self
pub fn with_async_workflows(self, enabled: bool) -> Self
Enables or disables async workflows.
Sourcepub fn with_query_expressions(self, enabled: bool) -> Self
pub fn with_query_expressions(self, enabled: bool) -> Self
Enables or disables query expressions.
Trait Implementations§
Source§impl<'config> Builder<FSharpLanguage> for FSharpBuilder<'config>
impl<'config> Builder<FSharpLanguage> for FSharpBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<FSharpLanguage>,
) -> BuildOutput<FSharpLanguage>
fn build<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<FSharpLanguage>, ) -> BuildOutput<FSharpLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for FSharpLanguage
impl Clone for FSharpLanguage
Source§fn clone(&self) -> FSharpLanguage
fn clone(&self) -> FSharpLanguage
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 FSharpLanguage
impl Debug for FSharpLanguage
Source§impl Default for FSharpLanguage
impl Default for FSharpLanguage
Source§impl<'de> Deserialize<'de> for FSharpLanguage
impl<'de> Deserialize<'de> for FSharpLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FSharpLanguage
impl Hash for FSharpLanguage
Source§impl Language for FSharpLanguage
impl Language for FSharpLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = FSharpTokenType
type TokenType = FSharpTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = FSharpElementType
type ElementType = FSharpElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = FSharpRoot
type TypedRoot = FSharpRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<FSharpLanguage> for FSharpLexer<'config>
impl<'config> Lexer<FSharpLanguage> for FSharpLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<FSharpLanguage>,
) -> LexOutput<FSharpLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<FSharpLanguage>, ) -> LexOutput<FSharpLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<FSharpLanguage> for FSharpParser<'config>
impl<'config> Parser<FSharpLanguage> for FSharpParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<FSharpLanguage>,
) -> ParseOutput<'a, FSharpLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<FSharpLanguage>, ) -> ParseOutput<'a, FSharpLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for FSharpLanguage
impl PartialEq for FSharpLanguage
Source§impl Serialize for FSharpLanguage
impl Serialize for FSharpLanguage
impl Copy for FSharpLanguage
impl Eq for FSharpLanguage
impl StructuralPartialEq for FSharpLanguage
Auto Trait Implementations§
impl Freeze for FSharpLanguage
impl RefUnwindSafe for FSharpLanguage
impl Send for FSharpLanguage
impl Sync for FSharpLanguage
impl Unpin for FSharpLanguage
impl UnsafeUnpin for FSharpLanguage
impl UnwindSafe for FSharpLanguage
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