public OperatorData( string name, string group, string description, IClientData clientData, string typeName, Lexeme lexeme, int operands, TypeList types, OperatorFlags flags, IPlugin plugin, long token ) { this.kind = IdentifierKind.OperatorData; this.id = AttributeOps.GetObjectId(this); this.name = name; this.group = group; this.description = description; this.clientData = clientData; this.typeName = typeName; this.lexeme = lexeme; this.operands = operands; this.types = types; this.flags = flags; this.plugin = plugin; this.token = token; }
/////////////////////////////////////////////////////////////////////// #region Private Constructors private Namespace() { kind = IdentifierKind.Namespace; id = AttributeOps.GetObjectId(this); children = new Dictionary <string, INamespace>(); imports = new ObjectDictionary(); exportNames = new StringDictionary(); }
/////////////////////////////////////////////////////////////////////// #region Public URI Methods public bool MaybeUseDownloadBaseUri( Assembly assembly ) { if (baseUri == null) { baseUri = AttributeOps.GetAssemblyDownloadBaseUri(assembly); if (baseUri != null) { return(true); } } return(false); }
/////////////////////////////////////////////////////////////////////// public static DialogResult ShowMessage( Configuration configuration, Assembly assembly, string message, string category, MessageBoxButtons buttons, MessageBoxIcon icon, DialogResult?dialogResult ) { DialogResult result = (dialogResult != null) ? (DialogResult)dialogResult : DialogResult.OK; Trace(configuration, message, category); if (Configuration.IsPromptOk(configuration, icon, true)) { string title = AttributeOps.GetAssemblyTitle(assembly); if (title == null) { title = Application.ProductName; } result = MessageBox.Show(message, title, buttons, icon); Trace(configuration, String.Format( "User choice of \"{0}\".", result), category); return(result); } Trace(configuration, String.Format( "Default choice of \"{0}\".", result), category); return(result); }
public LambdaData( string name, string group, string description, ProcedureFlags flags, ArgumentList arguments, string body, IScriptLocation location, IClientData clientData, long token ) { this.kind = IdentifierKind.LambdaData; this.id = AttributeOps.GetObjectId(this); this.name = name; this.group = group; this.description = description; this.flags = flags; this.clientData = clientData; this.arguments = arguments; this.body = body; this.location = location; this.token = token; }