57 if (type ==
null && typeExpr ==
null)
76 public string Name {
get; }
118 obj = obj.Dereference();
153 ? $
"{Name}{(IsOptional ? "?
" : "")}{(IsNullChecked ? "!
" : "")}{(IsRestArgs ? "*
" : "")}"
154 : $
"{Type.Name} {Name}{(IsOptional ? "?
" : "")}{(IsNullChecked ? "!
" : "")}{(IsRestArgs ? "*
" : "")}";
Base Implementation for all Expressions used inside the Script.
IEnumerable< BadObject > Execute(BadExecutionContext context)
Evaluates the Expression within the current Execution Context.
The Execution Context. Every execution of a script needs a context the script is running in....
Gets thrown by the runtime.
static BadRuntimeException Create(BadScope? scope, string message)
Creates a new BadScriptException.
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Provides function parameter info.
override string ToString()
Returns the string representation of the Function Parameter.
bool IsOptional
Indicates if this parameter is optional.
BadFunctionParameter(string name, bool isOptional, bool isNullChecked, bool isRestArgs)
Creates a new Function Parameter Info.
BadExpression? TypeExpr
The Expression that returns the type of the parameter if evaluated.
BadClassPrototype? Type
The Class Prototype of the Parameter.
bool IsRestArgs
Indicates if this parameter is the rest parameter of the function.
string Name
The Name of the Parameter.
BadFunctionParameter Initialize(BadExecutionContext context)
Initializes the Function Parameter.
BadFunctionParameter(string name, bool isOptional, bool isNullChecked, bool isRestArgs, BadExpression? typeExpr, BadClassPrototype? type=null)
Creates a new Function Parameter Info.
bool IsNullChecked
Indicates if this parameter is null checked by the runtime.
The Any Prototype, Base type for all types.
static readonly BadAnyPrototype Instance
The Instance of the BadAnyPrototype.
Implements a Class Prototype for the BadScript Language.
The Void Prototype, can be assigned to nothing, can not be inherited from, can not be instantiated....
static BadVoidPrototype Instance
The Instance of the BadVoidPrototype.
Contains the Expressions for the BadScript2 Language.
Contains the Error Objects for the BadScript2 Language.
Contains Runtime Function Objects.
Contains Runtime Type Objects.