Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This file has been truncated, but you can view the full file.
using System;
using System.Collections.Generic;
using Jurassic;
using Jurassic.Library;
using TypeScriptServiceBridge;
using TypeScriptServiceBridge;
using TypeScriptServiceBridge.TypeScript.CompilerDiagnostics;
using TypeScriptServiceBridge.TypeScript;
using TypeScriptServiceBridge.TypeScript.AstWalkerWithDetailCallback;
using TypeScriptServiceBridge.Tools;
using TypeScriptServiceBridge.Services;
using TypeScriptServiceBridge.Formatting;
using TypeScriptServiceBridge.Formatting.Shared;
using TypeScriptServiceBridge.Harness;
using TypeScriptServiceBridge.Harness.Perf;
using TypeScriptServiceBridge.Harness.Compiler;
using TypeScriptServiceBridge.Harness.Baseline;
namespace TypeScriptServiceBridge {
public class TypeScriptBridgeAttribute : Attribute
{
public TypeScriptBridgeAttribute (string name)
{
Name = name;
}
public string Name { get; set; }
}
}
namespace TypeScriptServiceBridge
{
public interface ILineIndenationResolver : ITypeScriptObject
{
}
public class ILineIndenationResolver_Impl : TypeScriptObject, ILineIndenationResolver
{
public ILineIndenationResolver_Impl (ObjectInstance instance) : base (instance) {}
}
public interface ITextWriter : ITypeScriptObject
{
}
public class ITextWriter_Impl : TypeScriptObject, ITextWriter
{
public ITextWriter_Impl (ObjectInstance instance) : base (instance) {}
}
public interface IFormatter : ITypeScriptObject
{
}
public class IFormatter_Impl : TypeScriptObject, IFormatter
{
public IFormatter_Impl (ObjectInstance instance) : base (instance) {}
}
public class TokenRange : TypeScriptObject
{
public TokenRange (ObjectInstance instance) : base (instance) {}
public TokenRange ()
: base (CallConstructor ("", "TokenRange"))
{
}
}
public class RulesProvider : TypeScriptObject
{
public RulesProvider (ObjectInstance instance) : base (instance) {}
public RulesProvider ()
: base (CallConstructor ("", "RulesProvider"))
{
}
}
public class Error : TypeScriptObject
{
public Error (ObjectInstance instance) : base (instance) {}
public Error ()
: base (CallConstructor ("", "Error"))
{
}
}
public class RegExp : TypeScriptObject
{
public RegExp (ObjectInstance instance) : base (instance) {}
public RegExp ()
: base (CallConstructor ("", "RegExp"))
{
}
}
public interface IResolvedFile : ITypeScriptObject
{
[TypeScriptBridge ("content")]
string Content { get; set; }
[TypeScriptBridge ("path")]
string Path { get; set; }
[TypeScriptBridge ("get_content")]
string Get_content ();
[TypeScriptBridge ("set_content")]
void Set_content (string @value);
[TypeScriptBridge ("get_path")]
string Get_path ();
[TypeScriptBridge ("set_path")]
void Set_path (string @value);
}
public class IResolvedFile_Impl : TypeScriptObject, IResolvedFile
{
public IResolvedFile_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("content")]
public string Content {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("content")); }
set { Instance.SetPropertyValue ("content", value, true); }
}
[TypeScriptBridge ("path")]
public string Path {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("path")); }
set { Instance.SetPropertyValue ("path", value, true); }
}
[TypeScriptBridge ("get_content")]
public string Get_content ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_content"));
}
[TypeScriptBridge ("set_content")]
public void Set_content (string @value)
{
Instance.CallMemberFunction ("set_content", @value);
}
[TypeScriptBridge ("get_path")]
public string Get_path ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_path"));
}
[TypeScriptBridge ("set_path")]
public void Set_path (string @value)
{
Instance.CallMemberFunction ("set_path", @value);
}
}
public interface IIO : ITypeScriptObject
{
[TypeScriptBridge ("arguments")]
ArrayInstance Arguments { get; set; }
[TypeScriptBridge ("stderr")]
TypeScriptServiceBridge.ITextWriter Stderr { get; set; }
[TypeScriptBridge ("stdout")]
TypeScriptServiceBridge.ITextWriter Stdout { get; set; }
[TypeScriptBridge ("readFile")]
string ReadFile (string @path);
[TypeScriptBridge ("writeFile")]
void WriteFile (string @path, string @contents);
[TypeScriptBridge ("createFile")]
TypeScriptServiceBridge.ITextWriter CreateFile (string @path, bool @useUTF8 = false);
[TypeScriptBridge ("deleteFile")]
void DeleteFile (string @path);
[TypeScriptBridge ("dir")]
ArrayInstance Dir (string @path, TypeScriptServiceBridge.RegExp @re = null, System.Object @options = null);
[TypeScriptBridge ("fileExists")]
bool FileExists (string @path);
[TypeScriptBridge ("directoryExists")]
bool DirectoryExists (string @path);
[TypeScriptBridge ("createDirectory")]
void CreateDirectory (string @path);
[TypeScriptBridge ("resolvePath")]
string ResolvePath (string @path);
[TypeScriptBridge ("dirName")]
string DirName (string @path);
[TypeScriptBridge ("findFile")]
TypeScriptServiceBridge.IResolvedFile FindFile (string @rootPath, string @partialFilePath);
[TypeScriptBridge ("print")]
void Print (string @str);
[TypeScriptBridge ("printLine")]
void PrintLine (string @str);
[TypeScriptBridge ("get_arguments")]
ArrayInstance Get_arguments ();
[TypeScriptBridge ("set_arguments")]
void Set_arguments (ArrayInstance @value);
[TypeScriptBridge ("get_stderr")]
TypeScriptServiceBridge.ITextWriter Get_stderr ();
[TypeScriptBridge ("set_stderr")]
void Set_stderr (TypeScriptServiceBridge.ITextWriter @value);
[TypeScriptBridge ("get_stdout")]
TypeScriptServiceBridge.ITextWriter Get_stdout ();
[TypeScriptBridge ("set_stdout")]
void Set_stdout (TypeScriptServiceBridge.ITextWriter @value);
[TypeScriptBridge ("run")]
void Run (string @source, string @filename);
[TypeScriptBridge ("getExecutingFilePath")]
string GetExecutingFilePath ();
[TypeScriptBridge ("quit")]
System.Object Quit (double @exitCode = 0);
}
public class IIO_Impl : TypeScriptObject, IIO
{
public IIO_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("arguments")]
public ArrayInstance Arguments {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("arguments")); }
set { Instance.SetPropertyValue ("arguments", value, true); }
}
[TypeScriptBridge ("stderr")]
public TypeScriptServiceBridge.ITextWriter Stderr {
get { return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.GetPropertyValue ("stderr")); }
set { Instance.SetPropertyValue ("stderr", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("stdout")]
public TypeScriptServiceBridge.ITextWriter Stdout {
get { return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.GetPropertyValue ("stdout")); }
set { Instance.SetPropertyValue ("stdout", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("readFile")]
public string ReadFile (string @path)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("readFile", @path));
}
[TypeScriptBridge ("writeFile")]
public void WriteFile (string @path, string @contents)
{
Instance.CallMemberFunction ("writeFile", @path, @contents);
}
[TypeScriptBridge ("createFile")]
public TypeScriptServiceBridge.ITextWriter CreateFile (string @path, bool @useUTF8 = false)
{
return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.CallMemberFunction ("createFile", @path, @useUTF8));
}
[TypeScriptBridge ("deleteFile")]
public void DeleteFile (string @path)
{
Instance.CallMemberFunction ("deleteFile", @path);
}
[TypeScriptBridge ("dir")]
public ArrayInstance Dir (string @path, TypeScriptServiceBridge.RegExp @re = null, System.Object @options = null)
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("dir", @path, @re != null ? @re.Instance : null, @options));
}
[TypeScriptBridge ("fileExists")]
public bool FileExists (string @path)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("fileExists", @path));
}
[TypeScriptBridge ("directoryExists")]
public bool DirectoryExists (string @path)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("directoryExists", @path));
}
[TypeScriptBridge ("createDirectory")]
public void CreateDirectory (string @path)
{
Instance.CallMemberFunction ("createDirectory", @path);
}
[TypeScriptBridge ("resolvePath")]
public string ResolvePath (string @path)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("resolvePath", @path));
}
[TypeScriptBridge ("dirName")]
public string DirName (string @path)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("dirName", @path));
}
[TypeScriptBridge ("findFile")]
public TypeScriptServiceBridge.IResolvedFile FindFile (string @rootPath, string @partialFilePath)
{
return new TypeScriptServiceBridge.IResolvedFile_Impl ((ObjectInstance) Instance.CallMemberFunction ("findFile", @rootPath, @partialFilePath));
}
[TypeScriptBridge ("print")]
public void Print (string @str)
{
Instance.CallMemberFunction ("print", @str);
}
[TypeScriptBridge ("printLine")]
public void PrintLine (string @str)
{
Instance.CallMemberFunction ("printLine", @str);
}
[TypeScriptBridge ("get_arguments")]
public ArrayInstance Get_arguments ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_arguments"));
}
[TypeScriptBridge ("set_arguments")]
public void Set_arguments (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_arguments", @value);
}
[TypeScriptBridge ("get_stderr")]
public TypeScriptServiceBridge.ITextWriter Get_stderr ()
{
return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_stderr"));
}
[TypeScriptBridge ("set_stderr")]
public void Set_stderr (TypeScriptServiceBridge.ITextWriter @value)
{
Instance.CallMemberFunction ("set_stderr", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_stdout")]
public TypeScriptServiceBridge.ITextWriter Get_stdout ()
{
return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_stdout"));
}
[TypeScriptBridge ("set_stdout")]
public void Set_stdout (TypeScriptServiceBridge.ITextWriter @value)
{
Instance.CallMemberFunction ("set_stdout", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("run")]
public void Run (string @source, string @filename)
{
Instance.CallMemberFunction ("run", @source, @filename);
}
[TypeScriptBridge ("getExecutingFilePath")]
public string GetExecutingFilePath ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("getExecutingFilePath"));
}
[TypeScriptBridge ("quit")]
public System.Object Quit (double @exitCode = 0)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("quit", @exitCode));
}
}
public interface IOptions : ITypeScriptObject
{
[TypeScriptBridge ("name")]
string Name { get; set; }
[TypeScriptBridge ("flag")]
bool Flag { get; set; }
[TypeScriptBridge ("short")]
string Short { get; set; }
[TypeScriptBridge ("usage")]
string Usage { get; set; }
[TypeScriptBridge ("type")]
string Type { get; set; }
[TypeScriptBridge ("experimental")]
bool Experimental { get; set; }
[TypeScriptBridge ("get_name")]
string Get_name ();
[TypeScriptBridge ("set_name")]
void Set_name (string @value);
[TypeScriptBridge ("get_flag")]
bool Get_flag ();
[TypeScriptBridge ("set_flag")]
void Set_flag (bool @value);
[TypeScriptBridge ("get_short")]
string Get_short ();
[TypeScriptBridge ("set_short")]
void Set_short (string @value);
[TypeScriptBridge ("get_usage")]
string Get_usage ();
[TypeScriptBridge ("set_usage")]
void Set_usage (string @value);
[TypeScriptBridge ("get_type")]
string Get_type ();
[TypeScriptBridge ("set_type")]
void Set_type (string @value);
[TypeScriptBridge ("get_experimental")]
bool Get_experimental ();
[TypeScriptBridge ("set_experimental")]
void Set_experimental (bool @value);
}
public class IOptions_Impl : TypeScriptObject, IOptions
{
public IOptions_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("name")]
public string Name {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("name")); }
set { Instance.SetPropertyValue ("name", value, true); }
}
[TypeScriptBridge ("flag")]
public bool Flag {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("flag")); }
set { Instance.SetPropertyValue ("flag", value, true); }
}
[TypeScriptBridge ("short")]
public string Short {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("short")); }
set { Instance.SetPropertyValue ("short", value, true); }
}
[TypeScriptBridge ("usage")]
public string Usage {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("usage")); }
set { Instance.SetPropertyValue ("usage", value, true); }
}
[TypeScriptBridge ("type")]
public string Type {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("type")); }
set { Instance.SetPropertyValue ("type", value, true); }
}
[TypeScriptBridge ("experimental")]
public bool Experimental {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("experimental")); }
set { Instance.SetPropertyValue ("experimental", value, true); }
}
[TypeScriptBridge ("get_name")]
public string Get_name ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_name"));
}
[TypeScriptBridge ("set_name")]
public void Set_name (string @value)
{
Instance.CallMemberFunction ("set_name", @value);
}
[TypeScriptBridge ("get_flag")]
public bool Get_flag ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_flag"));
}
[TypeScriptBridge ("set_flag")]
public void Set_flag (bool @value)
{
Instance.CallMemberFunction ("set_flag", @value);
}
[TypeScriptBridge ("get_short")]
public string Get_short ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_short"));
}
[TypeScriptBridge ("set_short")]
public void Set_short (string @value)
{
Instance.CallMemberFunction ("set_short", @value);
}
[TypeScriptBridge ("get_usage")]
public string Get_usage ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_usage"));
}
[TypeScriptBridge ("set_usage")]
public void Set_usage (string @value)
{
Instance.CallMemberFunction ("set_usage", @value);
}
[TypeScriptBridge ("get_type")]
public string Get_type ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_type"));
}
[TypeScriptBridge ("set_type")]
public void Set_type (string @value)
{
Instance.CallMemberFunction ("set_type", @value);
}
[TypeScriptBridge ("get_experimental")]
public bool Get_experimental ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_experimental"));
}
[TypeScriptBridge ("set_experimental")]
public void Set_experimental (bool @value)
{
Instance.CallMemberFunction ("set_experimental", @value);
}
}
public class OptionsParser : TypeScriptObject
{
public OptionsParser (ObjectInstance instance) : base (instance) {}
public OptionsParser (TypeScriptServiceBridge.IIO @host)
: base (CallConstructor ("", "OptionsParser", @host != null ? @host.Instance : null))
{
}
[TypeScriptBridge ("host")]
public TypeScriptServiceBridge.IIO Host {
get { return new TypeScriptServiceBridge.IIO_Impl ((ObjectInstance) Instance.GetPropertyValue ("host")); }
set { Instance.SetPropertyValue ("host", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("unnamed")]
public ArrayInstance Unnamed {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("unnamed")); }
set { Instance.SetPropertyValue ("unnamed", value, true); }
}
[TypeScriptBridge ("options")]
public ArrayInstance Options {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("options")); }
set { Instance.SetPropertyValue ("options", value, true); }
}
[TypeScriptBridge ("get_host")]
public TypeScriptServiceBridge.IIO Get_host ()
{
return new TypeScriptServiceBridge.IIO_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_host"));
}
[TypeScriptBridge ("set_host")]
public void Set_host (TypeScriptServiceBridge.IIO @value)
{
Instance.CallMemberFunction ("set_host", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("findOption")]
public TypeScriptServiceBridge.IOptions FindOption (string @arg)
{
return new TypeScriptServiceBridge.IOptions_Impl ((ObjectInstance) Instance.CallMemberFunction ("findOption", @arg));
}
[TypeScriptBridge ("get_unnamed")]
public ArrayInstance Get_unnamed ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_unnamed"));
}
[TypeScriptBridge ("set_unnamed")]
public void Set_unnamed (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_unnamed", @value);
}
[TypeScriptBridge ("get_options")]
public ArrayInstance Get_options ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_options"));
}
[TypeScriptBridge ("set_options")]
public void Set_options (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_options", @value);
}
[TypeScriptBridge ("printUsage")]
public void PrintUsage ()
{
Instance.CallMemberFunction ("printUsage");
}
[TypeScriptBridge ("option")]
public void Option (string @name, TypeScriptServiceBridge.IOptions @config, string @short = null)
{
Instance.CallMemberFunction ("option", @name, @config != null ? @config.Instance : null, @short);
}
[TypeScriptBridge ("flag")]
public void Flag (string @name, TypeScriptServiceBridge.IOptions @config, string @short = null)
{
Instance.CallMemberFunction ("flag", @name, @config != null ? @config.Instance : null, @short);
}
[TypeScriptBridge ("parseString")]
public void ParseString (string @argString)
{
Instance.CallMemberFunction ("parseString", @argString);
}
[TypeScriptBridge ("parse")]
public void Parse (ArrayInstance @args)
{
Instance.CallMemberFunction ("parse", @args);
}
}
public class CommandLineHost : TypeScriptObject
, TypeScript.IResolverHost
{
public CommandLineHost (ObjectInstance instance) : base (instance) {}
public CommandLineHost ()
: base (CallConstructor ("", "CommandLineHost"))
{
}
[TypeScriptBridge ("pathMap")]
public System.Object PathMap {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("pathMap")); }
set { Instance.SetPropertyValue ("pathMap", value, true); }
}
[TypeScriptBridge ("resolvedPaths")]
public System.Object ResolvedPaths {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("resolvedPaths")); }
set { Instance.SetPropertyValue ("resolvedPaths", value, true); }
}
[TypeScriptBridge ("get_pathMap")]
public System.Object Get_pathMap ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_pathMap"));
}
[TypeScriptBridge ("set_pathMap")]
public void Set_pathMap (System.Object @value)
{
Instance.CallMemberFunction ("set_pathMap", @value);
}
[TypeScriptBridge ("get_resolvedPaths")]
public System.Object Get_resolvedPaths ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_resolvedPaths"));
}
[TypeScriptBridge ("set_resolvedPaths")]
public void Set_resolvedPaths (System.Object @value)
{
Instance.CallMemberFunction ("set_resolvedPaths", @value);
}
[TypeScriptBridge ("isResolved")]
public bool IsResolved (string @path)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isResolved", @path));
}
[TypeScriptBridge ("resolveCompilationEnvironment")]
public TypeScriptServiceBridge.TypeScript.CompilationEnvironment ResolveCompilationEnvironment (TypeScriptServiceBridge.TypeScript.CompilationEnvironment @preEnv, TypeScriptServiceBridge.TypeScript.ICodeResolver @resolver, bool @traceDependencies)
{
return new TypeScriptServiceBridge.TypeScript.CompilationEnvironment ((ObjectInstance) Instance.CallMemberFunction ("resolveCompilationEnvironment", @preEnv != null ? @preEnv.Instance : null, @resolver != null ? @resolver.Instance : null, @traceDependencies));
}
TypeScriptServiceBridge.TypeScript.CompilationEnvironment TypeScriptServiceBridge.TypeScript.IResolverHost.ResolveCompilationEnvironment (TypeScriptServiceBridge.TypeScript.CompilationEnvironment @preEnvironment, TypeScriptServiceBridge.TypeScript.ICodeResolver @resolver, bool @traceDependencies)
{
return (TypeScriptServiceBridge.TypeScript.CompilationEnvironment) ResolveCompilationEnvironment ((TypeScriptServiceBridge.TypeScript.CompilationEnvironment) @preEnvironment, (TypeScriptServiceBridge.TypeScript.ICodeResolver) @resolver, (bool) @traceDependencies);
}
}
public class BatchCompiler : TypeScriptObject
{
public BatchCompiler (ObjectInstance instance) : base (instance) {}
public BatchCompiler (TypeScriptServiceBridge.IIO @ioHost)
: base (CallConstructor ("", "BatchCompiler", @ioHost != null ? @ioHost.Instance : null))
{
}
[TypeScriptBridge ("ioHost")]
public TypeScriptServiceBridge.IIO IoHost {
get { return new TypeScriptServiceBridge.IIO_Impl ((ObjectInstance) Instance.GetPropertyValue ("ioHost")); }
set { Instance.SetPropertyValue ("ioHost", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("compilationSettings")]
public TypeScriptServiceBridge.TypeScript.CompilationSettings CompilationSettings {
get { return new TypeScriptServiceBridge.TypeScript.CompilationSettings ((ObjectInstance) Instance.GetPropertyValue ("compilationSettings")); }
set { Instance.SetPropertyValue ("compilationSettings", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("compilationEnvironment")]
public TypeScriptServiceBridge.TypeScript.CompilationEnvironment CompilationEnvironment {
get { return new TypeScriptServiceBridge.TypeScript.CompilationEnvironment ((ObjectInstance) Instance.GetPropertyValue ("compilationEnvironment")); }
set { Instance.SetPropertyValue ("compilationEnvironment", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("commandLineHost")]
public TypeScriptServiceBridge.CommandLineHost CommandLineHost {
get { return new TypeScriptServiceBridge.CommandLineHost ((ObjectInstance) Instance.GetPropertyValue ("commandLineHost")); }
set { Instance.SetPropertyValue ("commandLineHost", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("resolvedEnvironment")]
public TypeScriptServiceBridge.TypeScript.CompilationEnvironment ResolvedEnvironment {
get { return new TypeScriptServiceBridge.TypeScript.CompilationEnvironment ((ObjectInstance) Instance.GetPropertyValue ("resolvedEnvironment")); }
set { Instance.SetPropertyValue ("resolvedEnvironment", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("get_ioHost")]
public TypeScriptServiceBridge.IIO Get_ioHost ()
{
return new TypeScriptServiceBridge.IIO_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_ioHost"));
}
[TypeScriptBridge ("set_ioHost")]
public void Set_ioHost (TypeScriptServiceBridge.IIO @value)
{
Instance.CallMemberFunction ("set_ioHost", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_compilationSettings")]
public TypeScriptServiceBridge.TypeScript.CompilationSettings Get_compilationSettings ()
{
return new TypeScriptServiceBridge.TypeScript.CompilationSettings ((ObjectInstance) Instance.CallMemberFunction ("get_compilationSettings"));
}
[TypeScriptBridge ("set_compilationSettings")]
public void Set_compilationSettings (TypeScriptServiceBridge.TypeScript.CompilationSettings @value)
{
Instance.CallMemberFunction ("set_compilationSettings", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_compilationEnvironment")]
public TypeScriptServiceBridge.TypeScript.CompilationEnvironment Get_compilationEnvironment ()
{
return new TypeScriptServiceBridge.TypeScript.CompilationEnvironment ((ObjectInstance) Instance.CallMemberFunction ("get_compilationEnvironment"));
}
[TypeScriptBridge ("set_compilationEnvironment")]
public void Set_compilationEnvironment (TypeScriptServiceBridge.TypeScript.CompilationEnvironment @value)
{
Instance.CallMemberFunction ("set_compilationEnvironment", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_commandLineHost")]
public TypeScriptServiceBridge.CommandLineHost Get_commandLineHost ()
{
return new TypeScriptServiceBridge.CommandLineHost ((ObjectInstance) Instance.CallMemberFunction ("get_commandLineHost"));
}
[TypeScriptBridge ("set_commandLineHost")]
public void Set_commandLineHost (TypeScriptServiceBridge.CommandLineHost @value)
{
Instance.CallMemberFunction ("set_commandLineHost", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_resolvedEnvironment")]
public TypeScriptServiceBridge.TypeScript.CompilationEnvironment Get_resolvedEnvironment ()
{
return new TypeScriptServiceBridge.TypeScript.CompilationEnvironment ((ObjectInstance) Instance.CallMemberFunction ("get_resolvedEnvironment"));
}
[TypeScriptBridge ("set_resolvedEnvironment")]
public void Set_resolvedEnvironment (TypeScriptServiceBridge.TypeScript.CompilationEnvironment @value)
{
Instance.CallMemberFunction ("set_resolvedEnvironment", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("resolve")]
public TypeScriptServiceBridge.TypeScript.CompilationEnvironment Resolve ()
{
return new TypeScriptServiceBridge.TypeScript.CompilationEnvironment ((ObjectInstance) Instance.CallMemberFunction ("resolve"));
}
[TypeScriptBridge ("compile")]
public void Compile ()
{
Instance.CallMemberFunction ("compile");
}
[TypeScriptBridge ("run")]
public void Run ()
{
Instance.CallMemberFunction ("run");
}
[TypeScriptBridge ("batchCompile")]
public void BatchCompile ()
{
Instance.CallMemberFunction ("batchCompile");
}
}
}
namespace TypeScriptServiceBridge.TypeScript.CompilerDiagnostics
{
public interface IDiagnosticWriter : ITypeScriptObject
{
[TypeScriptBridge ("Alert")]
void Alert (string @output);
}
public class IDiagnosticWriter_Impl : TypeScriptObject, IDiagnosticWriter
{
public IDiagnosticWriter_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("Alert")]
public void Alert (string @output)
{
Instance.CallMemberFunction ("Alert", @output);
}
}
}
namespace TypeScriptServiceBridge.TypeScript
{
public interface ILogger : ITypeScriptObject
{
[TypeScriptBridge ("information")]
bool Information ();
[TypeScriptBridge ("debug")]
bool Debug ();
[TypeScriptBridge ("warning")]
bool Warning ();
[TypeScriptBridge ("error")]
bool Error ();
[TypeScriptBridge ("fatal")]
bool Fatal ();
[TypeScriptBridge ("log")]
void Log (string @s);
}
public class ILogger_Impl : TypeScriptObject, ILogger
{
public ILogger_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("information")]
public bool Information ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("information"));
}
[TypeScriptBridge ("debug")]
public bool Debug ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("debug"));
}
[TypeScriptBridge ("warning")]
public bool Warning ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("warning"));
}
[TypeScriptBridge ("error")]
public bool Error ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("error"));
}
[TypeScriptBridge ("fatal")]
public bool Fatal ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("fatal"));
}
[TypeScriptBridge ("log")]
public void Log (string @s)
{
Instance.CallMemberFunction ("log", @s);
}
}
public class NullLogger : TypeScriptObject
, ILogger
{
public NullLogger (ObjectInstance instance) : base (instance) {}
public NullLogger ()
: base (CallConstructor ("TypeScript", "NullLogger"))
{
}
[TypeScriptBridge ("information")]
public bool Information ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("information"));
}
[TypeScriptBridge ("debug")]
public bool Debug ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("debug"));
}
[TypeScriptBridge ("warning")]
public bool Warning ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("warning"));
}
[TypeScriptBridge ("error")]
public bool Error ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("error"));
}
[TypeScriptBridge ("fatal")]
public bool Fatal ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("fatal"));
}
[TypeScriptBridge ("log")]
public void Log (string @s)
{
Instance.CallMemberFunction ("log", @s);
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Information ()
{
return (bool) Information ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Debug ()
{
return (bool) Debug ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Warning ()
{
return (bool) Warning ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Error ()
{
return (bool) Error ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Fatal ()
{
return (bool) Fatal ();
}
void TypeScriptServiceBridge.TypeScript.ILogger.Log (string @s)
{
Log ((string) @s);
}
}
public class LoggerAdapter : TypeScriptObject
, ILogger
{
public LoggerAdapter (ObjectInstance instance) : base (instance) {}
public LoggerAdapter (TypeScriptServiceBridge.TypeScript.ILogger @logger)
: base (CallConstructor ("TypeScript", "LoggerAdapter", @logger != null ? @logger.Instance : null))
{
}
[TypeScriptBridge ("logger")]
public TypeScriptServiceBridge.TypeScript.ILogger Logger {
get { return new TypeScriptServiceBridge.TypeScript.ILogger_Impl ((ObjectInstance) Instance.GetPropertyValue ("logger")); }
set { Instance.SetPropertyValue ("logger", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("get_logger")]
public TypeScriptServiceBridge.TypeScript.ILogger Get_logger ()
{
return new TypeScriptServiceBridge.TypeScript.ILogger_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_logger"));
}
[TypeScriptBridge ("set_logger")]
public void Set_logger (TypeScriptServiceBridge.TypeScript.ILogger @value)
{
Instance.CallMemberFunction ("set_logger", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("information")]
public bool Information ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("information"));
}
[TypeScriptBridge ("debug")]
public bool Debug ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("debug"));
}
[TypeScriptBridge ("warning")]
public bool Warning ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("warning"));
}
[TypeScriptBridge ("error")]
public bool Error ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("error"));
}
[TypeScriptBridge ("fatal")]
public bool Fatal ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("fatal"));
}
[TypeScriptBridge ("log")]
public void Log (string @s)
{
Instance.CallMemberFunction ("log", @s);
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Information ()
{
return (bool) Information ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Debug ()
{
return (bool) Debug ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Warning ()
{
return (bool) Warning ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Error ()
{
return (bool) Error ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Fatal ()
{
return (bool) Fatal ();
}
void TypeScriptServiceBridge.TypeScript.ILogger.Log (string @s)
{
Log ((string) @s);
}
}
public class BufferedLogger : TypeScriptObject
, ILogger
{
public BufferedLogger (ObjectInstance instance) : base (instance) {}
public BufferedLogger ()
: base (CallConstructor ("TypeScript", "BufferedLogger"))
{
}
[TypeScriptBridge ("logContents")]
public ArrayInstance LogContents {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("logContents")); }
set { Instance.SetPropertyValue ("logContents", value, true); }
}
[TypeScriptBridge ("get_logContents")]
public ArrayInstance Get_logContents ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_logContents"));
}
[TypeScriptBridge ("set_logContents")]
public void Set_logContents (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_logContents", @value);
}
[TypeScriptBridge ("information")]
public bool Information ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("information"));
}
[TypeScriptBridge ("debug")]
public bool Debug ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("debug"));
}
[TypeScriptBridge ("warning")]
public bool Warning ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("warning"));
}
[TypeScriptBridge ("error")]
public bool Error ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("error"));
}
[TypeScriptBridge ("fatal")]
public bool Fatal ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("fatal"));
}
[TypeScriptBridge ("log")]
public void Log (string @s)
{
Instance.CallMemberFunction ("log", @s);
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Information ()
{
return (bool) Information ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Debug ()
{
return (bool) Debug ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Warning ()
{
return (bool) Warning ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Error ()
{
return (bool) Error ();
}
bool TypeScriptServiceBridge.TypeScript.ILogger.Fatal ()
{
return (bool) Fatal ();
}
void TypeScriptServiceBridge.TypeScript.ILogger.Log (string @s)
{
Log ((string) @s);
}
}
public enum ErrorRecoverySet
{
None = 0,
Comma = 1,
SColon = 2,
Asg = 4,
BinOp = 8,
RBrack = 16,
RCurly = 32,
RParen = 64,
Dot = 128,
Colon = 256,
PrimType = 512,
AddOp = 1024,
LCurly = 2048,
PreOp = 4096,
RegExp = 8192,
LParen = 16384,
LBrack = 32768,
Postfix = 49280,
Scope = 65536,
In = 131072,
SCase = 262144,
Else = 524288,
Catch = 1048576,
Var = 2097152,
Stmt = 4194304,
While = 8388608,
ID = 16777216,
Prefix = 33554432,
Literal = 67108864,
RLit = 134217728,
Func = 268435456,
ExprStart = 520158210,
EOF = 536870912,
TypeScriptS = 1073741824,
StmtStart = 1608580098,
}
public enum AllowedElements
{
None = 0,
ModuleDeclarations = 4,
ClassDeclarations = 8,
InterfaceDeclarations = 16,
AmbientDeclarations = 1024,
Global = 1052,
Properties = 2048,
QuickParse = 3100,
}
public enum Modifiers
{
None = 0,
Private = 1,
Public = 2,
Readonly = 4,
Ambient = 8,
Exported = 16,
Getter = 32,
Setter = 64,
Static = 128,
}
public enum ASTFlags
{
None = 0,
ExplicitSemicolon = 1,
AutomaticSemicolon = 2,
Writeable = 4,
Error = 8,
DotLHSPartial = 16,
DotLHS = 32,
IsStatement = 64,
StrictMode = 128,
PossibleOptionalParameter = 256,
ClassBaseConstructorCall = 512,
OptionalName = 1024,
SkipNextRParen = 2048,
}
public enum DeclFlags
{
None = 0,
Exported = 1,
Private = 2,
Public = 4,
Ambient = 8,
Static = 16,
LocalStatic = 32,
GetAccessor = 64,
SetAccessor = 128,
}
public enum ModuleFlags
{
None = 0,
Exported = 1,
Private = 2,
Public = 4,
Ambient = 8,
Static = 16,
LocalStatic = 32,
GetAccessor = 64,
SetAccessor = 128,
IsEnum = 256,
ShouldEmitModuleDecl = 512,
IsWholeFile = 1024,
IsDynamic = 2048,
MustCaptureThis = 4096,
}
public enum SymbolFlags
{
None = 0,
Exported = 1,
Private = 2,
Public = 4,
Ambient = 8,
Static = 16,
LocalStatic = 32,
GetAccessor = 64,
SetAccessor = 128,
Property = 256,
Readonly = 512,
ModuleMember = 1024,
InterfaceMember = 2048,
ClassMember = 4096,
BuiltIn = 8192,
TypeSetDuringScopeAssignment = 16384,
Constant = 32768,
Optional = 65536,
RecursivelyReferenced = 131072,
Bound = 262144,
CompilerGenerated = 524288,
}
public enum VarFlags
{
None = 0,
Exported = 1,
Private = 2,
Public = 4,
Ambient = 8,
Static = 16,
LocalStatic = 32,
GetAccessor = 64,
SetAccessor = 128,
AutoInit = 256,
Property = 512,
Readonly = 1024,
Class = 2048,
ClassProperty = 4096,
ClassBodyProperty = 8192,
ClassConstructorProperty = 16384,
ClassSuperMustBeFirstCallInConstructor = 32768,
Constant = 65536,
MustCaptureThis = 131072,
}
public enum FncFlags
{
None = 0,
Exported = 1,
Private = 2,
Public = 4,
Ambient = 8,
Static = 16,
LocalStatic = 32,
GetAccessor = 64,
SetAccessor = 128,
Definition = 256,
Signature = 512,
Method = 1024,
HasReturnExpression = 2048,
CallMember = 4096,
ConstructMember = 8192,
HasSelfReference = 16384,
IsFatArrowFunction = 32768,
IndexerMember = 65536,
IsFunctionExpression = 131072,
ClassMethod = 262144,
ClassPropertyMethodExported = 524288,
}
public enum SignatureFlags
{
None = 0,
IsIndexer = 1,
IsStringIndexer = 2,
IsNumberIndexer = 4,
}
public enum TypeFlags
{
None = 0,
HasImplementation = 1,
HasSelfReference = 2,
MergeResult = 4,
IsEnum = 8,
BuildingName = 16,
HasBaseType = 32,
HasBaseTypeOfObject = 64,
IsClass = 128,
}
public enum TypeRelationshipFlags
{
SuccessfulComparison = 0,
SourceIsNullTargetIsVoidOrUndefined = 1,
RequiredPropertyIsMissing = 2,
SourceSignatureHasTooManyParameters = 3,
IncompatibleSignatures = 4,
IncompatibleReturnTypes = 16,
IncompatiblePropertyTypes = 32,
IncompatibleParameterTypes = 64,
}
public enum CodeGenTarget
{
ES3 = 0,
ES5 = 1,
}
public enum ModuleGenTarget
{
Synchronous = 0,
Asynchronous = 1,
Local = 2,
}
public enum NodeType
{
None = 0,
Empty = 1,
EmptyExpr = 2,
True = 3,
False = 4,
This = 5,
Super = 6,
QString = 7,
Regex = 8,
Null = 9,
ArrayLit = 10,
ObjectLit = 11,
Void = 12,
Comma = 13,
Pos = 14,
Neg = 15,
Delete = 16,
Await = 17,
In = 18,
Dot = 19,
From = 20,
Is = 21,
InstOf = 22,
Typeof = 23,
NumberLit = 24,
Name = 25,
TypeRef = 26,
Index = 27,
Call = 28,
New = 29,
Asg = 30,
AsgAdd = 31,
AsgSub = 32,
AsgDiv = 33,
AsgMul = 34,
AsgMod = 35,
AsgAnd = 36,
AsgXor = 37,
AsgOr = 38,
AsgLsh = 39,
AsgRsh = 40,
LastAsg = 41,
AsgRs2 = 41,
ConditionalExpression = 42,
LogOr = 43,
LogAnd = 44,
Or = 45,
Xor = 46,
And = 47,
Eq = 48,
Ne = 49,
Eqv = 50,
NEqv = 51,
Lt = 52,
Le = 53,
Gt = 54,
Ge = 55,
Add = 56,
Sub = 57,
Mul = 58,
Div = 59,
Mod = 60,
Lsh = 61,
Rsh = 62,
Rs2 = 63,
Not = 64,
LogNot = 65,
IncPre = 66,
DecPre = 67,
IncPost = 68,
DecPost = 69,
TypeAssertion = 70,
FuncDecl = 71,
GeneralNode = 71,
Member = 72,
VarDecl = 73,
ArgDecl = 74,
Return = 75,
Break = 76,
Continue = 77,
Throw = 78,
For = 79,
ForIn = 80,
If = 81,
While = 82,
DoWhile = 83,
Block = 84,
Case = 85,
Switch = 86,
Try = 87,
TryCatch = 88,
TryFinally = 89,
Finally = 90,
Catch = 91,
List = 92,
Script = 93,
ClassDeclaration = 94,
InterfaceDeclaration = 95,
ModuleDeclaration = 96,
ImportDeclaration = 97,
With = 98,
Label = 99,
LabeledStatement = 100,
EBStart = 101,
GotoEB = 102,
EndCode = 103,
Error = 104,
Comment = 105,
Debugger = 106,
}
public class BlockIntrinsics : TypeScriptObject
{
public BlockIntrinsics (ObjectInstance instance) : base (instance) {}
public BlockIntrinsics ()
: base (CallConstructor ("TypeScript", "BlockIntrinsics"))
{
}
[TypeScriptBridge ("prototype")]
public System.Object Prototype {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("prototype")); }
set { Instance.SetPropertyValue ("prototype", value, true); }
}
[TypeScriptBridge ("toString")]
public System.Object ToString {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("toString")); }
set { Instance.SetPropertyValue ("toString", value, true); }
}
[TypeScriptBridge ("toLocaleString")]
public System.Object ToLocaleString {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("toLocaleString")); }
set { Instance.SetPropertyValue ("toLocaleString", value, true); }
}
[TypeScriptBridge ("valueOf")]
public System.Object ValueOf {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("valueOf")); }
set { Instance.SetPropertyValue ("valueOf", value, true); }
}
[TypeScriptBridge ("hasOwnProperty")]
public System.Object HasOwnProperty {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("hasOwnProperty")); }
set { Instance.SetPropertyValue ("hasOwnProperty", value, true); }
}
[TypeScriptBridge ("propertyIsEnumerable")]
public System.Object PropertyIsEnumerable {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("propertyIsEnumerable")); }
set { Instance.SetPropertyValue ("propertyIsEnumerable", value, true); }
}
[TypeScriptBridge ("isPrototypeOf")]
public System.Object IsPrototypeOf {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("isPrototypeOf")); }
set { Instance.SetPropertyValue ("isPrototypeOf", value, true); }
}
[TypeScriptBridge ("get_prototype")]
public System.Object Get_prototype ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_prototype"));
}
[TypeScriptBridge ("set_prototype")]
public void Set_prototype (System.Object @value)
{
Instance.CallMemberFunction ("set_prototype", @value);
}
[TypeScriptBridge ("get_toString")]
public System.Object Get_toString ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_toString"));
}
[TypeScriptBridge ("set_toString")]
public void Set_toString (System.Object @value)
{
Instance.CallMemberFunction ("set_toString", @value);
}
[TypeScriptBridge ("get_toLocaleString")]
public System.Object Get_toLocaleString ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_toLocaleString"));
}
[TypeScriptBridge ("set_toLocaleString")]
public void Set_toLocaleString (System.Object @value)
{
Instance.CallMemberFunction ("set_toLocaleString", @value);
}
[TypeScriptBridge ("get_valueOf")]
public System.Object Get_valueOf ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_valueOf"));
}
[TypeScriptBridge ("set_valueOf")]
public void Set_valueOf (System.Object @value)
{
Instance.CallMemberFunction ("set_valueOf", @value);
}
[TypeScriptBridge ("get_hasOwnProperty")]
public System.Object Get_hasOwnProperty ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_hasOwnProperty"));
}
[TypeScriptBridge ("set_hasOwnProperty")]
public void Set_hasOwnProperty (System.Object @value)
{
Instance.CallMemberFunction ("set_hasOwnProperty", @value);
}
[TypeScriptBridge ("get_propertyIsEnumerable")]
public System.Object Get_propertyIsEnumerable ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_propertyIsEnumerable"));
}
[TypeScriptBridge ("set_propertyIsEnumerable")]
public void Set_propertyIsEnumerable (System.Object @value)
{
Instance.CallMemberFunction ("set_propertyIsEnumerable", @value);
}
[TypeScriptBridge ("get_isPrototypeOf")]
public System.Object Get_isPrototypeOf ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_isPrototypeOf"));
}
[TypeScriptBridge ("set_isPrototypeOf")]
public void Set_isPrototypeOf (System.Object @value)
{
Instance.CallMemberFunction ("set_isPrototypeOf", @value);
}
}
public interface IHashTable : ITypeScriptObject
{
[TypeScriptBridge ("getAllKeys")]
ArrayInstance GetAllKeys ();
[TypeScriptBridge ("add")]
bool Add (string @key, System.Object @data);
[TypeScriptBridge ("addOrUpdate")]
bool AddOrUpdate (string @key, System.Object @data);
[TypeScriptBridge ("count")]
double Count ();
[TypeScriptBridge ("lookup")]
System.Object Lookup (string @key);
}
public class IHashTable_Impl : TypeScriptObject, IHashTable
{
public IHashTable_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("getAllKeys")]
public ArrayInstance GetAllKeys ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("getAllKeys"));
}
[TypeScriptBridge ("add")]
public bool Add (string @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("add", @key, @data));
}
[TypeScriptBridge ("addOrUpdate")]
public bool AddOrUpdate (string @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("addOrUpdate", @key, @data));
}
[TypeScriptBridge ("count")]
public double Count ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("count"));
}
[TypeScriptBridge ("lookup")]
public System.Object Lookup (string @key)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("lookup", @key));
}
}
public class StringHashTable : TypeScriptObject
, IHashTable
{
public StringHashTable (ObjectInstance instance) : base (instance) {}
public StringHashTable ()
: base (CallConstructor ("TypeScript", "StringHashTable"))
{
}
[TypeScriptBridge ("itemCount")]
public double ItemCount {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("itemCount")); }
set { Instance.SetPropertyValue ("itemCount", value, true); }
}
[TypeScriptBridge ("table")]
public System.Object Table {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("table")); }
set { Instance.SetPropertyValue ("table", value, true); }
}
[TypeScriptBridge ("get_itemCount")]
public double Get_itemCount ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_itemCount"));
}
[TypeScriptBridge ("set_itemCount")]
public void Set_itemCount (double @value)
{
Instance.CallMemberFunction ("set_itemCount", @value);
}
[TypeScriptBridge ("get_table")]
public System.Object Get_table ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_table"));
}
[TypeScriptBridge ("set_table")]
public void Set_table (System.Object @value)
{
Instance.CallMemberFunction ("set_table", @value);
}
[TypeScriptBridge ("getAllKeys")]
public ArrayInstance GetAllKeys ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("getAllKeys"));
}
[TypeScriptBridge ("add")]
public bool Add (string @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("add", @key, @data));
}
[TypeScriptBridge ("addOrUpdate")]
public bool AddOrUpdate (string @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("addOrUpdate", @key, @data));
}
[TypeScriptBridge ("count")]
public double Count ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("count"));
}
[TypeScriptBridge ("lookup")]
public System.Object Lookup (string @key)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("lookup", @key));
}
ArrayInstance TypeScriptServiceBridge.TypeScript.IHashTable.GetAllKeys ()
{
return (ArrayInstance) GetAllKeys ();
}
bool TypeScriptServiceBridge.TypeScript.IHashTable.Add (string @key, System.Object @data)
{
return (bool) Add ((string) @key, (System.Object) @data);
}
bool TypeScriptServiceBridge.TypeScript.IHashTable.AddOrUpdate (string @key, System.Object @data)
{
return (bool) AddOrUpdate ((string) @key, (System.Object) @data);
}
double TypeScriptServiceBridge.TypeScript.IHashTable.Count ()
{
return (double) Count ();
}
System.Object TypeScriptServiceBridge.TypeScript.IHashTable.Lookup (string @key)
{
return (System.Object) Lookup ((string) @key);
}
}
public class DualStringHashTable : TypeScriptObject
, IHashTable
{
public DualStringHashTable (ObjectInstance instance) : base (instance) {}
public DualStringHashTable (TypeScriptServiceBridge.TypeScript.IHashTable @primaryTable, TypeScriptServiceBridge.TypeScript.IHashTable @secondaryTable)
: base (CallConstructor ("TypeScript", "DualStringHashTable", @primaryTable != null ? @primaryTable.Instance : null, @secondaryTable != null ? @secondaryTable.Instance : null))
{
}
[TypeScriptBridge ("primaryTable")]
public TypeScriptServiceBridge.TypeScript.IHashTable PrimaryTable {
get { return new TypeScriptServiceBridge.TypeScript.IHashTable_Impl ((ObjectInstance) Instance.GetPropertyValue ("primaryTable")); }
set { Instance.SetPropertyValue ("primaryTable", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("secondaryTable")]
public TypeScriptServiceBridge.TypeScript.IHashTable SecondaryTable {
get { return new TypeScriptServiceBridge.TypeScript.IHashTable_Impl ((ObjectInstance) Instance.GetPropertyValue ("secondaryTable")); }
set { Instance.SetPropertyValue ("secondaryTable", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("insertPrimary")]
public bool InsertPrimary {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("insertPrimary")); }
set { Instance.SetPropertyValue ("insertPrimary", value, true); }
}
[TypeScriptBridge ("get_primaryTable")]
public TypeScriptServiceBridge.TypeScript.IHashTable Get_primaryTable ()
{
return new TypeScriptServiceBridge.TypeScript.IHashTable_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_primaryTable"));
}
[TypeScriptBridge ("set_primaryTable")]
public void Set_primaryTable (TypeScriptServiceBridge.TypeScript.IHashTable @value)
{
Instance.CallMemberFunction ("set_primaryTable", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_secondaryTable")]
public TypeScriptServiceBridge.TypeScript.IHashTable Get_secondaryTable ()
{
return new TypeScriptServiceBridge.TypeScript.IHashTable_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_secondaryTable"));
}
[TypeScriptBridge ("set_secondaryTable")]
public void Set_secondaryTable (TypeScriptServiceBridge.TypeScript.IHashTable @value)
{
Instance.CallMemberFunction ("set_secondaryTable", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_insertPrimary")]
public bool Get_insertPrimary ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_insertPrimary"));
}
[TypeScriptBridge ("set_insertPrimary")]
public void Set_insertPrimary (bool @value)
{
Instance.CallMemberFunction ("set_insertPrimary", @value);
}
[TypeScriptBridge ("getAllKeys")]
public ArrayInstance GetAllKeys ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("getAllKeys"));
}
[TypeScriptBridge ("add")]
public bool Add (string @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("add", @key, @data));
}
[TypeScriptBridge ("addOrUpdate")]
public bool AddOrUpdate (string @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("addOrUpdate", @key, @data));
}
[TypeScriptBridge ("count")]
public double Count ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("count"));
}
[TypeScriptBridge ("lookup")]
public System.Object Lookup (string @key)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("lookup", @key));
}
ArrayInstance TypeScriptServiceBridge.TypeScript.IHashTable.GetAllKeys ()
{
return (ArrayInstance) GetAllKeys ();
}
bool TypeScriptServiceBridge.TypeScript.IHashTable.Add (string @key, System.Object @data)
{
return (bool) Add ((string) @key, (System.Object) @data);
}
bool TypeScriptServiceBridge.TypeScript.IHashTable.AddOrUpdate (string @key, System.Object @data)
{
return (bool) AddOrUpdate ((string) @key, (System.Object) @data);
}
double TypeScriptServiceBridge.TypeScript.IHashTable.Count ()
{
return (double) Count ();
}
System.Object TypeScriptServiceBridge.TypeScript.IHashTable.Lookup (string @key)
{
return (System.Object) Lookup ((string) @key);
}
}
public class HashEntry : TypeScriptObject
{
public HashEntry (ObjectInstance instance) : base (instance) {}
public HashEntry (System.Object @key, System.Object @data)
: base (CallConstructor ("TypeScript", "HashEntry", @key, @data))
{
}
[TypeScriptBridge ("key")]
public System.Object Key {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("key")); }
set { Instance.SetPropertyValue ("key", value, true); }
}
[TypeScriptBridge ("data")]
public System.Object Data {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("data")); }
set { Instance.SetPropertyValue ("data", value, true); }
}
[TypeScriptBridge ("next")]
public TypeScriptServiceBridge.TypeScript.HashEntry Next {
get { return new TypeScriptServiceBridge.TypeScript.HashEntry ((ObjectInstance) Instance.GetPropertyValue ("next")); }
set { Instance.SetPropertyValue ("next", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("get_key")]
public System.Object Get_key ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_key"));
}
[TypeScriptBridge ("set_key")]
public void Set_key (System.Object @value)
{
Instance.CallMemberFunction ("set_key", @value);
}
[TypeScriptBridge ("get_data")]
public System.Object Get_data ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_data"));
}
[TypeScriptBridge ("set_data")]
public void Set_data (System.Object @value)
{
Instance.CallMemberFunction ("set_data", @value);
}
[TypeScriptBridge ("get_next")]
public TypeScriptServiceBridge.TypeScript.HashEntry Get_next ()
{
return new TypeScriptServiceBridge.TypeScript.HashEntry ((ObjectInstance) Instance.CallMemberFunction ("get_next"));
}
[TypeScriptBridge ("set_next")]
public void Set_next (TypeScriptServiceBridge.TypeScript.HashEntry @value)
{
Instance.CallMemberFunction ("set_next", @value != null ? @value.Instance : null);
}
}
public class HashTable : TypeScriptObject
{
public HashTable (ObjectInstance instance) : base (instance) {}
public HashTable (double @size, object @hashFn, object @equalsFn)
: base (CallConstructor ("TypeScript", "HashTable", @size, @hashFn, @equalsFn))
{
}
[TypeScriptBridge ("size")]
public double Size {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("size")); }
set { Instance.SetPropertyValue ("size", value, true); }
}
[TypeScriptBridge ("itemCount")]
public double ItemCount {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("itemCount")); }
set { Instance.SetPropertyValue ("itemCount", value, true); }
}
[TypeScriptBridge ("table")]
public ArrayInstance Table {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("table")); }
set { Instance.SetPropertyValue ("table", value, true); }
}
[TypeScriptBridge ("get_size")]
public double Get_size ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_size"));
}
[TypeScriptBridge ("set_size")]
public void Set_size (double @value)
{
Instance.CallMemberFunction ("set_size", @value);
}
[TypeScriptBridge ("get_itemCount")]
public double Get_itemCount ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_itemCount"));
}
[TypeScriptBridge ("set_itemCount")]
public void Set_itemCount (double @value)
{
Instance.CallMemberFunction ("set_itemCount", @value);
}
[TypeScriptBridge ("get_table")]
public ArrayInstance Get_table ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_table"));
}
[TypeScriptBridge ("set_table")]
public void Set_table (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_table", @value);
}
[TypeScriptBridge ("add")]
public bool Add (System.Object @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("add", @key, @data));
}
[TypeScriptBridge ("remove")]
public System.Object Remove (System.Object @key)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("remove", @key));
}
[TypeScriptBridge ("count")]
public double Count ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("count"));
}
[TypeScriptBridge ("lookup")]
public System.Object Lookup (System.Object @key)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("lookup", @key));
}
}
public class SimpleHashTable : TypeScriptObject
{
public SimpleHashTable (ObjectInstance instance) : base (instance) {}
public SimpleHashTable ()
: base (CallConstructor ("TypeScript", "SimpleHashTable"))
{
}
[TypeScriptBridge ("lookup")]
public System.Object Lookup (System.Object @key, bool @findValue = false)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("lookup", @key, @findValue));
}
[TypeScriptBridge ("add")]
public bool Add (System.Object @key, System.Object @data)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("add", @key, @data));
}
}
public interface IAstWalker : ITypeScriptObject
{
[TypeScriptBridge ("options")]
TypeScriptServiceBridge.TypeScript.AstWalkOptions Options { get; set; }
[TypeScriptBridge ("state")]
System.Object State { get; set; }
[TypeScriptBridge ("walk")]
TypeScriptServiceBridge.TypeScript.AST Walk (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.AST @parent);
[TypeScriptBridge ("get_options")]
TypeScriptServiceBridge.TypeScript.AstWalkOptions Get_options ();
[TypeScriptBridge ("set_options")]
void Set_options (TypeScriptServiceBridge.TypeScript.AstWalkOptions @value);
[TypeScriptBridge ("get_state")]
System.Object Get_state ();
[TypeScriptBridge ("set_state")]
void Set_state (System.Object @value);
}
public class IAstWalker_Impl : TypeScriptObject, IAstWalker
{
public IAstWalker_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("options")]
public TypeScriptServiceBridge.TypeScript.AstWalkOptions Options {
get { return new TypeScriptServiceBridge.TypeScript.AstWalkOptions ((ObjectInstance) Instance.GetPropertyValue ("options")); }
set { Instance.SetPropertyValue ("options", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("state")]
public System.Object State {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("state")); }
set { Instance.SetPropertyValue ("state", value, true); }
}
[TypeScriptBridge ("walk")]
public TypeScriptServiceBridge.TypeScript.AST Walk (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.AST @parent)
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("walk", @ast != null ? @ast.Instance : null, @parent != null ? @parent.Instance : null));
}
[TypeScriptBridge ("get_options")]
public TypeScriptServiceBridge.TypeScript.AstWalkOptions Get_options ()
{
return new TypeScriptServiceBridge.TypeScript.AstWalkOptions ((ObjectInstance) Instance.CallMemberFunction ("get_options"));
}
[TypeScriptBridge ("set_options")]
public void Set_options (TypeScriptServiceBridge.TypeScript.AstWalkOptions @value)
{
Instance.CallMemberFunction ("set_options", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_state")]
public System.Object Get_state ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_state"));
}
[TypeScriptBridge ("set_state")]
public void Set_state (System.Object @value)
{
Instance.CallMemberFunction ("set_state", @value);
}
}
public class AstWalkOptions : TypeScriptObject
{
public AstWalkOptions (ObjectInstance instance) : base (instance) {}
public AstWalkOptions ()
: base (CallConstructor ("TypeScript", "AstWalkOptions"))
{
}
[TypeScriptBridge ("goChildren")]
public bool GoChildren {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("goChildren")); }
set { Instance.SetPropertyValue ("goChildren", value, true); }
}
[TypeScriptBridge ("goNextSibling")]
public bool GoNextSibling {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("goNextSibling")); }
set { Instance.SetPropertyValue ("goNextSibling", value, true); }
}
[TypeScriptBridge ("reverseSiblings")]
public bool ReverseSiblings {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("reverseSiblings")); }
set { Instance.SetPropertyValue ("reverseSiblings", value, true); }
}
[TypeScriptBridge ("get_goChildren")]
public bool Get_goChildren ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_goChildren"));
}
[TypeScriptBridge ("set_goChildren")]
public void Set_goChildren (bool @value)
{
Instance.CallMemberFunction ("set_goChildren", @value);
}
[TypeScriptBridge ("get_goNextSibling")]
public bool Get_goNextSibling ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_goNextSibling"));
}
[TypeScriptBridge ("set_goNextSibling")]
public void Set_goNextSibling (bool @value)
{
Instance.CallMemberFunction ("set_goNextSibling", @value);
}
[TypeScriptBridge ("get_reverseSiblings")]
public bool Get_reverseSiblings ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_reverseSiblings"));
}
[TypeScriptBridge ("set_reverseSiblings")]
public void Set_reverseSiblings (bool @value)
{
Instance.CallMemberFunction ("set_reverseSiblings", @value);
}
[TypeScriptBridge ("stopWalk")]
public void StopWalk (bool @stop = true)
{
Instance.CallMemberFunction ("stopWalk", @stop);
}
}
public interface IAstWalkCallback : ITypeScriptObject
{
[TypeScriptBridge ("_call")]
TypeScriptServiceBridge.TypeScript.AST _call (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.AST @parent, TypeScriptServiceBridge.TypeScript.IAstWalker @walker);
}
public class IAstWalkCallback_Impl : TypeScriptObject, IAstWalkCallback
{
public IAstWalkCallback_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("_call")]
public TypeScriptServiceBridge.TypeScript.AST _call (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.AST @parent, TypeScriptServiceBridge.TypeScript.IAstWalker @walker)
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("_call", @ast != null ? @ast.Instance : null, @parent != null ? @parent.Instance : null, @walker != null ? @walker.Instance : null));
}
}
public interface IAstWalkChildren : ITypeScriptObject
{
[TypeScriptBridge ("_call")]
void _call (TypeScriptServiceBridge.TypeScript.AST @preAst, TypeScriptServiceBridge.TypeScript.AST @parent, TypeScriptServiceBridge.TypeScript.IAstWalker @walker);
}
public class IAstWalkChildren_Impl : TypeScriptObject, IAstWalkChildren
{
public IAstWalkChildren_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("_call")]
public void _call (TypeScriptServiceBridge.TypeScript.AST @preAst, TypeScriptServiceBridge.TypeScript.AST @parent, TypeScriptServiceBridge.TypeScript.IAstWalker @walker)
{
Instance.CallMemberFunction ("_call", @preAst != null ? @preAst.Instance : null, @parent != null ? @parent.Instance : null, @walker != null ? @walker.Instance : null);
}
}
public class AstWalker : TypeScriptObject
, IAstWalker
{
public AstWalker (ObjectInstance instance) : base (instance) {}
public AstWalker (ArrayInstance @childrenWalkers, TypeScriptServiceBridge.TypeScript.IAstWalkCallback @pre, TypeScriptServiceBridge.TypeScript.IAstWalkCallback @post, TypeScriptServiceBridge.TypeScript.AstWalkOptions @options, System.Object @state)
: base (CallConstructor ("TypeScript", "AstWalker", @childrenWalkers, @pre != null ? @pre.Instance : null, @post != null ? @post.Instance : null, @options != null ? @options.Instance : null, @state))
{
}
[TypeScriptBridge ("childrenWalkers")]
public ArrayInstance ChildrenWalkers {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("childrenWalkers")); }
set { Instance.SetPropertyValue ("childrenWalkers", value, true); }
}
[TypeScriptBridge ("pre")]
public TypeScriptServiceBridge.TypeScript.IAstWalkCallback Pre {
get { return new TypeScriptServiceBridge.TypeScript.IAstWalkCallback_Impl ((ObjectInstance) Instance.GetPropertyValue ("pre")); }
set { Instance.SetPropertyValue ("pre", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("post")]
public TypeScriptServiceBridge.TypeScript.IAstWalkCallback Post {
get { return new TypeScriptServiceBridge.TypeScript.IAstWalkCallback_Impl ((ObjectInstance) Instance.GetPropertyValue ("post")); }
set { Instance.SetPropertyValue ("post", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("options")]
public TypeScriptServiceBridge.TypeScript.AstWalkOptions Options {
get { return new TypeScriptServiceBridge.TypeScript.AstWalkOptions ((ObjectInstance) Instance.GetPropertyValue ("options")); }
set { Instance.SetPropertyValue ("options", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("state")]
public System.Object State {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("state")); }
set { Instance.SetPropertyValue ("state", value, true); }
}
[TypeScriptBridge ("get_childrenWalkers")]
public ArrayInstance Get_childrenWalkers ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_childrenWalkers"));
}
[TypeScriptBridge ("set_childrenWalkers")]
public void Set_childrenWalkers (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_childrenWalkers", @value);
}
[TypeScriptBridge ("get_pre")]
public TypeScriptServiceBridge.TypeScript.IAstWalkCallback Get_pre ()
{
return new TypeScriptServiceBridge.TypeScript.IAstWalkCallback_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_pre"));
}
[TypeScriptBridge ("set_pre")]
public void Set_pre (TypeScriptServiceBridge.TypeScript.IAstWalkCallback @value)
{
Instance.CallMemberFunction ("set_pre", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_post")]
public TypeScriptServiceBridge.TypeScript.IAstWalkCallback Get_post ()
{
return new TypeScriptServiceBridge.TypeScript.IAstWalkCallback_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_post"));
}
[TypeScriptBridge ("set_post")]
public void Set_post (TypeScriptServiceBridge.TypeScript.IAstWalkCallback @value)
{
Instance.CallMemberFunction ("set_post", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_options")]
public TypeScriptServiceBridge.TypeScript.AstWalkOptions Get_options ()
{
return new TypeScriptServiceBridge.TypeScript.AstWalkOptions ((ObjectInstance) Instance.CallMemberFunction ("get_options"));
}
[TypeScriptBridge ("set_options")]
public void Set_options (TypeScriptServiceBridge.TypeScript.AstWalkOptions @value)
{
Instance.CallMemberFunction ("set_options", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_state")]
public System.Object Get_state ()
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_state"));
}
[TypeScriptBridge ("set_state")]
public void Set_state (System.Object @value)
{
Instance.CallMemberFunction ("set_state", @value);
}
[TypeScriptBridge ("walk")]
public TypeScriptServiceBridge.TypeScript.AST Walk (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.AST @parent)
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("walk", @ast != null ? @ast.Instance : null, @parent != null ? @parent.Instance : null));
}
TypeScriptServiceBridge.TypeScript.AstWalkOptions TypeScriptServiceBridge.TypeScript.IAstWalker.Options {
get { return (TypeScriptServiceBridge.TypeScript.AstWalkOptions) Options; }
set { Options = (TypeScriptServiceBridge.TypeScript.AstWalkOptions) value; }
}
System.Object TypeScriptServiceBridge.TypeScript.IAstWalker.State {
get { return (System.Object) State; }
set { State = (System.Object) value; }
}
TypeScriptServiceBridge.TypeScript.AST TypeScriptServiceBridge.TypeScript.IAstWalker.Walk (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.AST @parent)
{
return (TypeScriptServiceBridge.TypeScript.AST) Walk ((TypeScriptServiceBridge.TypeScript.AST) @ast, (TypeScriptServiceBridge.TypeScript.AST) @parent);
}
TypeScriptServiceBridge.TypeScript.AstWalkOptions TypeScriptServiceBridge.TypeScript.IAstWalker.Get_options ()
{
return (TypeScriptServiceBridge.TypeScript.AstWalkOptions) Get_options ();
}
void TypeScriptServiceBridge.TypeScript.IAstWalker.Set_options (TypeScriptServiceBridge.TypeScript.AstWalkOptions @value)
{
Set_options ((TypeScriptServiceBridge.TypeScript.AstWalkOptions) @value);
}
System.Object TypeScriptServiceBridge.TypeScript.IAstWalker.Get_state ()
{
return (System.Object) Get_state ();
}
void TypeScriptServiceBridge.TypeScript.IAstWalker.Set_state (System.Object @value)
{
Set_state ((System.Object) @value);
}
}
public class AstWalkerFactory : TypeScriptObject
{
public AstWalkerFactory (ObjectInstance instance) : base (instance) {}
public AstWalkerFactory ()
: base (CallConstructor ("TypeScript", "AstWalkerFactory"))
{
}
[TypeScriptBridge ("walk")]
public TypeScriptServiceBridge.TypeScript.AST Walk (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.IAstWalkCallback @pre, TypeScriptServiceBridge.TypeScript.IAstWalkCallback @post = null, TypeScriptServiceBridge.TypeScript.AstWalkOptions @options = null, System.Object @state = null)
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("walk", @ast != null ? @ast.Instance : null, @pre != null ? @pre.Instance : null, @post != null ? @post.Instance : null, @options != null ? @options.Instance : null, @state));
}
[TypeScriptBridge ("getWalker")]
public TypeScriptServiceBridge.TypeScript.IAstWalker GetWalker (TypeScriptServiceBridge.TypeScript.IAstWalkCallback @pre, TypeScriptServiceBridge.TypeScript.IAstWalkCallback @post = null, TypeScriptServiceBridge.TypeScript.AstWalkOptions @options = null, System.Object @state = null)
{
return new TypeScriptServiceBridge.TypeScript.IAstWalker_Impl ((ObjectInstance) Instance.CallMemberFunction ("getWalker", @pre != null ? @pre.Instance : null, @post != null ? @post.Instance : null, @options != null ? @options.Instance : null, @state));
}
[TypeScriptBridge ("getSlowWalker")]
public TypeScriptServiceBridge.TypeScript.IAstWalker GetSlowWalker (TypeScriptServiceBridge.TypeScript.IAstWalkCallback @pre, TypeScriptServiceBridge.TypeScript.IAstWalkCallback @post = null, TypeScriptServiceBridge.TypeScript.AstWalkOptions @options = null, System.Object @state = null)
{
return new TypeScriptServiceBridge.TypeScript.IAstWalker_Impl ((ObjectInstance) Instance.CallMemberFunction ("getSlowWalker", @pre != null ? @pre.Instance : null, @post != null ? @post.Instance : null, @options != null ? @options.Instance : null, @state));
}
[TypeScriptBridge ("initChildrenWalkers")]
public void InitChildrenWalkers ()
{
Instance.CallMemberFunction ("initChildrenWalkers");
}
}
public class AstPath : TypeScriptObject
{
public AstPath (ObjectInstance instance) : base (instance) {}
public AstPath ()
: base (CallConstructor ("TypeScript", "AstPath"))
{
}
[TypeScriptBridge ("asts")]
public ArrayInstance Asts {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("asts")); }
set { Instance.SetPropertyValue ("asts", value, true); }
}
[TypeScriptBridge ("top")]
public double Top {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("top")); }
set { Instance.SetPropertyValue ("top", value, true); }
}
[TypeScriptBridge ("get_asts")]
public ArrayInstance Get_asts ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_asts"));
}
[TypeScriptBridge ("set_asts")]
public void Set_asts (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_asts", @value);
}
[TypeScriptBridge ("get_top")]
public double Get_top ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_top"));
}
[TypeScriptBridge ("set_top")]
public void Set_top (double @value)
{
Instance.CallMemberFunction ("set_top", @value);
}
[TypeScriptBridge ("reverseIndexOf")]
public System.Object ReverseIndexOf (ArrayInstance @items, double @index)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("reverseIndexOf", @items, @index));
}
[TypeScriptBridge ("clone")]
public TypeScriptServiceBridge.TypeScript.AstPath Clone ()
{
return new TypeScriptServiceBridge.TypeScript.AstPath ((ObjectInstance) Instance.CallMemberFunction ("clone"));
}
[TypeScriptBridge ("pop")]
public TypeScriptServiceBridge.TypeScript.AST Pop ()
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("pop"));
}
[TypeScriptBridge ("push")]
public void Push (TypeScriptServiceBridge.TypeScript.AST @ast)
{
Instance.CallMemberFunction ("push", @ast != null ? @ast.Instance : null);
}
[TypeScriptBridge ("up")]
public void Up ()
{
Instance.CallMemberFunction ("up");
}
[TypeScriptBridge ("down")]
public void Down ()
{
Instance.CallMemberFunction ("down");
}
[TypeScriptBridge ("nodeType")]
public TypeScriptServiceBridge.TypeScript.NodeType NodeType ()
{
return TypeConverter.ConvertTo<TypeScriptServiceBridge.TypeScript.NodeType> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("nodeType"));
}
[TypeScriptBridge ("ast")]
public TypeScriptServiceBridge.TypeScript.AST Ast ()
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("ast"));
}
[TypeScriptBridge ("parent")]
public TypeScriptServiceBridge.TypeScript.AST Parent ()
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("parent"));
}
[TypeScriptBridge ("count")]
public double Count ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("count"));
}
[TypeScriptBridge ("get")]
public TypeScriptServiceBridge.TypeScript.AST Get (double @index)
{
return new TypeScriptServiceBridge.TypeScript.AST ((ObjectInstance) Instance.CallMemberFunction ("get", @index));
}
[TypeScriptBridge ("isNameOfClass")]
public bool IsNameOfClass ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isNameOfClass"));
}
[TypeScriptBridge ("isNameOfInterface")]
public bool IsNameOfInterface ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isNameOfInterface"));
}
[TypeScriptBridge ("isNameOfArgument")]
public bool IsNameOfArgument ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isNameOfArgument"));
}
[TypeScriptBridge ("isNameOfVariable")]
public bool IsNameOfVariable ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isNameOfVariable"));
}
[TypeScriptBridge ("isNameOfModule")]
public bool IsNameOfModule ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isNameOfModule"));
}
[TypeScriptBridge ("isNameOfFunction")]
public bool IsNameOfFunction ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isNameOfFunction"));
}
[TypeScriptBridge ("isChildOfScript")]
public bool IsChildOfScript ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isChildOfScript"));
}
[TypeScriptBridge ("isChildOfModule")]
public bool IsChildOfModule ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isChildOfModule"));
}
[TypeScriptBridge ("isChildOfClass")]
public bool IsChildOfClass ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isChildOfClass"));
}
[TypeScriptBridge ("isArgumentOfClassConstructor")]
public bool IsArgumentOfClassConstructor ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isArgumentOfClassConstructor"));
}
[TypeScriptBridge ("isChildOfInterface")]
public bool IsChildOfInterface ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isChildOfInterface"));
}
[TypeScriptBridge ("isTopLevelImplicitModule")]
public bool IsTopLevelImplicitModule ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isTopLevelImplicitModule"));
}
[TypeScriptBridge ("isBodyOfTopLevelImplicitModule")]
public bool IsBodyOfTopLevelImplicitModule ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfTopLevelImplicitModule"));
}
[TypeScriptBridge ("isBodyOfScript")]
public bool IsBodyOfScript ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfScript"));
}
[TypeScriptBridge ("isBodyOfSwitch")]
public bool IsBodyOfSwitch ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfSwitch"));
}
[TypeScriptBridge ("isBodyOfModule")]
public bool IsBodyOfModule ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfModule"));
}
[TypeScriptBridge ("isBodyOfClass")]
public bool IsBodyOfClass ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfClass"));
}
[TypeScriptBridge ("isBodyOfFunction")]
public bool IsBodyOfFunction ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfFunction"));
}
[TypeScriptBridge ("isBodyOfInterface")]
public bool IsBodyOfInterface ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfInterface"));
}
[TypeScriptBridge ("isBodyOfBlock")]
public bool IsBodyOfBlock ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfBlock"));
}
[TypeScriptBridge ("isBodyOfFor")]
public bool IsBodyOfFor ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfFor"));
}
[TypeScriptBridge ("isBodyOfCase")]
public bool IsBodyOfCase ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfCase"));
}
[TypeScriptBridge ("isBodyOfTry")]
public bool IsBodyOfTry ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfTry"));
}
[TypeScriptBridge ("isBodyOfCatch")]
public bool IsBodyOfCatch ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfCatch"));
}
[TypeScriptBridge ("isBodyOfDoWhile")]
public bool IsBodyOfDoWhile ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfDoWhile"));
}
[TypeScriptBridge ("isBodyOfWhile")]
public bool IsBodyOfWhile ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfWhile"));
}
[TypeScriptBridge ("isBodyOfForIn")]
public bool IsBodyOfForIn ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfForIn"));
}
[TypeScriptBridge ("isBodyOfWith")]
public bool IsBodyOfWith ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfWith"));
}
[TypeScriptBridge ("isBodyOfFinally")]
public bool IsBodyOfFinally ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfFinally"));
}
[TypeScriptBridge ("isCaseOfSwitch")]
public bool IsCaseOfSwitch ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isCaseOfSwitch"));
}
[TypeScriptBridge ("isDefaultCaseOfSwitch")]
public bool IsDefaultCaseOfSwitch ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isDefaultCaseOfSwitch"));
}
[TypeScriptBridge ("isListOfObjectLit")]
public bool IsListOfObjectLit ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isListOfObjectLit"));
}
[TypeScriptBridge ("isBodyOfObjectLit")]
public bool IsBodyOfObjectLit ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfObjectLit"));
}
[TypeScriptBridge ("isEmptyListOfObjectLit")]
public bool IsEmptyListOfObjectLit ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isEmptyListOfObjectLit"));
}
[TypeScriptBridge ("isMemberOfObjectLit")]
public bool IsMemberOfObjectLit ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isMemberOfObjectLit"));
}
[TypeScriptBridge ("isNameOfMemberOfObjectLit")]
public bool IsNameOfMemberOfObjectLit ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isNameOfMemberOfObjectLit"));
}
[TypeScriptBridge ("isListOfArrayLit")]
public bool IsListOfArrayLit ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isListOfArrayLit"));
}
[TypeScriptBridge ("isTargetOfMember")]
public bool IsTargetOfMember ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isTargetOfMember"));
}
[TypeScriptBridge ("isMemberOfMember")]
public bool IsMemberOfMember ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isMemberOfMember"));
}
[TypeScriptBridge ("isItemOfList")]
public bool IsItemOfList ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isItemOfList"));
}
[TypeScriptBridge ("isThenOfIf")]
public bool IsThenOfIf ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isThenOfIf"));
}
[TypeScriptBridge ("isElseOfIf")]
public bool IsElseOfIf ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isElseOfIf"));
}
[TypeScriptBridge ("isBodyOfDefaultCase")]
public bool IsBodyOfDefaultCase ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isBodyOfDefaultCase"));
}
[TypeScriptBridge ("isSingleStatementList")]
public bool IsSingleStatementList ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isSingleStatementList"));
}
[TypeScriptBridge ("isArgumentListOfFunction")]
public bool IsArgumentListOfFunction ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isArgumentListOfFunction"));
}
[TypeScriptBridge ("isArgumentOfFunction")]
public bool IsArgumentOfFunction ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isArgumentOfFunction"));
}
[TypeScriptBridge ("isArgumentListOfCall")]
public bool IsArgumentListOfCall ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isArgumentListOfCall"));
}
[TypeScriptBridge ("isArgumentListOfNew")]
public bool IsArgumentListOfNew ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isArgumentListOfNew"));
}
[TypeScriptBridge ("isSynthesizedBlock")]
public bool IsSynthesizedBlock ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("isSynthesizedBlock"));
}
}
public class AstPathContext : TypeScriptObject
{
public AstPathContext (ObjectInstance instance) : base (instance) {}
public AstPathContext ()
: base (CallConstructor ("TypeScript", "AstPathContext"))
{
}
[TypeScriptBridge ("path")]
public TypeScriptServiceBridge.TypeScript.AstPath Path {
get { return new TypeScriptServiceBridge.TypeScript.AstPath ((ObjectInstance) Instance.GetPropertyValue ("path")); }
set { Instance.SetPropertyValue ("path", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("get_path")]
public TypeScriptServiceBridge.TypeScript.AstPath Get_path ()
{
return new TypeScriptServiceBridge.TypeScript.AstPath ((ObjectInstance) Instance.CallMemberFunction ("get_path"));
}
[TypeScriptBridge ("set_path")]
public void Set_path (TypeScriptServiceBridge.TypeScript.AstPath @value)
{
Instance.CallMemberFunction ("set_path", @value != null ? @value.Instance : null);
}
}
public enum GetAstPathOptions
{
Default = 0,
EdgeInclusive = 1,
DontPruneSearchBasedOnPosition = 2,
}
public class AstLogger : TypeScriptObject
{
public AstLogger (ObjectInstance instance) : base (instance) {}
public AstLogger (TypeScriptServiceBridge.TypeScript.ILogger @logger)
: base (CallConstructor ("TypeScript", "AstLogger", @logger != null ? @logger.Instance : null))
{
}
[TypeScriptBridge ("logger")]
public TypeScriptServiceBridge.TypeScript.ILogger Logger {
get { return new TypeScriptServiceBridge.TypeScript.ILogger_Impl ((ObjectInstance) Instance.GetPropertyValue ("logger")); }
set { Instance.SetPropertyValue ("logger", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("get_logger")]
public TypeScriptServiceBridge.TypeScript.ILogger Get_logger ()
{
return new TypeScriptServiceBridge.TypeScript.ILogger_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_logger"));
}
[TypeScriptBridge ("set_logger")]
public void Set_logger (TypeScriptServiceBridge.TypeScript.ILogger @value)
{
Instance.CallMemberFunction ("set_logger", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("logScript")]
public void LogScript (TypeScriptServiceBridge.TypeScript.Script @script)
{
Instance.CallMemberFunction ("logScript", @script != null ? @script.Instance : null);
}
[TypeScriptBridge ("logNode")]
public void LogNode (TypeScriptServiceBridge.TypeScript.Script @script, TypeScriptServiceBridge.TypeScript.AST @cur, double @indent)
{
Instance.CallMemberFunction ("logNode", @script != null ? @script.Instance : null, @cur != null ? @cur.Instance : null, @indent);
}
[TypeScriptBridge ("logComments")]
public void LogComments (TypeScriptServiceBridge.TypeScript.Script @script, ArrayInstance @comments, double @indent)
{
Instance.CallMemberFunction ("logComments", @script != null ? @script.Instance : null, @comments, @indent);
}
[TypeScriptBridge ("logLinemap")]
public void LogLinemap (ArrayInstance @linemap)
{
Instance.CallMemberFunction ("logLinemap", @linemap);
}
[TypeScriptBridge ("addPadding")]
public string AddPadding (string @s, double @targetLength, string @paddingString, bool @leftPadding)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("addPadding", @s, @targetLength, @paddingString, @leftPadding));
}
[TypeScriptBridge ("addLineColumn")]
public string AddLineColumn (TypeScriptServiceBridge.TypeScript.Script @script, double @position)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("addLineColumn", @script != null ? @script.Instance : null, @position));
}
}
public class Binder : TypeScriptObject
{
public Binder (ObjectInstance instance) : base (instance) {}
public Binder (TypeScriptServiceBridge.TypeScript.TypeChecker @checker)
: base (CallConstructor ("TypeScript", "Binder", @checker != null ? @checker.Instance : null))
{
}
[TypeScriptBridge ("checker")]
public TypeScriptServiceBridge.TypeScript.TypeChecker Checker {
get { return new TypeScriptServiceBridge.TypeScript.TypeChecker ((ObjectInstance) Instance.GetPropertyValue ("checker")); }
set { Instance.SetPropertyValue ("checker", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("get_checker")]
public TypeScriptServiceBridge.TypeScript.TypeChecker Get_checker ()
{
return new TypeScriptServiceBridge.TypeScript.TypeChecker ((ObjectInstance) Instance.CallMemberFunction ("get_checker"));
}
[TypeScriptBridge ("set_checker")]
public void Set_checker (TypeScriptServiceBridge.TypeScript.TypeChecker @value)
{
Instance.CallMemberFunction ("set_checker", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("resolveBaseTypeLinks")]
public ArrayInstance ResolveBaseTypeLinks (ArrayInstance @typeLinks, TypeScriptServiceBridge.TypeScript.SymbolScope @scope)
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("resolveBaseTypeLinks", @typeLinks, @scope != null ? @scope.Instance : null));
}
[TypeScriptBridge ("resolveBases")]
public void ResolveBases (TypeScriptServiceBridge.TypeScript.SymbolScope @scope, TypeScriptServiceBridge.TypeScript.Type @type)
{
Instance.CallMemberFunction ("resolveBases", @scope != null ? @scope.Instance : null, @type != null ? @type.Instance : null);
}
[TypeScriptBridge ("resolveSignatureGroup")]
public void ResolveSignatureGroup (TypeScriptServiceBridge.TypeScript.SignatureGroup @signatureGroup, TypeScriptServiceBridge.TypeScript.SymbolScope @scope, TypeScriptServiceBridge.TypeScript.Type @instanceType)
{
Instance.CallMemberFunction ("resolveSignatureGroup", @signatureGroup != null ? @signatureGroup.Instance : null, @scope != null ? @scope.Instance : null, @instanceType != null ? @instanceType.Instance : null);
}
[TypeScriptBridge ("bindType")]
public void BindType (TypeScriptServiceBridge.TypeScript.SymbolScope @scope, TypeScriptServiceBridge.TypeScript.Type @type, TypeScriptServiceBridge.TypeScript.Type @instanceType)
{
Instance.CallMemberFunction ("bindType", @scope != null ? @scope.Instance : null, @type != null ? @type.Instance : null, @instanceType != null ? @instanceType.Instance : null);
}
[TypeScriptBridge ("bindSymbol")]
public void BindSymbol (TypeScriptServiceBridge.TypeScript.SymbolScope @scope, TypeScriptServiceBridge.TypeScript.Symbol @symbol)
{
Instance.CallMemberFunction ("bindSymbol", @scope != null ? @scope.Instance : null, @symbol != null ? @symbol.Instance : null);
}
[TypeScriptBridge ("bind")]
public void Bind (TypeScriptServiceBridge.TypeScript.SymbolScope @scope, TypeScriptServiceBridge.TypeScript.IHashTable @table)
{
Instance.CallMemberFunction ("bind", @scope != null ? @scope.Instance : null, @table != null ? @table.Instance : null);
}
}
public class Base64Format : TypeScriptObject
{
public Base64Format (ObjectInstance instance) : base (instance) {}
public Base64Format ()
: base (CallConstructor ("TypeScript", "Base64Format"))
{
}
[TypeScriptBridge ("encodedValues")]
public string EncodedValues {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("encodedValues")); }
set { Instance.SetPropertyValue ("encodedValues", value, true); }
}
[TypeScriptBridge ("get_encodedValues")]
public string Get_encodedValues ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_encodedValues"));
}
[TypeScriptBridge ("set_encodedValues")]
public void Set_encodedValues (string @value)
{
Instance.CallMemberFunction ("set_encodedValues", @value);
}
[TypeScriptBridge ("encode")]
public string Encode (double @inValue)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("encode", @inValue));
}
[TypeScriptBridge ("decodeChar")]
public double DecodeChar (string @inChar)
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("decodeChar", @inChar));
}
}
public class Base64VLQFormat : TypeScriptObject
{
public Base64VLQFormat (ObjectInstance instance) : base (instance) {}
public Base64VLQFormat ()
: base (CallConstructor ("TypeScript", "Base64VLQFormat"))
{
}
[TypeScriptBridge ("encode")]
public string Encode (double @inValue)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("encode", @inValue));
}
[TypeScriptBridge ("decode")]
public System.Object Decode (string @inString)
{
return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("decode", @inString));
}
}
public class SourceMapPosition : TypeScriptObject
{
public SourceMapPosition (ObjectInstance instance) : base (instance) {}
public SourceMapPosition ()
: base (CallConstructor ("TypeScript", "SourceMapPosition"))
{
}
[TypeScriptBridge ("sourceLine")]
public double SourceLine {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("sourceLine")); }
set { Instance.SetPropertyValue ("sourceLine", value, true); }
}
[TypeScriptBridge ("sourceColumn")]
public double SourceColumn {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("sourceColumn")); }
set { Instance.SetPropertyValue ("sourceColumn", value, true); }
}
[TypeScriptBridge ("emittedLine")]
public double EmittedLine {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("emittedLine")); }
set { Instance.SetPropertyValue ("emittedLine", value, true); }
}
[TypeScriptBridge ("emittedColumn")]
public double EmittedColumn {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("emittedColumn")); }
set { Instance.SetPropertyValue ("emittedColumn", value, true); }
}
[TypeScriptBridge ("get_sourceLine")]
public double Get_sourceLine ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_sourceLine"));
}
[TypeScriptBridge ("set_sourceLine")]
public void Set_sourceLine (double @value)
{
Instance.CallMemberFunction ("set_sourceLine", @value);
}
[TypeScriptBridge ("get_sourceColumn")]
public double Get_sourceColumn ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_sourceColumn"));
}
[TypeScriptBridge ("set_sourceColumn")]
public void Set_sourceColumn (double @value)
{
Instance.CallMemberFunction ("set_sourceColumn", @value);
}
[TypeScriptBridge ("get_emittedLine")]
public double Get_emittedLine ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_emittedLine"));
}
[TypeScriptBridge ("set_emittedLine")]
public void Set_emittedLine (double @value)
{
Instance.CallMemberFunction ("set_emittedLine", @value);
}
[TypeScriptBridge ("get_emittedColumn")]
public double Get_emittedColumn ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_emittedColumn"));
}
[TypeScriptBridge ("set_emittedColumn")]
public void Set_emittedColumn (double @value)
{
Instance.CallMemberFunction ("set_emittedColumn", @value);
}
}
public class SourceMapping : TypeScriptObject
{
public SourceMapping (ObjectInstance instance) : base (instance) {}
public SourceMapping ()
: base (CallConstructor ("TypeScript", "SourceMapping"))
{
}
[TypeScriptBridge ("start")]
public TypeScriptServiceBridge.TypeScript.SourceMapPosition Start {
get { return new TypeScriptServiceBridge.TypeScript.SourceMapPosition ((ObjectInstance) Instance.GetPropertyValue ("start")); }
set { Instance.SetPropertyValue ("start", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("end")]
public TypeScriptServiceBridge.TypeScript.SourceMapPosition End {
get { return new TypeScriptServiceBridge.TypeScript.SourceMapPosition ((ObjectInstance) Instance.GetPropertyValue ("end")); }
set { Instance.SetPropertyValue ("end", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("nameIndex")]
public double NameIndex {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("nameIndex")); }
set { Instance.SetPropertyValue ("nameIndex", value, true); }
}
[TypeScriptBridge ("childMappings")]
public ArrayInstance ChildMappings {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("childMappings")); }
set { Instance.SetPropertyValue ("childMappings", value, true); }
}
[TypeScriptBridge ("get_start")]
public TypeScriptServiceBridge.TypeScript.SourceMapPosition Get_start ()
{
return new TypeScriptServiceBridge.TypeScript.SourceMapPosition ((ObjectInstance) Instance.CallMemberFunction ("get_start"));
}
[TypeScriptBridge ("set_start")]
public void Set_start (TypeScriptServiceBridge.TypeScript.SourceMapPosition @value)
{
Instance.CallMemberFunction ("set_start", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_end")]
public TypeScriptServiceBridge.TypeScript.SourceMapPosition Get_end ()
{
return new TypeScriptServiceBridge.TypeScript.SourceMapPosition ((ObjectInstance) Instance.CallMemberFunction ("get_end"));
}
[TypeScriptBridge ("set_end")]
public void Set_end (TypeScriptServiceBridge.TypeScript.SourceMapPosition @value)
{
Instance.CallMemberFunction ("set_end", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_nameIndex")]
public double Get_nameIndex ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_nameIndex"));
}
[TypeScriptBridge ("set_nameIndex")]
public void Set_nameIndex (double @value)
{
Instance.CallMemberFunction ("set_nameIndex", @value);
}
[TypeScriptBridge ("get_childMappings")]
public ArrayInstance Get_childMappings ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_childMappings"));
}
[TypeScriptBridge ("set_childMappings")]
public void Set_childMappings (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_childMappings", @value);
}
}
public class SourceMapper : TypeScriptObject
{
public SourceMapper (ObjectInstance instance) : base (instance) {}
public SourceMapper (string @tsFileName, string @jsFileName, TypeScriptServiceBridge.ITextWriter @jsFile, TypeScriptServiceBridge.ITextWriter @sourceMapOut)
: base (CallConstructor ("TypeScript", "SourceMapper", @tsFileName, @jsFileName, @jsFile != null ? @jsFile.Instance : null, @sourceMapOut != null ? @sourceMapOut.Instance : null))
{
}
[TypeScriptBridge ("jsFile")]
public TypeScriptServiceBridge.ITextWriter JsFile {
get { return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.GetPropertyValue ("jsFile")); }
set { Instance.SetPropertyValue ("jsFile", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("sourceMapOut")]
public TypeScriptServiceBridge.ITextWriter SourceMapOut {
get { return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.GetPropertyValue ("sourceMapOut")); }
set { Instance.SetPropertyValue ("sourceMapOut", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("MapFileExtension")]
public string MapFileExtension {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("MapFileExtension")); }
set { Instance.SetPropertyValue ("MapFileExtension", value, true); }
}
[TypeScriptBridge ("sourceMappings")]
public ArrayInstance SourceMappings {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("sourceMappings")); }
set { Instance.SetPropertyValue ("sourceMappings", value, true); }
}
[TypeScriptBridge ("currentMappings")]
public ArrayInstance CurrentMappings {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("currentMappings")); }
set { Instance.SetPropertyValue ("currentMappings", value, true); }
}
[TypeScriptBridge ("names")]
public ArrayInstance Names {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("names")); }
set { Instance.SetPropertyValue ("names", value, true); }
}
[TypeScriptBridge ("currentNameIndex")]
public ArrayInstance CurrentNameIndex {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("currentNameIndex")); }
set { Instance.SetPropertyValue ("currentNameIndex", value, true); }
}
[TypeScriptBridge ("jsFileName")]
public string JsFileName {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("jsFileName")); }
set { Instance.SetPropertyValue ("jsFileName", value, true); }
}
[TypeScriptBridge ("tsFileName")]
public string TsFileName {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("tsFileName")); }
set { Instance.SetPropertyValue ("tsFileName", value, true); }
}
[TypeScriptBridge ("get_jsFile")]
public TypeScriptServiceBridge.ITextWriter Get_jsFile ()
{
return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_jsFile"));
}
[TypeScriptBridge ("set_jsFile")]
public void Set_jsFile (TypeScriptServiceBridge.ITextWriter @value)
{
Instance.CallMemberFunction ("set_jsFile", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_sourceMapOut")]
public TypeScriptServiceBridge.ITextWriter Get_sourceMapOut ()
{
return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_sourceMapOut"));
}
[TypeScriptBridge ("set_sourceMapOut")]
public void Set_sourceMapOut (TypeScriptServiceBridge.ITextWriter @value)
{
Instance.CallMemberFunction ("set_sourceMapOut", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_MapFileExtension")]
public string Get_MapFileExtension ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_MapFileExtension"));
}
[TypeScriptBridge ("set_MapFileExtension")]
public void Set_MapFileExtension (string @value)
{
Instance.CallMemberFunction ("set_MapFileExtension", @value);
}
[TypeScriptBridge ("get_sourceMappings")]
public ArrayInstance Get_sourceMappings ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_sourceMappings"));
}
[TypeScriptBridge ("set_sourceMappings")]
public void Set_sourceMappings (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_sourceMappings", @value);
}
[TypeScriptBridge ("get_currentMappings")]
public ArrayInstance Get_currentMappings ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_currentMappings"));
}
[TypeScriptBridge ("set_currentMappings")]
public void Set_currentMappings (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_currentMappings", @value);
}
[TypeScriptBridge ("get_names")]
public ArrayInstance Get_names ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_names"));
}
[TypeScriptBridge ("set_names")]
public void Set_names (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_names", @value);
}
[TypeScriptBridge ("get_currentNameIndex")]
public ArrayInstance Get_currentNameIndex ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_currentNameIndex"));
}
[TypeScriptBridge ("set_currentNameIndex")]
public void Set_currentNameIndex (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_currentNameIndex", @value);
}
[TypeScriptBridge ("get_jsFileName")]
public string Get_jsFileName ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_jsFileName"));
}
[TypeScriptBridge ("set_jsFileName")]
public void Set_jsFileName (string @value)
{
Instance.CallMemberFunction ("set_jsFileName", @value);
}
[TypeScriptBridge ("get_tsFileName")]
public string Get_tsFileName ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_tsFileName"));
}
[TypeScriptBridge ("set_tsFileName")]
public void Set_tsFileName (string @value)
{
Instance.CallMemberFunction ("set_tsFileName", @value);
}
[TypeScriptBridge ("EmitSourceMapping")]
public void EmitSourceMapping (ArrayInstance @allSourceMappers)
{
Instance.CallMemberFunction ("EmitSourceMapping", @allSourceMappers);
}
}
public class CSharpSupport : TypeScriptObject
{
public CSharpSupport (ObjectInstance instance) : base (instance) {}
public CSharpSupport ()
: base (CallConstructor ("TypeScript", "CSharpSupport"))
{
}
[TypeScriptBridge ("toCSharpType")]
public string ToCSharpType (string @s)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("toCSharpType", @s));
}
[TypeScriptBridge ("toCSharpName")]
public string ToCSharpName (string @s)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("toCSharpName", @s));
}
[TypeScriptBridge ("escapeIdentifier")]
public string EscapeIdentifier (string @s)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("escapeIdentifier", @s));
}
}
public enum EmitContainer
{
Prog = 0,
Module = 1,
DynamicModule = 2,
Class = 3,
Constructor = 4,
Function = 5,
Args = 6,
Interface = 7,
}
public class EmitState : TypeScriptObject
{
public EmitState (ObjectInstance instance) : base (instance) {}
public EmitState ()
: base (CallConstructor ("TypeScript", "EmitState"))
{
}
[TypeScriptBridge ("column")]
public double Column {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("column")); }
set { Instance.SetPropertyValue ("column", value, true); }
}
[TypeScriptBridge ("line")]
public double Line {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("line")); }
set { Instance.SetPropertyValue ("line", value, true); }
}
[TypeScriptBridge ("pretty")]
public bool Pretty {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("pretty")); }
set { Instance.SetPropertyValue ("pretty", value, true); }
}
[TypeScriptBridge ("inObjectLiteral")]
public bool InObjectLiteral {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("inObjectLiteral")); }
set { Instance.SetPropertyValue ("inObjectLiteral", value, true); }
}
[TypeScriptBridge ("container")]
public TypeScriptServiceBridge.TypeScript.EmitContainer Container {
get { return TypeConverter.ConvertTo<TypeScriptServiceBridge.TypeScript.EmitContainer> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("container")); }
set { Instance.SetPropertyValue ("container", value, true); }
}
[TypeScriptBridge ("get_column")]
public double Get_column ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_column"));
}
[TypeScriptBridge ("set_column")]
public void Set_column (double @value)
{
Instance.CallMemberFunction ("set_column", @value);
}
[TypeScriptBridge ("get_line")]
public double Get_line ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_line"));
}
[TypeScriptBridge ("set_line")]
public void Set_line (double @value)
{
Instance.CallMemberFunction ("set_line", @value);
}
[TypeScriptBridge ("get_pretty")]
public bool Get_pretty ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_pretty"));
}
[TypeScriptBridge ("set_pretty")]
public void Set_pretty (bool @value)
{
Instance.CallMemberFunction ("set_pretty", @value);
}
[TypeScriptBridge ("get_inObjectLiteral")]
public bool Get_inObjectLiteral ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_inObjectLiteral"));
}
[TypeScriptBridge ("set_inObjectLiteral")]
public void Set_inObjectLiteral (bool @value)
{
Instance.CallMemberFunction ("set_inObjectLiteral", @value);
}
[TypeScriptBridge ("get_container")]
public TypeScriptServiceBridge.TypeScript.EmitContainer Get_container ()
{
return TypeConverter.ConvertTo<TypeScriptServiceBridge.TypeScript.EmitContainer> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_container"));
}
[TypeScriptBridge ("set_container")]
public void Set_container (TypeScriptServiceBridge.TypeScript.EmitContainer @value)
{
Instance.CallMemberFunction ("set_container", @value);
}
}
public interface IEmitOptions : ITypeScriptObject
{
[TypeScriptBridge ("minWhitespace")]
bool MinWhitespace { get; set; }
[TypeScriptBridge ("propagateConstants")]
bool PropagateConstants { get; set; }
[TypeScriptBridge ("emitComments")]
bool EmitComments { get; set; }
[TypeScriptBridge ("path")]
string Path { get; set; }
[TypeScriptBridge ("outputMobject")]
bool OutputMobject { get; set; }
[TypeScriptBridge ("get_minWhitespace")]
bool Get_minWhitespace ();
[TypeScriptBridge ("set_minWhitespace")]
void Set_minWhitespace (bool @value);
[TypeScriptBridge ("get_propagateConstants")]
bool Get_propagateConstants ();
[TypeScriptBridge ("set_propagateConstants")]
void Set_propagateConstants (bool @value);
[TypeScriptBridge ("get_emitComments")]
bool Get_emitComments ();
[TypeScriptBridge ("set_emitComments")]
void Set_emitComments (bool @value);
[TypeScriptBridge ("get_path")]
string Get_path ();
[TypeScriptBridge ("set_path")]
void Set_path (string @value);
[TypeScriptBridge ("get_outputMobject")]
bool Get_outputMobject ();
[TypeScriptBridge ("set_outputMobject")]
void Set_outputMobject (bool @value);
}
public class IEmitOptions_Impl : TypeScriptObject, IEmitOptions
{
public IEmitOptions_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("minWhitespace")]
public bool MinWhitespace {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("minWhitespace")); }
set { Instance.SetPropertyValue ("minWhitespace", value, true); }
}
[TypeScriptBridge ("propagateConstants")]
public bool PropagateConstants {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("propagateConstants")); }
set { Instance.SetPropertyValue ("propagateConstants", value, true); }
}
[TypeScriptBridge ("emitComments")]
public bool EmitComments {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("emitComments")); }
set { Instance.SetPropertyValue ("emitComments", value, true); }
}
[TypeScriptBridge ("path")]
public string Path {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("path")); }
set { Instance.SetPropertyValue ("path", value, true); }
}
[TypeScriptBridge ("outputMobject")]
public bool OutputMobject {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("outputMobject")); }
set { Instance.SetPropertyValue ("outputMobject", value, true); }
}
[TypeScriptBridge ("get_minWhitespace")]
public bool Get_minWhitespace ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_minWhitespace"));
}
[TypeScriptBridge ("set_minWhitespace")]
public void Set_minWhitespace (bool @value)
{
Instance.CallMemberFunction ("set_minWhitespace", @value);
}
[TypeScriptBridge ("get_propagateConstants")]
public bool Get_propagateConstants ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_propagateConstants"));
}
[TypeScriptBridge ("set_propagateConstants")]
public void Set_propagateConstants (bool @value)
{
Instance.CallMemberFunction ("set_propagateConstants", @value);
}
[TypeScriptBridge ("get_emitComments")]
public bool Get_emitComments ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_emitComments"));
}
[TypeScriptBridge ("set_emitComments")]
public void Set_emitComments (bool @value)
{
Instance.CallMemberFunction ("set_emitComments", @value);
}
[TypeScriptBridge ("get_path")]
public string Get_path ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_path"));
}
[TypeScriptBridge ("set_path")]
public void Set_path (string @value)
{
Instance.CallMemberFunction ("set_path", @value);
}
[TypeScriptBridge ("get_outputMobject")]
public bool Get_outputMobject ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_outputMobject"));
}
[TypeScriptBridge ("set_outputMobject")]
public void Set_outputMobject (bool @value)
{
Instance.CallMemberFunction ("set_outputMobject", @value);
}
}
public class Indenter : TypeScriptObject
{
public Indenter (ObjectInstance instance) : base (instance) {}
public Indenter ()
: base (CallConstructor ("TypeScript", "Indenter"))
{
}
[TypeScriptBridge ("indentStep")]
public double IndentStep {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("indentStep")); }
set { Instance.SetPropertyValue ("indentStep", value, true); }
}
[TypeScriptBridge ("indentStepString")]
public string IndentStepString {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("indentStepString")); }
set { Instance.SetPropertyValue ("indentStepString", value, true); }
}
[TypeScriptBridge ("indentStrings")]
public ArrayInstance IndentStrings {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("indentStrings")); }
set { Instance.SetPropertyValue ("indentStrings", value, true); }
}
[TypeScriptBridge ("indentAmt")]
public double IndentAmt {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("indentAmt")); }
set { Instance.SetPropertyValue ("indentAmt", value, true); }
}
[TypeScriptBridge ("get_indentStep")]
public double Get_indentStep ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_indentStep"));
}
[TypeScriptBridge ("set_indentStep")]
public void Set_indentStep (double @value)
{
Instance.CallMemberFunction ("set_indentStep", @value);
}
[TypeScriptBridge ("get_indentStepString")]
public string Get_indentStepString ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_indentStepString"));
}
[TypeScriptBridge ("set_indentStepString")]
public void Set_indentStepString (string @value)
{
Instance.CallMemberFunction ("set_indentStepString", @value);
}
[TypeScriptBridge ("get_indentStrings")]
public ArrayInstance Get_indentStrings ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_indentStrings"));
}
[TypeScriptBridge ("set_indentStrings")]
public void Set_indentStrings (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_indentStrings", @value);
}
[TypeScriptBridge ("get_indentAmt")]
public double Get_indentAmt ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_indentAmt"));
}
[TypeScriptBridge ("set_indentAmt")]
public void Set_indentAmt (double @value)
{
Instance.CallMemberFunction ("set_indentAmt", @value);
}
[TypeScriptBridge ("increaseIndent")]
public void IncreaseIndent ()
{
Instance.CallMemberFunction ("increaseIndent");
}
[TypeScriptBridge ("decreaseIndent")]
public void DecreaseIndent ()
{
Instance.CallMemberFunction ("decreaseIndent");
}
[TypeScriptBridge ("getIndent")]
public string GetIndent ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("getIndent"));
}
}
public class Emitter : TypeScriptObject
{
public Emitter (ObjectInstance instance) : base (instance) {}
public Emitter (TypeScriptServiceBridge.TypeScript.TypeChecker @checker, TypeScriptServiceBridge.ITextWriter @outfile, TypeScriptServiceBridge.TypeScript.IEmitOptions @emitOptions)
: base (CallConstructor ("TypeScript", "Emitter", @checker != null ? @checker.Instance : null, @outfile != null ? @outfile.Instance : null, @emitOptions != null ? @emitOptions.Instance : null))
{
}
[TypeScriptBridge ("checker")]
public TypeScriptServiceBridge.TypeScript.TypeChecker Checker {
get { return new TypeScriptServiceBridge.TypeScript.TypeChecker ((ObjectInstance) Instance.GetPropertyValue ("checker")); }
set { Instance.SetPropertyValue ("checker", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("outfile")]
public TypeScriptServiceBridge.ITextWriter Outfile {
get { return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.GetPropertyValue ("outfile")); }
set { Instance.SetPropertyValue ("outfile", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("emitOptions")]
public TypeScriptServiceBridge.TypeScript.IEmitOptions EmitOptions {
get { return new TypeScriptServiceBridge.TypeScript.IEmitOptions_Impl ((ObjectInstance) Instance.GetPropertyValue ("emitOptions")); }
set { Instance.SetPropertyValue ("emitOptions", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("prologueEmitted")]
public bool PrologueEmitted {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("prologueEmitted")); }
set { Instance.SetPropertyValue ("prologueEmitted", value, true); }
}
[TypeScriptBridge ("thisClassNode")]
public TypeScriptServiceBridge.TypeScript.TypeDeclaration ThisClassNode {
get { return new TypeScriptServiceBridge.TypeScript.TypeDeclaration ((ObjectInstance) Instance.GetPropertyValue ("thisClassNode")); }
set { Instance.SetPropertyValue ("thisClassNode", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("thisFnc")]
public TypeScriptServiceBridge.TypeScript.FuncDecl ThisFnc {
get { return new TypeScriptServiceBridge.TypeScript.FuncDecl ((ObjectInstance) Instance.GetPropertyValue ("thisFnc")); }
set { Instance.SetPropertyValue ("thisFnc", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("moduleDeclList")]
public ArrayInstance ModuleDeclList {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("moduleDeclList")); }
set { Instance.SetPropertyValue ("moduleDeclList", value, true); }
}
[TypeScriptBridge ("moduleName")]
public string ModuleName {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("moduleName")); }
set { Instance.SetPropertyValue ("moduleName", value, true); }
}
[TypeScriptBridge ("emitState")]
public TypeScriptServiceBridge.TypeScript.EmitState EmitState {
get { return new TypeScriptServiceBridge.TypeScript.EmitState ((ObjectInstance) Instance.GetPropertyValue ("emitState")); }
set { Instance.SetPropertyValue ("emitState", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("indenter")]
public TypeScriptServiceBridge.TypeScript.Indenter Indenter {
get { return new TypeScriptServiceBridge.TypeScript.Indenter ((ObjectInstance) Instance.GetPropertyValue ("indenter")); }
set { Instance.SetPropertyValue ("indenter", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("ambientModule")]
public bool AmbientModule {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("ambientModule")); }
set { Instance.SetPropertyValue ("ambientModule", value, true); }
}
[TypeScriptBridge ("modAliasId")]
public string ModAliasId {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("modAliasId")); }
set { Instance.SetPropertyValue ("modAliasId", value, true); }
}
[TypeScriptBridge ("firstModAlias")]
public string FirstModAlias {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("firstModAlias")); }
set { Instance.SetPropertyValue ("firstModAlias", value, true); }
}
[TypeScriptBridge ("allSourceMappers")]
public ArrayInstance AllSourceMappers {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("allSourceMappers")); }
set { Instance.SetPropertyValue ("allSourceMappers", value, true); }
}
[TypeScriptBridge ("sourceMapper")]
public TypeScriptServiceBridge.TypeScript.SourceMapper SourceMapper {
get { return new TypeScriptServiceBridge.TypeScript.SourceMapper ((ObjectInstance) Instance.GetPropertyValue ("sourceMapper")); }
set { Instance.SetPropertyValue ("sourceMapper", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("captureThisStmtString")]
public string CaptureThisStmtString {
get { return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("captureThisStmtString")); }
set { Instance.SetPropertyValue ("captureThisStmtString", value, true); }
}
[TypeScriptBridge ("get_checker")]
public TypeScriptServiceBridge.TypeScript.TypeChecker Get_checker ()
{
return new TypeScriptServiceBridge.TypeScript.TypeChecker ((ObjectInstance) Instance.CallMemberFunction ("get_checker"));
}
[TypeScriptBridge ("set_checker")]
public void Set_checker (TypeScriptServiceBridge.TypeScript.TypeChecker @value)
{
Instance.CallMemberFunction ("set_checker", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_outfile")]
public TypeScriptServiceBridge.ITextWriter Get_outfile ()
{
return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_outfile"));
}
[TypeScriptBridge ("set_outfile")]
public void Set_outfile (TypeScriptServiceBridge.ITextWriter @value)
{
Instance.CallMemberFunction ("set_outfile", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_emitOptions")]
public TypeScriptServiceBridge.TypeScript.IEmitOptions Get_emitOptions ()
{
return new TypeScriptServiceBridge.TypeScript.IEmitOptions_Impl ((ObjectInstance) Instance.CallMemberFunction ("get_emitOptions"));
}
[TypeScriptBridge ("set_emitOptions")]
public void Set_emitOptions (TypeScriptServiceBridge.TypeScript.IEmitOptions @value)
{
Instance.CallMemberFunction ("set_emitOptions", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_prologueEmitted")]
public bool Get_prologueEmitted ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_prologueEmitted"));
}
[TypeScriptBridge ("set_prologueEmitted")]
public void Set_prologueEmitted (bool @value)
{
Instance.CallMemberFunction ("set_prologueEmitted", @value);
}
[TypeScriptBridge ("get_thisClassNode")]
public TypeScriptServiceBridge.TypeScript.TypeDeclaration Get_thisClassNode ()
{
return new TypeScriptServiceBridge.TypeScript.TypeDeclaration ((ObjectInstance) Instance.CallMemberFunction ("get_thisClassNode"));
}
[TypeScriptBridge ("set_thisClassNode")]
public void Set_thisClassNode (TypeScriptServiceBridge.TypeScript.TypeDeclaration @value)
{
Instance.CallMemberFunction ("set_thisClassNode", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_thisFnc")]
public TypeScriptServiceBridge.TypeScript.FuncDecl Get_thisFnc ()
{
return new TypeScriptServiceBridge.TypeScript.FuncDecl ((ObjectInstance) Instance.CallMemberFunction ("get_thisFnc"));
}
[TypeScriptBridge ("set_thisFnc")]
public void Set_thisFnc (TypeScriptServiceBridge.TypeScript.FuncDecl @value)
{
Instance.CallMemberFunction ("set_thisFnc", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_moduleDeclList")]
public ArrayInstance Get_moduleDeclList ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_moduleDeclList"));
}
[TypeScriptBridge ("set_moduleDeclList")]
public void Set_moduleDeclList (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_moduleDeclList", @value);
}
[TypeScriptBridge ("get_moduleName")]
public string Get_moduleName ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_moduleName"));
}
[TypeScriptBridge ("set_moduleName")]
public void Set_moduleName (string @value)
{
Instance.CallMemberFunction ("set_moduleName", @value);
}
[TypeScriptBridge ("get_emitState")]
public TypeScriptServiceBridge.TypeScript.EmitState Get_emitState ()
{
return new TypeScriptServiceBridge.TypeScript.EmitState ((ObjectInstance) Instance.CallMemberFunction ("get_emitState"));
}
[TypeScriptBridge ("set_emitState")]
public void Set_emitState (TypeScriptServiceBridge.TypeScript.EmitState @value)
{
Instance.CallMemberFunction ("set_emitState", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_indenter")]
public TypeScriptServiceBridge.TypeScript.Indenter Get_indenter ()
{
return new TypeScriptServiceBridge.TypeScript.Indenter ((ObjectInstance) Instance.CallMemberFunction ("get_indenter"));
}
[TypeScriptBridge ("set_indenter")]
public void Set_indenter (TypeScriptServiceBridge.TypeScript.Indenter @value)
{
Instance.CallMemberFunction ("set_indenter", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_ambientModule")]
public bool Get_ambientModule ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_ambientModule"));
}
[TypeScriptBridge ("set_ambientModule")]
public void Set_ambientModule (bool @value)
{
Instance.CallMemberFunction ("set_ambientModule", @value);
}
[TypeScriptBridge ("get_modAliasId")]
public string Get_modAliasId ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_modAliasId"));
}
[TypeScriptBridge ("set_modAliasId")]
public void Set_modAliasId (string @value)
{
Instance.CallMemberFunction ("set_modAliasId", @value);
}
[TypeScriptBridge ("get_firstModAlias")]
public string Get_firstModAlias ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_firstModAlias"));
}
[TypeScriptBridge ("set_firstModAlias")]
public void Set_firstModAlias (string @value)
{
Instance.CallMemberFunction ("set_firstModAlias", @value);
}
[TypeScriptBridge ("get_allSourceMappers")]
public ArrayInstance Get_allSourceMappers ()
{
return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_allSourceMappers"));
}
[TypeScriptBridge ("set_allSourceMappers")]
public void Set_allSourceMappers (ArrayInstance @value)
{
Instance.CallMemberFunction ("set_allSourceMappers", @value);
}
[TypeScriptBridge ("get_sourceMapper")]
public TypeScriptServiceBridge.TypeScript.SourceMapper Get_sourceMapper ()
{
return new TypeScriptServiceBridge.TypeScript.SourceMapper ((ObjectInstance) Instance.CallMemberFunction ("get_sourceMapper"));
}
[TypeScriptBridge ("set_sourceMapper")]
public void Set_sourceMapper (TypeScriptServiceBridge.TypeScript.SourceMapper @value)
{
Instance.CallMemberFunction ("set_sourceMapper", @value != null ? @value.Instance : null);
}
[TypeScriptBridge ("get_captureThisStmtString")]
public string Get_captureThisStmtString ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_captureThisStmtString"));
}
[TypeScriptBridge ("set_captureThisStmtString")]
public void Set_captureThisStmtString (string @value)
{
Instance.CallMemberFunction ("set_captureThisStmtString", @value);
}
[TypeScriptBridge ("setSourceMappings")]
public void SetSourceMappings (TypeScriptServiceBridge.TypeScript.SourceMapper @mapper)
{
Instance.CallMemberFunction ("setSourceMappings", @mapper != null ? @mapper.Instance : null);
}
[TypeScriptBridge ("writeToOutput")]
public void WriteToOutput (string @s)
{
Instance.CallMemberFunction ("writeToOutput", @s);
}
[TypeScriptBridge ("writeToOutputTrimmable")]
public void WriteToOutputTrimmable (string @s)
{
Instance.CallMemberFunction ("writeToOutputTrimmable", @s);
}
[TypeScriptBridge ("writeLineToOutput")]
public void WriteLineToOutput (string @s)
{
Instance.CallMemberFunction ("writeLineToOutput", @s);
}
[TypeScriptBridge ("writeCaptureThisStatement")]
public void WriteCaptureThisStatement (TypeScriptServiceBridge.TypeScript.AST @ast)
{
Instance.CallMemberFunction ("writeCaptureThisStatement", @ast != null ? @ast.Instance : null);
}
[TypeScriptBridge ("setInVarBlock")]
public void SetInVarBlock (double @count)
{
Instance.CallMemberFunction ("setInVarBlock", @count);
}
[TypeScriptBridge ("setInObjectLiteral")]
public bool SetInObjectLiteral (bool @val)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("setInObjectLiteral", @val));
}
[TypeScriptBridge ("setContainer")]
public double SetContainer (double @c)
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("setContainer", @c));
}
[TypeScriptBridge ("getIndentString")]
public string GetIndentString ()
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("getIndentString"));
}
[TypeScriptBridge ("emitIndent")]
public void EmitIndent ()
{
Instance.CallMemberFunction ("emitIndent");
}
[TypeScriptBridge ("emitCommentInPlace")]
public void EmitCommentInPlace (TypeScriptServiceBridge.TypeScript.Comment @comment)
{
Instance.CallMemberFunction ("emitCommentInPlace", @comment != null ? @comment.Instance : null);
}
[TypeScriptBridge ("emitParensAndCommentsInPlace")]
public void EmitParensAndCommentsInPlace (TypeScriptServiceBridge.TypeScript.AST @ast, bool @pre)
{
Instance.CallMemberFunction ("emitParensAndCommentsInPlace", @ast != null ? @ast.Instance : null, @pre);
}
[TypeScriptBridge ("emitObjectLiteral")]
public void EmitObjectLiteral (TypeScriptServiceBridge.TypeScript.ASTList @content)
{
Instance.CallMemberFunction ("emitObjectLiteral", @content != null ? @content.Instance : null);
}
[TypeScriptBridge ("emitArrayLiteral")]
public void EmitArrayLiteral (TypeScriptServiceBridge.TypeScript.ASTList @content)
{
Instance.CallMemberFunction ("emitArrayLiteral", @content != null ? @content.Instance : null);
}
[TypeScriptBridge ("emitNew")]
public void EmitNew (TypeScriptServiceBridge.TypeScript.AST @target, TypeScriptServiceBridge.TypeScript.ASTList @args)
{
Instance.CallMemberFunction ("emitNew", @target != null ? @target.Instance : null, @args != null ? @args.Instance : null);
}
[TypeScriptBridge ("tryEmitConstant")]
public bool TryEmitConstant (TypeScriptServiceBridge.TypeScript.BinaryExpression @dotExpr)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("tryEmitConstant", @dotExpr != null ? @dotExpr.Instance : null));
}
[TypeScriptBridge ("emitCall")]
public void EmitCall (TypeScriptServiceBridge.TypeScript.CallExpression @callNode, TypeScriptServiceBridge.TypeScript.AST @target, TypeScriptServiceBridge.TypeScript.ASTList @args)
{
Instance.CallMemberFunction ("emitCall", @callNode != null ? @callNode.Instance : null, @target != null ? @target.Instance : null, @args != null ? @args.Instance : null);
}
[TypeScriptBridge ("defaultValue")]
public string DefaultValue (TypeScriptServiceBridge.TypeScript.Type @type)
{
return TypeConverter.ConvertTo<string> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("defaultValue", @type != null ? @type.Instance : null));
}
[TypeScriptBridge ("emitConstructorCalls")]
public void EmitConstructorCalls (TypeScriptServiceBridge.TypeScript.ASTList @bases, TypeScriptServiceBridge.TypeScript.TypeDeclaration @classDecl)
{
Instance.CallMemberFunction ("emitConstructorCalls", @bases != null ? @bases.Instance : null, @classDecl != null ? @classDecl.Instance : null);
}
[TypeScriptBridge ("emitInnerFunction")]
public void EmitInnerFunction (TypeScriptServiceBridge.TypeScript.FuncDecl @funcDecl, bool @printName, bool @isProtoMember, TypeScriptServiceBridge.TypeScript.ASTList @bases, bool @hasSelfRef, TypeScriptServiceBridge.TypeScript.TypeDeclaration @classDecl, bool @isInterface = false)
{
Instance.CallMemberFunction ("emitInnerFunction", @funcDecl != null ? @funcDecl.Instance : null, @printName, @isProtoMember, @bases != null ? @bases.Instance : null, @hasSelfRef, @classDecl != null ? @classDecl.Instance : null, @isInterface);
}
[TypeScriptBridge ("emitJavascriptModule")]
public void EmitJavascriptModule (TypeScriptServiceBridge.TypeScript.ModuleDeclaration @moduleDecl)
{
Instance.CallMemberFunction ("emitJavascriptModule", @moduleDecl != null ? @moduleDecl.Instance : null);
}
[TypeScriptBridge ("emitIndex")]
public void EmitIndex (TypeScriptServiceBridge.TypeScript.AST @operand1, TypeScriptServiceBridge.TypeScript.AST @operand2)
{
Instance.CallMemberFunction ("emitIndex", @operand1 != null ? @operand1.Instance : null, @operand2 != null ? @operand2.Instance : null);
}
[TypeScriptBridge ("emitStringLiteral")]
public void EmitStringLiteral (string @text)
{
Instance.CallMemberFunction ("emitStringLiteral", @text);
}
[TypeScriptBridge ("emitJavascriptFunction")]
public void EmitJavascriptFunction (TypeScriptServiceBridge.TypeScript.FuncDecl @funcDecl)
{
Instance.CallMemberFunction ("emitJavascriptFunction", @funcDecl != null ? @funcDecl.Instance : null);
}
[TypeScriptBridge ("emitAmbientVarDecl")]
public void EmitAmbientVarDecl (TypeScriptServiceBridge.TypeScript.VarDecl @varDecl)
{
Instance.CallMemberFunction ("emitAmbientVarDecl", @varDecl != null ? @varDecl.Instance : null);
}
[TypeScriptBridge ("emitVarDeclVar")]
public bool EmitVarDeclVar ()
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("emitVarDeclVar"));
}
[TypeScriptBridge ("onEmitVar")]
public void OnEmitVar ()
{
Instance.CallMemberFunction ("onEmitVar");
}
[TypeScriptBridge ("emitJavascriptVarDecl")]
public void EmitJavascriptVarDecl (TypeScriptServiceBridge.TypeScript.VarDecl @varDecl, TypeScriptServiceBridge.TypeScript.TokenID @tokenId)
{
Instance.CallMemberFunction ("emitJavascriptVarDecl", @varDecl != null ? @varDecl.Instance : null, @tokenId);
}
[TypeScriptBridge ("declEnclosed")]
public bool DeclEnclosed (TypeScriptServiceBridge.TypeScript.ModuleDeclaration @moduleDecl)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("declEnclosed", @moduleDecl != null ? @moduleDecl.Instance : null));
}
[TypeScriptBridge ("emitJavascriptName")]
public void EmitJavascriptName (TypeScriptServiceBridge.TypeScript.Identifier @name, bool @addThis)
{
Instance.CallMemberFunction ("emitJavascriptName", @name != null ? @name.Instance : null, @addThis);
}
[TypeScriptBridge ("emitJavascriptStatements")]
public void EmitJavascriptStatements (TypeScriptServiceBridge.TypeScript.AST @stmts, bool @emitEmptyBod, bool @newlineAfterBlock)
{
Instance.CallMemberFunction ("emitJavascriptStatements", @stmts != null ? @stmts.Instance : null, @emitEmptyBod, @newlineAfterBlock);
}
[TypeScriptBridge ("emitBareJavascriptStatements")]
public void EmitBareJavascriptStatements (TypeScriptServiceBridge.TypeScript.AST @stmts, bool @emitClassPropertiesAfterSuperCall)
{
Instance.CallMemberFunction ("emitBareJavascriptStatements", @stmts != null ? @stmts.Instance : null, @emitClassPropertiesAfterSuperCall);
}
[TypeScriptBridge ("recordSourceMappingNameStart")]
public void RecordSourceMappingNameStart (string @name)
{
Instance.CallMemberFunction ("recordSourceMappingNameStart", @name);
}
[TypeScriptBridge ("recordSourceMappingNameEnd")]
public void RecordSourceMappingNameEnd ()
{
Instance.CallMemberFunction ("recordSourceMappingNameEnd");
}
[TypeScriptBridge ("recordSourceMappingStart")]
public void RecordSourceMappingStart (TypeScriptServiceBridge.TypeScript.ASTSpan @ast)
{
Instance.CallMemberFunction ("recordSourceMappingStart", @ast != null ? @ast.Instance : null);
}
[TypeScriptBridge ("recordSourceMappingEnd")]
public void RecordSourceMappingEnd (TypeScriptServiceBridge.TypeScript.ASTSpan @ast)
{
Instance.CallMemberFunction ("recordSourceMappingEnd", @ast != null ? @ast.Instance : null);
}
[TypeScriptBridge ("emitSourceMappings")]
public void EmitSourceMappings ()
{
Instance.CallMemberFunction ("emitSourceMappings");
}
[TypeScriptBridge ("_emitJavascriptList")]
public void _emitJavascriptList (TypeScriptServiceBridge.TypeScript.AST @ast, string @delimiter, TypeScriptServiceBridge.TypeScript.TokenID @tokenId, bool @startLine, bool @onlyStatics, bool @emitClassPropertiesAfterSuperCall, bool @emitPrologue = false, bool @requiresInherit = false, bool @inModule = false)
{
Instance.CallMemberFunction ("_emitJavascriptList", @ast != null ? @ast.Instance : null, @delimiter, @tokenId, @startLine, @onlyStatics, @emitClassPropertiesAfterSuperCall, @emitPrologue, @requiresInherit, @inModule);
}
[TypeScriptBridge ("emitJavascriptList")]
public void EmitJavascriptList (TypeScriptServiceBridge.TypeScript.AST @ast, string @delimiter, TypeScriptServiceBridge.TypeScript.TokenID @tokenId, bool @startLine, bool @onlyStatics, bool @emitClassPropertiesAfterSuperCall, bool @emitPrologue = false, bool @requiresInherit = false, bool @inModule = false, bool @isGlobal = false)
{
Instance.CallMemberFunction ("emitJavascriptList", @ast != null ? @ast.Instance : null, @delimiter, @tokenId, @startLine, @onlyStatics, @emitClassPropertiesAfterSuperCall, @emitPrologue, @requiresInherit, @inModule, @isGlobal);
}
[TypeScriptBridge ("emitJavascript")]
public void EmitJavascript (TypeScriptServiceBridge.TypeScript.AST @ast, TypeScriptServiceBridge.TypeScript.TokenID @tokenId, bool @startLine)
{
Instance.CallMemberFunction ("emitJavascript", @ast != null ? @ast.Instance : null, @tokenId, @startLine);
}
[TypeScriptBridge ("emitPropertyAccessor")]
public void EmitPropertyAccessor (TypeScriptServiceBridge.TypeScript.FuncDecl @funcDecl, string @className, bool @isProto)
{
Instance.CallMemberFunction ("emitPropertyAccessor", @funcDecl != null ? @funcDecl.Instance : null, @className, @isProto);
}
[TypeScriptBridge ("emitCSharpMethodArguments")]
public void EmitCSharpMethodArguments (TypeScriptServiceBridge.TypeScript.FuncDecl @funcDecl)
{
Instance.CallMemberFunction ("emitCSharpMethodArguments", @funcDecl != null ? @funcDecl.Instance : null);
}
[TypeScriptBridge ("emitPrototypeMember")]
public void EmitPrototypeMember (TypeScriptServiceBridge.TypeScript.AST @member, string @className)
{
Instance.CallMemberFunction ("emitPrototypeMember", @member != null ? @member.Instance : null, @className);
}
[TypeScriptBridge ("emitAddBaseMethods")]
public void EmitAddBaseMethods (string @className, TypeScriptServiceBridge.TypeScript.Type @base, TypeScriptServiceBridge.TypeScript.TypeDeclaration @classDecl)
{
Instance.CallMemberFunction ("emitAddBaseMethods", @className, @base != null ? @base.Instance : null, @classDecl != null ? @classDecl.Instance : null);
}
[TypeScriptBridge ("emitJavascriptClass")]
public void EmitJavascriptClass (TypeScriptServiceBridge.TypeScript.ClassDeclaration @classDecl)
{
Instance.CallMemberFunction ("emitJavascriptClass", @classDecl != null ? @classDecl.Instance : null);
}
[TypeScriptBridge ("emitJavascriptInterface")]
public void EmitJavascriptInterface (TypeScriptServiceBridge.TypeScript.InterfaceDeclaration @ifaceDecl)
{
Instance.CallMemberFunction ("emitJavascriptInterface", @ifaceDecl != null ? @ifaceDecl.Instance : null);
}
[TypeScriptBridge ("emitJavascriptClassOrInterface")]
public void EmitJavascriptClassOrInterface (TypeScriptServiceBridge.TypeScript.TypeDeclaration @classDecl, bool @isInterface)
{
Instance.CallMemberFunction ("emitJavascriptClassOrInterface", @classDecl != null ? @classDecl.Instance : null, @isInterface);
}
[TypeScriptBridge ("emitPrologue")]
public void EmitPrologue (bool @reqInherits)
{
Instance.CallMemberFunction ("emitPrologue", @reqInherits);
}
[TypeScriptBridge ("emitSuperReference")]
public void EmitSuperReference ()
{
Instance.CallMemberFunction ("emitSuperReference");
}
[TypeScriptBridge ("emitSuperCall")]
public bool EmitSuperCall (TypeScriptServiceBridge.TypeScript.CallExpression @callEx)
{
return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("emitSuperCall", @callEx != null ? @callEx.Instance : null));
}
}
public interface ILineCol : ITypeScriptObject
{
[TypeScriptBridge ("line")]
double Line { get; set; }
[TypeScriptBridge ("col")]
double Col { get; set; }
[TypeScriptBridge ("get_line")]
double Get_line ();
[TypeScriptBridge ("set_line")]
void Set_line (double @value);
[TypeScriptBridge ("get_col")]
double Get_col ();
[TypeScriptBridge ("set_col")]
void Set_col (double @value);
}
public class ILineCol_Impl : TypeScriptObject, ILineCol
{
public ILineCol_Impl (ObjectInstance instance) : base (instance) {}
[TypeScriptBridge ("line")]
public double Line {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("line")); }
set { Instance.SetPropertyValue ("line", value, true); }
}
[TypeScriptBridge ("col")]
public double Col {
get { return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("col")); }
set { Instance.SetPropertyValue ("col", value, true); }
}
[TypeScriptBridge ("get_line")]
public double Get_line ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_line"));
}
[TypeScriptBridge ("set_line")]
public void Set_line (double @value)
{
Instance.CallMemberFunction ("set_line", @value);
}
[TypeScriptBridge ("get_col")]
public double Get_col ()
{
return TypeConverter.ConvertTo<double> (JurassicTypeHosting.Engine, Instance.CallMemberFunction ("get_col"));
}
[TypeScriptBridge ("set_col")]
public void Set_col (double @value)
{
Instance.CallMemberFunction ("set_col", @value);
}
}
public class ErrorReporter : TypeScriptObject
{
public ErrorReporter (ObjectInstance instance) : base (instance) {}
public ErrorReporter (TypeScriptServiceBridge.ITextWriter @outfile)
: base (CallConstructor ("TypeScript", "ErrorReporter", @outfile != null ? @outfile.Instance : null))
{
}
[TypeScriptBridge ("outfile")]
public TypeScriptServiceBridge.ITextWriter Outfile {
get { return new TypeScriptServiceBridge.ITextWriter_Impl ((ObjectInstance) Instance.GetPropertyValue ("outfile")); }
set { Instance.SetPropertyValue ("outfile", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("parser")]
public TypeScriptServiceBridge.TypeScript.Parser Parser {
get { return new TypeScriptServiceBridge.TypeScript.Parser ((ObjectInstance) Instance.GetPropertyValue ("parser")); }
set { Instance.SetPropertyValue ("parser", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("checker")]
public TypeScriptServiceBridge.TypeScript.TypeChecker Checker {
get { return new TypeScriptServiceBridge.TypeScript.TypeChecker ((ObjectInstance) Instance.GetPropertyValue ("checker")); }
set { Instance.SetPropertyValue ("checker", value != null ? value.Instance : null, true); }
}
[TypeScriptBridge ("lineCol")]
public System.Object LineCol {
get { return TypeConverter.ConvertTo<System.Object> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("lineCol")); }
set { Instance.SetPropertyValue ("lineCol", value, true); }
}
[TypeScriptBridge ("emitAsComments")]
public bool EmitAsComments {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("emitAsComments")); }
set { Instance.SetPropertyValue ("emitAsComments", value, true); }
}
[TypeScriptBridge ("hasErrors")]
public bool HasErrors {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("hasErrors")); }
set { Instance.SetPropertyValue ("hasErrors", value, true); }
}
[TypeScriptBridge ("pushToErrorSink")]
public bool PushToErrorSink {
get { return TypeConverter.ConvertTo<bool> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("pushToErrorSink")); }
set { Instance.SetPropertyValue ("pushToErrorSink", value, true); }
}
[TypeScriptBridge ("errorSink")]
public ArrayInstance ErrorSink {
get { return TypeConverter.ConvertTo<ArrayInstance> (JurassicTypeHosting.Engine, Instance.GetPropertyValue ("errorSink")); }
set { Instance.SetPropertyValue ("errorSink", value, true); }
}
[TypeScriptBridge ("get_outfile")]
public TypeScriptServiceBridge.ITextWriter Get_outfile ()