AddScriptBlock() public method

public AddScriptBlock ( ScriptBlock block ) : void
block ScriptBlock
return void
Exemplo n.º 1
0
 public ScriptBlock(TJS owner, string name, int lineoffset, string script, ScriptLineData
     linedata)
 {
     // a class for managing the script block
     // 以下の4つは实行时にいるかな、名前以外はエラー発生时に必要になるだけだろうけど。
     mOwner = owner;
     mName = name;
     mLineOffset = lineoffset;
     mScript = script;
     mLineData = linedata;
     mOwner.AddScriptBlock(this);
 }
Exemplo n.º 2
0
 public ScriptBlock(TJS owner)
 {
     mOwner = owner;
     // Java で初期值となる初期化は省略
     //mScript = null;
     //mName = null;
     //mInterCodeContext = null;
     //mTopLevelContext = null;
     //mLexicalAnalyzer = null;
     //mUsingPreProcessor = false;
     //mLineOffset = 0;
     //mCompileErrorCount = 0;
     //mNode = null;
     mOwner.AddScriptBlock(this);
 }