Share via


ParserResults Constructors

Definition

Overloads

ParserResults(Block, IEnumerable<TagHelperDescriptor>, ErrorSink)

Instantiates a new ParserResults instance.

ParserResults(Boolean, Block, IEnumerable<TagHelperDescriptor>, ErrorSink)

Instantiates a new ParserResults instance.

ParserResults(Block, IEnumerable<TagHelperDescriptor>, ErrorSink)

Instantiates a new ParserResults instance.

public:
 ParserResults(Microsoft::AspNetCore::Razor::Parser::SyntaxTree::Block ^ document, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ tagHelperDescriptors, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
public ParserResults (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block document, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> tagHelperDescriptors, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
new Microsoft.AspNetCore.Razor.ParserResults : Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block * seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> * Microsoft.AspNetCore.Razor.ErrorSink -> Microsoft.AspNetCore.Razor.ParserResults
Public Sub New (document As Block, tagHelperDescriptors As IEnumerable(Of TagHelperDescriptor), errorSink As ErrorSink)

Parameters

document
Block

The Block for the syntax tree.

tagHelperDescriptors
IEnumerable<TagHelperDescriptor>

The TagHelperDescriptors that apply to the current Razor document.

errorSink
ErrorSink

The ErrorSink used to collect RazorErrors encountered when parsing the current Razor document.

Applies to

ParserResults(Boolean, Block, IEnumerable<TagHelperDescriptor>, ErrorSink)

Instantiates a new ParserResults instance.

protected:
 ParserResults(bool success, Microsoft::AspNetCore::Razor::Parser::SyntaxTree::Block ^ document, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ tagHelperDescriptors, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
protected ParserResults (bool success, Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block document, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> tagHelperDescriptors, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
new Microsoft.AspNetCore.Razor.ParserResults : bool * Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block * seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> * Microsoft.AspNetCore.Razor.ErrorSink -> Microsoft.AspNetCore.Razor.ParserResults
Protected Sub New (success As Boolean, document As Block, tagHelperDescriptors As IEnumerable(Of TagHelperDescriptor), errorSink As ErrorSink)

Parameters

success
Boolean

true if parsing was successful, false otherwise.

document
Block

The Block for the syntax tree.

tagHelperDescriptors
IEnumerable<TagHelperDescriptor>

The TagHelperDescriptors that apply to the current Razor document.

errorSink
ErrorSink

The ErrorSink used to collect RazorErrors encountered when parsing the current Razor document.

Applies to