C# Class Loyc.Syntax.Les.Les2PrinterAndParserTests

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

Protected Properties

Property Type Description
F LNodeFactory
Foo LNode
a LNode
zero LNode

Protected Methods

Method Description
AsOperator ( LNode node ) : LNode
AsStyle ( NodeStyle s, LNode node ) : LNode
Exact ( string text, LNode code, int errorsExpected ) : void
ExpectMessageContains ( MessageHolder messages ) : void
Expr ( string text, LNode expr, int errorsExpected ) : void
NewlineAfter ( LNode node ) : LNode
OnNewLine ( 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
Attributes ( ) : void
BinaryOps ( ) : void
Generics ( ) : void
Lists ( ) : void
NamedFloatLiteral ( ) : void
NamedOps ( ) : void
NegativeLiteral ( ) : void
PrecedenceChallenge ( ) : void
PrefixOps ( ) : void
SimpleCalls ( ) : void
Stmts ( ) : void
SuffixOps ( ) : void
SuperExprs ( ) : void
TriviaTest_Appending ( ) : void
TriviaTest_BlankLinesBetweenArgs ( ) : void
TriviaTest_BlankLinesBetweenStmts ( ) : void
TriviaTest_Comments ( ) : void
TriviaTest_TriviaBetweenAttrs ( ) : void
Tuples ( ) : void

Method Details

AsOperator() protected static method

protected static AsOperator ( LNode node ) : LNode
node LNode
return LNode

AsStyle() protected static method

protected static AsStyle ( NodeStyle s, LNode node ) : LNode
s NodeStyle
node LNode
return LNode

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

NewlineAfter() protected method

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

OnNewLine() protected method

protected OnNewLine ( 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

_() 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 F
return 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