Наследование: Parsed.Object, INamedContent
Пример #1
0
 public void AddExternal(ExternalDeclaration decl)
 {
     if (externals.ContainsKey (decl.name)) {
         Error ("Duplicate EXTERNAL definition of '"+decl.name+"'", decl, false);
     } else {
         externals [decl.name] = decl;
     }
 }
Пример #2
0
 public void AddExternal(ExternalDeclaration decl)
 {
     if (externals.ContainsKey(decl.name))
     {
         Error("Duplicate EXTERNAL definition of '" + decl.name + "'", decl, false);
     }
     else
     {
         externals [decl.name] = decl;
     }
 }
Пример #3
0
        void CheckExternalArgumentValidity(Story context)
        {
            string externalName          = target.firstComponent;
            ExternalDeclaration external = null;
            var found = context.externals.TryGetValue(externalName, out external);

            System.Diagnostics.Debug.Assert(found, "external not found");

            int externalArgCount = external.argumentNames.Count;
            int ownArgCount      = 0;

            if (arguments != null)
            {
                ownArgCount = arguments.Count;
            }

            //if (ownArgCount != externalArgCount) {
            //    Error ("incorrect number of arguments sent to external function '" + externalName + "'. Expected " + externalArgCount + " but got " + ownArgCount);
            //}
        }