Beispiel #1
0
        public void EmitHeader(bool stubbed)
        {
            Formatter.Comment(AssemblyTranslator.GetHeaderText());
            Formatter.NewLine();

            Formatter.WriteRaw("'use strict';");
            Formatter.NewLine();

            if (stubbed)
            {
                Formatter.Comment("Generating type stubs only");
                Formatter.NewLine();
            }

            if (_referenceOverrides != null)
            {
                Formatter.LPar();
                Formatter.OpenFunction(string.Empty, null);
            }

            Formatter.DeclareAssembly();
            Formatter.NewLine();

            if (_referenceOverrides != null)
            {
                Formatter.WriteReferencesOverrides(_referenceOverrides);
            }
        }
Beispiel #2
0
        public void EmitHeader(bool stubbed)
        {
            Formatter.Comment(AssemblyTranslator.GetHeaderText());
            Formatter.NewLine();

            Formatter.WriteRaw("'use strict';");
            Formatter.NewLine();

            if (stubbed)
            {
                Formatter.Comment("Generating type stubs only");
                Formatter.NewLine();
            }

            Formatter.DeclareAssembly();
            Formatter.NewLine();
        }