C# 클래스 Pytocs.Translate.MethodGenerator

Generates code for a Python function definition.
파일 보기 프로젝트 열기: uxmal/pytocs 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
args List
f FunctionDef
fnName string
gen Pytocs.CodeModel.CodeGenerator
stmtXlat StatementTranslator
xlat ExpTranslator

공개 메소드들

메소드 설명
Generate ( ) : CodeMemberMethod
MethodGenerator ( FunctionDef f, string fnName, List args, bool isStatic, CodeGenerator gen ) : System

보호된 메소드들

메소드 설명
Generate ( CodeParameterDeclarationExpression parms ) : CodeMemberMethod
GenerateDefaultArgMethod ( CodeParameterDeclarationExpression argList, CodeExpression paramList ) : void
GenerateTupleParameterUnpackers ( CodeMemberMethod method ) : void
Xlat ( SuiteStatement suite ) : void

비공개 메소드들

메소드 설명
CreateFunctionParameters ( IEnumerable parameters ) : CodeParameterDeclarationExpression[]
GenerateDefaultArgMethod ( int iFirstDefault ) : void
GenerateFunctionParameter ( Parameter ta ) : CodeParameterDeclarationExpression
GenerateTupleParameterType ( List list ) : CodeTypeReference
GenerateTupleParameterUnpacker ( Parameter p, int i, CodeExpression tuplePath, CodeMemberMethod method ) : void

메소드 상세

Generate() 공개 메소드

public Generate ( ) : CodeMemberMethod
리턴 CodeMemberMethod

Generate() 보호된 메소드

protected Generate ( CodeParameterDeclarationExpression parms ) : CodeMemberMethod
parms CodeParameterDeclarationExpression
리턴 CodeMemberMethod

GenerateDefaultArgMethod() 보호된 메소드

protected GenerateDefaultArgMethod ( CodeParameterDeclarationExpression argList, CodeExpression paramList ) : void
argList CodeParameterDeclarationExpression
paramList CodeExpression
리턴 void

GenerateTupleParameterUnpackers() 보호된 메소드

protected GenerateTupleParameterUnpackers ( CodeMemberMethod method ) : void
method CodeMemberMethod
리턴 void

MethodGenerator() 공개 메소드

public MethodGenerator ( FunctionDef f, string fnName, List args, bool isStatic, CodeGenerator gen ) : System
f FunctionDef
fnName string
args List
isStatic bool
gen Pytocs.CodeModel.CodeGenerator
리턴 System

Xlat() 보호된 메소드

protected Xlat ( SuiteStatement suite ) : void
suite SuiteStatement
리턴 void

프로퍼티 상세

args 보호되어 있는 프로퍼티

protected List args
리턴 List

f 보호되어 있는 프로퍼티

protected FunctionDef f
리턴 FunctionDef

fnName 보호되어 있는 프로퍼티

protected string fnName
리턴 string

gen 보호되어 있는 프로퍼티

protected CodeGenerator,Pytocs.CodeModel gen
리턴 Pytocs.CodeModel.CodeGenerator

stmtXlat 보호되어 있는 프로퍼티

protected StatementTranslator,Pytocs.Translate stmtXlat
리턴 StatementTranslator

xlat 보호되어 있는 프로퍼티

protected ExpTranslator xlat
리턴 ExpTranslator