private void InitAliasCalls() { var i = new List<RoutineSymbol>(); var g = new PropertySymbol(RoutineSymbol.AliasCallIdentifier, this, false); Block.Append(g); i.Add(g); var s = new PropertySymbol(RoutineSymbol.AliasCallIdentifier, this, true); Block.Append(s); i.Add(s); AliasCalls = i; }
private void InitAliasCalls() { var i = new List<RoutineSymbol>(); var getFlag = false; var serFlag = false; foreach (var e in Block) { var r = e as RoutineSymbol; if (r == null) { continue; } if (r.IsAliasCall) { i.Add(r); //if () //{ // getFlag = true; //} //if () //{ // serFlag = true; //} } } if (!getFlag) { var def = new PropertySymbol(RoutineSymbol.AliasCallIdentifier, this, false); Block.Append(def); i.Add(def); } if (!serFlag) { var def = new PropertySymbol(RoutineSymbol.AliasCallIdentifier, this, true); Block.Append(def); i.Add(def); } AliasCalls = i; }