BuildMemberTranslationUnit() public static method

public static BuildMemberTranslationUnit ( VisibilityToken visibility, string type, string name ) : ITranslationUnit
visibility VisibilityToken
type string
name string
return ITranslationUnit
示例#1
0
        public string StringMember()
        {
            ITranslationUnit translationUnit = TranslationUnitBuilder.BuildMemberTranslationUnit(
                ModifierTokens.None, Lexems.StringType, "stringMember");

            return(translationUnit.Translate());
        }
示例#2
0
        public string IntPrivateMember()
        {
            ITranslationUnit translationUnit = TranslationUnitBuilder.BuildMemberTranslationUnit(
                ModifierTokens.Private, Lexems.NumberType, "intMember");

            return(translationUnit.Translate());
        }
示例#3
0
        public string IntPrivateMember()
        {
            ITranslationUnit translationUnit = TranslationUnitBuilder.BuildMemberTranslationUnit(
                VisibilityToken.Private, "int", "intMember");

            return(translationUnit.Translate());
        }
示例#4
0
        public string StringMember()
        {
            ITranslationUnit translationUnit = TranslationUnitBuilder.BuildMemberTranslationUnit(
                VisibilityToken.None, "string", "stringMember");

            return(translationUnit.Translate());
        }
示例#5
0
        public string StringPublicMember()
        {
            ITranslationUnit translationUnit = TranslationUnitBuilder.BuildMemberTranslationUnit(
                VisibilityToken.Public, Lexems.StringType, "stringMember");

            return(translationUnit.Translate());
        }