BuildInterfaceTranslationUnit() public static method

public static BuildInterfaceTranslationUnit ( VisibilityToken visibility, string name ) : ITranslationUnit
visibility VisibilityToken
name string
return ITranslationUnit
Example #1
0
        public string RenderSimpleEmptyInterface()
        {
            ITranslationUnit translationUnit = TranslationUnitBuilder.BuildInterfaceTranslationUnit(
                VisibilityToken.Public, "SimpleEmptyInterface");

            return(translationUnit.Translate());
        }
Example #2
0
        public string RenderSimpleEmptyInterface()
        {
            ITranslationUnit translationUnit = TranslationUnitBuilder.BuildInterfaceTranslationUnit(
                ModifierTokens.Public, "SimpleEmptyInterface");

            return(translationUnit.Translate());
        }
Example #3
0
        public string RenderEmptyInterfaceWithOneExtendedInterface()
        {
            var translationUnit = TranslationUnitBuilder.BuildInterfaceTranslationUnit(
                VisibilityToken.Public, "EmptyInterfaceWithOneExtendedInterface")
                                  as InterfaceDeclarationTranslationUnit;

            translationUnit.AddExtendedInterface("Interface1");

            return(translationUnit.Translate());
        }
Example #4
0
        public string RenderInterfaceWithSignatures()
        {
            var translationUnit = TranslationUnitBuilder.BuildInterfaceTranslationUnit(
                VisibilityToken.Public, "ClassWithEmptyMethods")
                                  as InterfaceDeclarationTranslationUnit;

            translationUnit.AddSignature("Method1");
            translationUnit.AddSignature("Method2");
            translationUnit.AddSignature("Method3");

            return(translationUnit.Translate());
        }
Example #5
0
        public string RenderEmptyInterfaceWithManyExtendedInterfaces()
        {
            var translationUnit = TranslationUnitBuilder.BuildInterfaceTranslationUnit(
                ModifierTokens.Public, "EmptyInterfaceWithManyExtendedInterfaces")
                                  as InterfaceDeclarationTranslationUnit;

            translationUnit.AddExtendedInterface("Interface1");
            translationUnit.AddExtendedInterface("Interface2");
            translationUnit.AddExtendedInterface("Interface3");

            return(translationUnit.Translate());
        }