Ejemplo n.º 1
0
        public virtual LangElement Namespace(Span span, QualifiedName?name, Span nameSpan, NamingContext context)
        {
            NamespaceDecl space = new NamespaceDecl(span, name.HasValue ? new QualifiedNameRef(nameSpan, name.Value) : QualifiedNameRef.Invalid, true);

            space.Naming = context;
            return(space);
        }
Ejemplo n.º 2
0
        public virtual LangElement Namespace(Span span, QualifiedName?name, Span nameSpan, LangElement block, NamingContext context)
        {
            Debug.Assert(block != null);
            NamespaceDecl space = new NamespaceDecl(span, name.HasValue ? new QualifiedNameRef(nameSpan, name.Value) : QualifiedNameRef.Invalid, false);

            space.Naming = context;
            space.Body   = (BlockStmt)block;
            return(space);
        }