Microsoft.JScript.PackageScope.AddOwnName C# (CSharp) Method

AddOwnName() private method

private AddOwnName ( ) : void
return void
      internal void AddOwnName(){
        String root = this.name;
        int i = root.IndexOf('.');
        if (i > 0)
          root = root.Substring(0, i);
        base.AddNewField(root, Namespace.GetNamespace(root, this.engine), FieldAttributes.Literal|FieldAttributes.Public);
      }