Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Builtins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed class JSGlobal {
/// Retrieves a name from the global namespace (note that this is the global namespace at the time that the JSIL runtime was loaded).
/// </summary>
/// <param name="name">The name to retrieve. This may be a literal, or a string-producing expression.</param>
public dynamic this[string name] {
public object this[string name] {
get {
return null;
}
Expand All @@ -23,7 +23,7 @@ public sealed class JSLocal {
/// Retrieves a name from the local namespace.
/// </summary>
/// <param name="name">The name to retrieve. This must be a string literal!</param>
public dynamic this[string name] {
public object this[string name] {
get {
return null;
}
Expand Down Expand Up @@ -67,7 +67,7 @@ public static bool IsFalsy (dynamic value) {
/// <summary>
/// When running as javascript, this property evaluates to the current scope's this-reference.
/// </summary>
public static dynamic This {
public static object This {
get {
return null;
}
Expand All @@ -89,7 +89,7 @@ public static class Services {
/// When running as JavaScript this method returns a reference to the named runtime service.
/// </summary>
/// <param name="serviceName">The name of the runtime service.</param>
public static dynamic Get (string serviceName, bool throwIfMissing = true) {
public static object Get (string serviceName, bool throwIfMissing = true) {
if (throwIfMissing)
throw new NotImplementedException("Services.get is only available at runtime and you passed true for throwIfMissing.");
else
Expand Down
164 changes: 10 additions & 154 deletions Verbatim.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class Verbatim {
/// When running as JavaScript, the passed-in script code replaces this method call.
/// </summary>
/// <param name="javascript">The script expression.</param>
public static dynamic Expression (string javascript) {
public static object Expression (string javascript) {
return null;
}

Expand All @@ -25,7 +25,7 @@ public static dynamic Expression (string javascript) {
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="variables">The variables to insert into the expression.</param>
public static dynamic Expression (string javascript, params object[] variables) {
public static object Expression (string javascript, params object[] variables) {
return null;
}

Expand All @@ -36,7 +36,7 @@ public static dynamic Expression (string javascript, params object[] variables)
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
public static dynamic Expression<TArg0>(string javascript, TArg0 arg0)
public static object Expression<TArg0>(string javascript, TArg0 arg0)
{
return null;
}
Expand All @@ -49,7 +49,7 @@ public static dynamic Expression<TArg0>(string javascript, TArg0 arg0)
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
public static dynamic Expression<TArg0, TArg1>(string javascript, TArg0 arg0, TArg1 arg1)
public static object Expression<TArg0, TArg1>(string javascript, TArg0 arg0, TArg1 arg1)
{
return null;
}
Expand All @@ -63,7 +63,7 @@ public static dynamic Expression<TArg0, TArg1>(string javascript, TArg0 arg0, TA
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
public static dynamic Expression<TArg0, TArg1, TArg2>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2)
public static object Expression<TArg0, TArg1, TArg2>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2)
{
return null;
}
Expand All @@ -78,7 +78,7 @@ public static dynamic Expression<TArg0, TArg1, TArg2>(string javascript, TArg0 a
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
public static dynamic Expression<TArg0, TArg1, TArg2, TArg3>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3)
public static object Expression<TArg0, TArg1, TArg2, TArg3>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3)
{
return null;
}
Expand All @@ -94,7 +94,7 @@ public static dynamic Expression<TArg0, TArg1, TArg2, TArg3>(string javascript,
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
/// <param name="arg4">The variables to insert into '$4' placeholder in the expression.</param>
public static dynamic Expression<TArg0, TArg1, TArg2, TArg3, TArg4>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4)
public static object Expression<TArg0, TArg1, TArg2, TArg3, TArg4>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4)
{
return null;
}
Expand All @@ -111,7 +111,7 @@ public static dynamic Expression<TArg0, TArg1, TArg2, TArg3, TArg4>(string javas
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
/// <param name="arg4">The variables to insert into '$4' placeholder in the expression.</param>
/// <param name="arg5">The variables to insert into '$5' placeholder in the expression.</param>
public static dynamic Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5)
public static object Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5)
{
return null;
}
Expand All @@ -129,7 +129,7 @@ public static dynamic Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5>(strin
/// <param name="arg4">The variables to insert into '$4' placeholder in the expression.</param>
/// <param name="arg5">The variables to insert into '$5' placeholder in the expression.</param>
/// <param name="arg6">The variables to insert into '$6' placeholder in the expression.</param>
public static dynamic Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6)
public static object Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6)
{
return null;
}
Expand All @@ -148,153 +148,9 @@ public static dynamic Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6
/// <param name="arg5">The variables to insert into '$5' placeholder in the expression.</param>
/// <param name="arg6">The variables to insert into '$6' placeholder in the expression.</param>
/// <param name="arg7">The variables to insert into '$7' placeholder in the expression.</param>
public static dynamic Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7)
public static object Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7)
{
return null;
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// </summary>
/// <param name="javascript">The script expression.</param>
public static T Expression<T> (string javascript) {
return default(T);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="variables">The variables to insert into the expression.</param>
public static T Expression<T> (string javascript, params object[] variables) {
return default(T);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
public static TResult Expression<TArg0, TResult>(string javascript, TArg0 arg0)
{
return default(TResult);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
public static TResult Expression<TArg0, TArg1, TResult>(string javascript, TArg0 arg0, TArg1 arg1)
{
return default(TResult);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
public static TResult Expression<TArg0, TArg1, TArg2, TResult>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2)
{
return default(TResult);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
public static TResult Expression<TArg0, TArg1, TArg2, TArg3, TResult>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3)
{
return default(TResult);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
/// <param name="arg4">The variables to insert into '$4' placeholder in the expression.</param>
public static TResult Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4)
{
return default(TResult);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
/// <param name="arg4">The variables to insert into '$4' placeholder in the expression.</param>
/// <param name="arg5">The variables to insert into '$5' placeholder in the expression.</param>
public static TResult Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5)
{
return default(TResult);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
/// <param name="arg4">The variables to insert into '$4' placeholder in the expression.</param>
/// <param name="arg5">The variables to insert into '$5' placeholder in the expression.</param>
/// <param name="arg6">The variables to insert into '$6' placeholder in the expression.</param>
public static TResult Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6)
{
return default(TResult);
}

/// <summary>
/// When running as C#, this method does nothing and returns null.
/// When running as JavaScript, the passed-in script code replaces this method call.
/// Variables can be referenced by index. '$0' is the first variable.
/// </summary>
/// <param name="javascript">The script expression.</param>
/// <param name="arg0">The variables to insert into '$0' placeholder in the expression.</param>
/// <param name="arg1">The variables to insert into '$1' placeholder in the expression.</param>
/// <param name="arg2">The variables to insert into '$2' placeholder in the expression.</param>
/// <param name="arg3">The variables to insert into '$3' placeholder in the expression.</param>
/// <param name="arg4">The variables to insert into '$4' placeholder in the expression.</param>
/// <param name="arg5">The variables to insert into '$5' placeholder in the expression.</param>
/// <param name="arg6">The variables to insert into '$6' placeholder in the expression.</param>
/// <param name="arg7">The variables to insert into '$7' placeholder in the expression.</param>
public static TResult Expression<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(string javascript, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7)
{
return default(TResult);
}
}
}