コード例 #1
0
        private ParameterEntry CreateParameterEntry(ParameterDescriptionEntry parameter, Compiler.CodeModel.SymbolTable table)
        {
            var generated = new ParameterEntry(parameter, table);

            if (parameter.DataConditions != null)
            {
                foreach (var child in parameter.DataConditions)
                {
                    generated.Add(new DataCondition(child));
                }
            }
            return(generated);
        }
コード例 #2
0
        private ParameterEntry CreateParameterEntry(ParameterDescription parameter, FunctionDeclaration node)
        {
            var paramEntry = parameter.CodeElement as ParameterDescriptionEntry;
            var generated  = new ParameterEntry(paramEntry, node.SymbolTable, parameter);

            if (paramEntry.DataConditions != null)
            {
                foreach (var child in paramEntry.DataConditions)
                {
                    generated.Add(new DataCondition(child));
                }
            }

            var parameterNode = node.Profile.Parameters.FirstOrDefault(x => x.Name == paramEntry.Name);

            if (parameterNode != null)
            {
                generated.CopyFlags(parameterNode.Flags);
            }
            return(generated);
        }