Beispiel #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);
 }
Beispiel #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);
 }