Пример #1
0
 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
	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
	void WriteConstDoc(CiSymbol parent, CiSymbol child)
	{
		Write("=head2 C<");
		Write(this.Package);
		Write(parent.Name);
		Write("::");
		WriteUppercaseWithUnderscores(child.Name);
		WriteLine("()>");
		WriteLine();
		Write(child.Documentation);
	}