C# Класс Universe.ScriptEngine.VirtualScript.CompilerTools.LSL2CSCodeTransformer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddLSLEvent ( EventInfo ev ) : void
FixEventName ( string script, ScriptEngineParser.StateEvent &evt ) : void
GetAllLSLEvents ( ) : List
GetNewLSLEvents ( ) : List
LSL2CSCodeTransformer ( SYMBOL astRoot, string originalScript ) : System.Collections.Generic

Pass the new CodeTransformer an abstract syntax tree.

Transform ( ) : SYMBOL

Transform the code in the AST we have.

Transform ( string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements ) : SYMBOL

Приватные методы

Метод Описание
AddImplicitInitialization ( SYMBOL s, int didx ) : void

Replaces an instance of the node at s.kids[didx] with an assignment node. The assignment node has the Declaration node on the left hand side and a default initializer on the right hand side.

GetLocalVariableDictionaryKey ( ) : string
GetZeroConstant ( Parser p, string constantType ) : SYMBOL

Generates the node structure required to generate a default initialization.

TransformNode ( SYMBOL s, string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements ) : void

Recursively called to transform each type of node. Will transform this node, then all it's children.

TransformNode ( SYMBOL s, string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements, List scopesParent, int scopeCurrent ) : void

Recursively called to transform each type of node. Will transform this node, then all it's children.

Описание методов

AddLSLEvent() публичный статический Метод

public static AddLSLEvent ( EventInfo ev ) : void
ev EventInfo
Результат void

FixEventName() публичный статический Метод

public static FixEventName ( string script, ScriptEngineParser.StateEvent &evt ) : void
script string
evt ScriptEngineParser.StateEvent
Результат void

GetAllLSLEvents() публичный статический Метод

public static GetAllLSLEvents ( ) : List
Результат List

GetNewLSLEvents() публичный статический Метод

public static GetNewLSLEvents ( ) : List
Результат List

LSL2CSCodeTransformer() публичный Метод

Pass the new CodeTransformer an abstract syntax tree.
public LSL2CSCodeTransformer ( SYMBOL astRoot, string originalScript ) : System.Collections.Generic
astRoot Tools.SYMBOL The root node of the AST.
originalScript string The original script that we are converting
Результат System.Collections.Generic

Transform() публичный Метод

Transform the code in the AST we have.
public Transform ( ) : SYMBOL
Результат Tools.SYMBOL

Transform() публичный Метод

public Transform ( string>.Dictionary GlobalMethods, ObjectList>.Dictionary MethodArguements ) : SYMBOL
GlobalMethods string>.Dictionary
MethodArguements ObjectList>.Dictionary
Результат Tools.SYMBOL