RemObjects
                        Software Gears code

C# to Oxygene

Sign in or create your account | Project List | Help

C# to Oxygene Commit Details

Date:2010-02-08 16:03:30 (5 months 22 days ago)
Author:Carlo Kok
Commit:76
Message:37726: Interface shouldn't have visibility specifiers
Files: trunk/RemObjects.Oxygene.CS2Pas/OxygeneVisitor.pas (3 diffs)

Change Details

trunk/RemObjects.Oxygene.CS2Pas/OxygeneVisitor.pas
1717    class var fDefaultTypeMap: Dictionary<string, string> := new Dictionary<String,string>(StringComparer.InvariantCultureIgnoreCase);
1818    var fErrors: Errors := new Errors;
1919    var fNestStack: List<string> := new List<String>;
20    var fType: TypeDeclaration;
2021    var fCurrentVisibility: MemberVisibility;
2122    fUses: List<String> := new List<String>;
2223    fNamespace: String;
...... 
447448      lFullName := fNestStack[i] + '.'+ lFullName;
448449    end;
449450  end;
451  fType := typeDeclaration;
450452  Write(' = ');
451453
452454  // modifiers here
...... 
15001502
15011503method OxygeneOutputVisitor.ChangeVisibility(&mod: Modifiers);
15021504begin
1505  if fType:&Type = ClassType.Interface then exit;
15031506  var lRealModifier: MemberVisibility := MemberVisibility.Private;
15041507  if Modifiers.Public in &mod then lRealModifier := MemberVisibility.Public else
15051508  if Modifiers.Private in &mod then lRealModifier := MemberVisibility.Private else
15061509

Archive Download the corresponding diff file

Revision: 76