Microsoft.JScript.Context.GetCode C# (CSharp) Method

GetCode() public method

public GetCode ( ) : String
return String
    public String GetCode() {
      if (this.endPos > this.startPos && this.endPos <= this.source_string.Length){
        return this.source_string.Substring(this.startPos, this.endPos - this.startPos);
      }
      return null; 
    }

Usage Example

Example #1
0
 // this is the typical Lookup constructor. The context points to the identifier
 internal Lookup(Context context)
   : base(context, context.GetCode()){
   this.lexLevel = 0;
   this.evalLexLevel = 0;
   this.fieldLoc = null;
   this.refLoc = null;
   this.lateBinding = null;
   this.thereIsAnObjectOnTheStack = false;
 }
All Usage Examples Of Microsoft.JScript.Context::GetCode