ParserContext 类

定义

public ref class ParserContext
public class ParserContext
type ParserContext = class
Public Class ParserContext
继承
ParserContext

构造函数

ParserContext(ITextDocument, ParserBase, ParserBase, ParserBase, ErrorSink)

属性

ActiveParser
CodeParser
CurrentBlock
CurrentCharacter
DesignTimeMode
EndOfFile
Errors
LastAcceptedCharacters
LastSpan
MarkupParser
NullGenerateWhitespaceAndNewLine
Source
WhiteSpaceIsSignificantToAncestorBlock

方法

AddSpan(Span)
CompleteParse()
EndBlock()

结束当前块

IsWithin(BlockType)

获取一个布尔值,指示当前块的任何上级是否为指定类型

OnError(RazorError)
OnError(SourceLocation, String, Int32, Object[])
OnError(SourceLocation, String, Int32)
StartBlock()

启动块

StartBlock(BlockType)

启动指定类型的块

SwitchActiveParser()

适用于