C# Class Loyc.Syntax.Les.Les3PrinterAndParserTests

Inheritance: Assert
显示文件 Open project: qwertie/ecsharp

Protected Properties

Property Type Description
F Loyc.Syntax.LNodeFactory
Foo LNode
a LNode
zero LNode

Public Methods

Method Description
TriviaTest_BlankLinesBetweenArgs ( ) : void

Protected Methods

Method Description
Exact ( string text, LNode code, int errorsExpected ) : void
ExpectMessageContains ( MessageHolder messages ) : void
Expr ( string text, LNode expr, int errorsExpected ) : void
KeywordExpr ( LNode node ) : LNode
NewlineAfter ( LNode node ) : LNode
OnNewLine ( LNode node ) : LNode
Op ( LNode node ) : LNode
Stmt ( string text, LNode code, int errorsExpected ) : void
Test ( Mode mode, int parseErrors, string text ) : MessageHolder

Runs a printer or parser test.

_ ( Symbol name ) : LNode
_ ( string name ) : LNode

Private Methods

Method Description
AvoidKeywordStatementAmbiguity ( ) : void
BigIntLiterals ( ) : void
BinaryOps ( ) : void
BraceAndBrackAttributes ( ) : void
ComboOperators ( ) : void
CustomLiterals ( ) : void
DollarSignOnlyAtStartOfOperator ( ) : void
DotIdentifierIsKeyword ( ) : void
Generics ( ) : void
IndexBracks ( ) : void
InvalidOperators ( ) : void
KeywordStatements ( ) : void
KeywordStmtWithMissingExpr ( ) : void
ListLiterals ( ) : void
LiteralKeywords ( ) : void
NamedFloatLiteral ( ) : void
NegativeLiteral ( ) : void
NumericLiterals ( ) : void
ParenAttributes ( ) : void
PrecedenceChallenge ( ) : void
PrefixOps ( ) : void
PrinterSpacingMinefield ( ) : void
SimpleAttributes ( ) : void
SimpleCalls ( ) : void
Stmts ( ) : void
StringLiterals ( ) : void
StringLiteralsWithArbitraryBytes ( ) : void
SubtractNegativeLiteral ( ) : void
SuffixOps ( ) : void
TrickPrinterWithParens ( ) : void
TriviaTest_Appending ( ) : void
TriviaTest_BlankLinesBetweenStmts ( ) : void
TriviaTest_Comments ( ) : void
TriviaTest_LineBreakBetweenAttrs ( ) : void
Tuples ( ) : void
Utf8BasedEscapeSequences ( ) : void
WordOperators ( ) : void

Method Details

Exact() protected method

protected Exact ( string text, LNode code, int errorsExpected ) : void
text string
code LNode
errorsExpected int
return void

ExpectMessageContains() protected method

protected ExpectMessageContains ( MessageHolder messages ) : void
messages MessageHolder
return void

Expr() protected method

protected Expr ( string text, LNode expr, int errorsExpected ) : void
text string
expr LNode
errorsExpected int
return void

KeywordExpr() protected method

protected KeywordExpr ( LNode node ) : LNode
node LNode
return LNode

NewlineAfter() protected method

protected NewlineAfter ( LNode node ) : LNode
node LNode
return LNode

OnNewLine() protected method

protected OnNewLine ( LNode node ) : LNode
node LNode
return LNode

Op() protected method

protected Op ( LNode node ) : LNode
node LNode
return LNode

Stmt() protected method

protected Stmt ( string text, LNode code, int errorsExpected ) : void
text string
code LNode
errorsExpected int
return void

Test() protected abstract method

Runs a printer or parser test.
protected abstract Test ( Mode mode, int parseErrors, string text ) : MessageHolder
mode Mode
parseErrors int -1 if the printer and parser should both /// test this example. If above -1, only the parser will run this example, /// and this parameter specifies the number of parse errors to expect /// (may be 0).
text string
return MessageHolder

TriviaTest_BlankLinesBetweenArgs() public method

public TriviaTest_BlankLinesBetweenArgs ( ) : void
return void

_() protected method

protected _ ( Symbol name ) : LNode
name Symbol
return LNode

_() protected method

protected _ ( string name ) : LNode
name string
return LNode

Property Details

F protected_oe static_oe property

protected static LNodeFactory,Loyc.Syntax F
return Loyc.Syntax.LNodeFactory

Foo protected_oe property

protected LNode Foo
return LNode

a protected_oe property

protected LNode a
return LNode

zero protected_oe property

protected LNode zero
return LNode