示例#1
0
文件: GenJava.cs 项目: epi/cito
 void CreateJavaFile(CiSymbol symbol)
 {
     string dir = Path.GetDirectoryName(this.OutputFile);
     CreateFile(Path.Combine(dir, symbol.Name + ".java"));
     if (this.Namespace != null) {
     Write("package ");
     Write(this.Namespace);
     WriteLine(";");
     }
     WriteLine();
     Write(symbol.Documentation);
     Write(symbol.Visibility);
 }
示例#2
0
文件: GenAs.cs 项目: epi/cito
 void WriteVisibility(CiSymbol symbol)
 {
     switch (symbol.Visibility) {
     case CiVisibility.Dead:
     case CiVisibility.Private:
     Write("private ");
     break;
     case CiVisibility.Internal:
     if (symbol.Documentation == null)
         WriteLine("/** @private */");
     Write("internal ");
     break;
     case CiVisibility.Public:
     Write("public ");
     break;
     }
 }
示例#3
0
文件: GenPerl5.cs 项目: epi/cito
	void WritePackage(CiSymbol symbol)
	{
		Write("package ");
		Write(this.Package);
		Write(symbol.Name);
		WriteLine(";");
		WriteLine();
	}
示例#4
0
文件: GenAs.cs 项目: epi/cito
 void CreateAsFile(CiSymbol symbol)
 {
     string dir = Path.GetDirectoryName(this.OutputFile);
     CreateFile(Path.Combine(dir, symbol.Name + ".as"));
     if (this.Namespace != null) {
     Write("package ");
     WriteLine(this.Namespace);
     }
     else
     WriteLine("package");
     OpenBlock();
     WriteLine("import flash.utils.ByteArray;");
     WriteLine();
     Write(symbol.Documentation);
     WriteVisibility(symbol);
 }
示例#5
0
文件: GenPerl5.cs 项目: epi/cito
	void WriteConstDoc(CiSymbol parent, CiSymbol child)
	{
		Write("=head2 C<");
		Write(this.Package);
		Write(parent.Name);
		Write("::");
		WriteUppercaseWithUnderscores(child.Name);
		WriteLine("()>");
		WriteLine();
		Write(child.Documentation);
	}