Exemple #1
0
 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;
 }
Exemple #2
0
        ///////////////////////////////////////////////////////////////////////

        #region Private Constructors
        private Namespace()
        {
            kind        = IdentifierKind.Namespace;
            id          = AttributeOps.GetObjectId(this);
            children    = new Dictionary <string, INamespace>();
            imports     = new ObjectDictionary();
            exportNames = new StringDictionary();
        }
Exemple #3
0
        ///////////////////////////////////////////////////////////////////////

        #region Public URI Methods
        public bool MaybeUseDownloadBaseUri(
            Assembly assembly
            )
        {
            if (baseUri == null)
            {
                baseUri = AttributeOps.GetAssemblyDownloadBaseUri(assembly);

                if (baseUri != null)
                {
                    return(true);
                }
            }

            return(false);
        }
Exemple #4
0
        ///////////////////////////////////////////////////////////////////////

        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);
        }
Exemple #5
0
 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;
 }