WellFormedNames.SimpleName.SimpleName C# (CSharp) 메소드

SimpleName() 공개 메소드

public SimpleName ( IEnumerable literalList ) : System
literalList IEnumerable
리턴 System
        public SimpleName(IEnumerable<Literal> literalList)
        {
            this.literals = new List<Literal>();
            this.isGrounded = true;

            // used to reset the depth of the first literal to 0
            var delta = literalList.FirstOrDefault().depth;

            foreach (var l in literalList)
            {
                this.literals.Add(new Literal(l.description, l.type, l.depth - delta));
                if (SimpleWFN.IsVariable(l))
                {
                    this.isGrounded = false;
                }
            }
        }

Same methods

SimpleName::SimpleName ( string description ) : System