API Browser

Method

TryParse

virtual func TryParse(name: string, text: SourceText, filePath: string? = null, parseOptions: ParseOptions? = null) -> SyntaxTree?

Declaring type: SyntaxTreeProvider
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: SyntaxTreeProvider.cs

Attempts to parse a Raven.CodeAnalysis.Syntax.SyntaxTree for the specified document name and text. Non-Raven files return null.

Parameters

Name Type Description
name String
text SourceText
filePath String?
parseOptions ParseOptions?

Return value

SyntaxTree?