C# 클래스 Loyc.Ecs.EcsNodePrinter

파일 보기 프로젝트 열기: qwertie/ecsharp 1 사용 예제들

공개 메소드들

메소드 설명
IsPrefixOperator ( LNode n, bool checkName ) : bool
KeyNameComponentOf ( LNode name ) : Symbol

Given a complex name such as global::Foo<int>.Bar<T>, this method identifies the base name component, which in this example is Bar. This is used, for example, to identify the expected name for a constructor based on the class name, e.g. Foo<T> => Foo.

This was moved to EcsValidators.

PrintReturnThrowEtc ( Symbol name, LNode arg ) : void

보호된 메소드들

메소드 설명
PrintCurrentExpr ( ) : void
PrintType ( LNode n, Precedence context, Ambiguity flags ) : void

비공개 메소드들

메소드 설명
AddAll ( StatementPrinter>.Dictionary d, HashSet names, string handlerName ) : void
AutoPrintAnonymousFunction ( Precedence precedence ) : bool
AutoPrintAssemblyAttribute ( ) : SPResult
AutoPrintBlockOfStmts ( ) : SPResult
AutoPrintBodyOfMethodOrProperty ( LNode body, bool skipFirstStmt = false ) : SPResult
AutoPrintCallOperator ( Precedence precedence ) : bool
AutoPrintCastOperator ( Precedence precedence ) : bool
AutoPrintEvent ( ) : SPResult
AutoPrintForwardedProperty ( ) : bool
AutoPrintInfixBinaryOperator ( Precedence prec ) : bool
AutoPrintLabelStmt ( ) : SPResult
AutoPrintListOperator ( Precedence precedence ) : bool
AutoPrintMacroBlockCall ( bool insideExpr ) : bool
AutoPrintMethodDefinition ( ) : SPResult
AutoPrintMissingStmt ( ) : SPResult
AutoPrintNamedArg ( Precedence precedence ) : bool
AutoPrintNewOperator ( Precedence precedence ) : bool
AutoPrintOfOperator ( Precedence precedence ) : bool
AutoPrintOperator ( ) : bool
AutoPrintOtherBlockStmt ( ) : SPResult
AutoPrintOtherSpecialOperator ( Precedence precedence ) : bool
AutoPrintPrefixOrInfixOperator ( Precedence infixPrec ) : bool
AutoPrintPrefixReturnThrowEtc ( Precedence prec ) : bool
AutoPrintPrefixUnaryOperator ( Precedence precedence ) : bool
AutoPrintPropDeclExpr ( Precedence precedence ) : bool
AutoPrintProperty ( ) : SPResult
AutoPrintRawText ( ) : SPResult
AutoPrintResult ( ) : SPResult
AutoPrintSimpleStmt ( ) : SPResult
AutoPrintSpaceDefinition ( ) : SPResult
AutoPrintTwoArgBlockStmt ( ) : SPResult
AutoPrintVarDecl ( ) : SPResult
CanAppearHere ( Precedence prec, bool &extraParens, bool prefix = false ) : bool
CanAppearHere ( Precedence &prec, bool &extraParens, bool &backtick, bool prefix = false ) : bool
CountDimensionsIfArrayType ( LNode type ) : int
GetCastText ( Symbol name ) : string
GetRawText ( LNode rawTextNode ) : string
IsAutoPropBody ( LNode body ) : bool
IsDefaultNewlineSuppressed ( LNode node ) : bool
OperatorPrinters_ ( ) : Dictionary>
PrintArgList ( VList args, ParenFor kind, bool allowUnassignedVarDecl, bool omitMissingArguments, char separator = ',' ) : void
PrintArgs ( LNode args, bool omitMissingArguments, char separator = ',' ) : void
PrintArgs ( VList args, Ambiguity flags, bool omitMissingArguments, char separator = ',' ) : void
PrintBracedBlock ( LNode body, NewlineOpt beforeBrace, bool skipFirstStmt = false, Symbol spaceName = null, BraceMode mode = BraceMode.Normal ) : void
PrintBracedBlockInNewExpr ( int start_i ) : void
PrintBracedBlockOrStmt ( LNode child, NewlineOpt beforeBrace = NewlineOpt.BeforeExecutableBrace ) : bool
PrintCurrentStmt ( ) : void
PrintCurrentType ( ) : void
PrintExpr ( LNode n ) : void
PrintExpr ( LNode n, Precedence context ) : void
PrintExpr ( LNode n, Precedence context, Ambiguity flags ) : void
PrintExpressionsInBraces ( LNode body, bool isInitializer ) : void
PrintPurePrefixNotation ( bool skipAttrs = false ) : void
PrintRawText ( Precedence mainPrec ) : bool
PrintSimpleIdentOrLiteral ( ) : void
PrintStatementsInBraces ( LNode braces, bool skipFirstStmt = false, bool newlinesByDefault = true ) : void
PrintStmt ( LNode n ) : void
PrintStmt ( LNode n, Ambiguity flags ) : void
PrintTypeAndName ( bool isConstructor, bool isCastOperator = false, AttrStyle attrStyle = AttrStyle.IsDefinition, string eventKeywordOpt = null ) : void
PrintTypeWithArraySizes ( LNode cons ) : void
PrintVariableDecl ( bool printAttrs, LNode skipClause = null ) : void
PrintWhereClauses ( LNode name ) : void
SpecialTypeKind ( LNode n ) : Symbol
StatementPrinters_ ( ) : StatementPrinter>.Dictionary
WriteCloseParens ( int parenCount ) : void
WriteOperatorName ( Symbol name, bool useBacktick = false ) : void

메소드 상세

IsPrefixOperator() 공개 메소드

public IsPrefixOperator ( LNode n, bool checkName ) : bool
n LNode
checkName bool
리턴 bool

KeyNameComponentOf() 공개 정적인 메소드

Given a complex name such as global::Foo<int>.Bar<T>, this method identifies the base name component, which in this example is Bar. This is used, for example, to identify the expected name for a constructor based on the class name, e.g. Foo<T> => Foo.
This was moved to EcsValidators.
public static KeyNameComponentOf ( LNode name ) : Symbol
name LNode
리턴 Symbol

PrintCurrentExpr() 보호된 메소드

protected PrintCurrentExpr ( ) : void
리턴 void

PrintReturnThrowEtc() 공개 메소드

public PrintReturnThrowEtc ( Symbol name, LNode arg ) : void
name Symbol
arg LNode
리턴 void

PrintType() 보호된 메소드

protected PrintType ( LNode n, Precedence context, Ambiguity flags ) : void
n LNode
context Precedence
flags Ambiguity
리턴 void