diff --git a/src/AXSharp.compiler/src/AXSharp.Cs.Compiler/Helpers/CsHelpers.cs b/src/AXSharp.compiler/src/AXSharp.Cs.Compiler/Helpers/CsHelpers.cs index 20e6a707..a5b1654b 100644 --- a/src/AXSharp.compiler/src/AXSharp.Cs.Compiler/Helpers/CsHelpers.cs +++ b/src/AXSharp.compiler/src/AXSharp.Cs.Compiler/Helpers/CsHelpers.cs @@ -67,6 +67,6 @@ public static string CreateGenericSwapperMethodFromPlainer(string methodName, st /// Fully qualified poco name for given declarations public static string GetFullyQualifiedPocoName(this IDeclaration declaration) { - return declaration.ContainingNamespace.FullyQualifiedName == "$GLOBAL" ? $"global::Pocos.{declaration.Name}" : $"Pocos.{declaration.ContainingNamespace.FullyQualifiedName}.{declaration.Name}"; + return declaration.ContainingNamespace.FullyQualifiedName == "$GLOBAL" ? $"global::Pocos.{declaration.Name}" : $"global::Pocos.{declaration.ContainingNamespace.FullyQualifiedName}.{declaration.Name}"; } } \ No newline at end of file diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/array_declaration.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/array_declaration.g.cs index d306e637..00655324 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/array_declaration.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/array_declaration.g.cs @@ -36,9 +36,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain = new Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); + global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain = new global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); await this.ReadAsync(); plain.primitive = primitive.Select(p => p.LastValue).ToArray(); #pragma warning disable CS0612 @@ -49,9 +49,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain = new Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); + global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain = new global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); plain.primitive = primitive.Select(p => p.LastValue).ToArray(); #pragma warning disable CS0612 plain.complex = complex.Select(async p => await p._OnlineToPlainNoacAsync()).Select(p => p.Result).ToArray(); @@ -61,7 +61,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) { plain.primitive = primitive.Select(p => p.LastValue).ToArray(); #pragma warning disable CS0612 @@ -75,7 +75,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) + public async Task> PlainToOnlineAsync(global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) { var _primitive_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -90,7 +90,7 @@ public async Task> PlainToOnlineAsync(Pocos.ArrayDec [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) { var _primitive_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -107,15 +107,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain = new Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); + global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain = new global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); plain.primitive = primitive.Select(p => p.Shadow).ToArray(); plain.complex = complex.Select(async p => await p.ShadowToPlainAsync()).Select(p => p.Result).ToArray(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) + protected async Task ShadowToPlainAsync(global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) { plain.primitive = primitive.Select(p => p.Shadow).ToArray(); plain.complex = complex.Select(async p => await p.ShadowToPlainAsync()).Select(p => p.Result).ToArray(); @@ -127,7 +127,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) + public async Task> PlainToShadowAsync(global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain) { var _primitive_i_FE8484DAB3 = 0; primitive.Select(p => p.Shadow = plain.primitive[_primitive_i_FE8484DAB3++]).ToArray(); @@ -146,7 +146,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain, Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class plain, global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -175,9 +175,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class CreateEmptyPoco() + public global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class CreateEmptyPoco() { - return new Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); + return new global::Pocos.ArrayDeclarationSimpleNamespace.array_declaration_class(); } private IList Children { get; } = new List(); @@ -278,24 +278,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain = new Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); + global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain = new global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain = new Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); + global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain = new global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) { return plain; } @@ -305,14 +305,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) + public async Task> PlainToOnlineAsync(global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) { } @@ -321,13 +321,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain = new Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); + global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain = new global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) + protected async Task ShadowToPlainAsync(global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) { return plain; } @@ -337,7 +337,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) + public async Task> PlainToShadowAsync(global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain) { return this.RetrievePrimitives(); } @@ -352,7 +352,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain, Pocos.ArrayDeclarationSimpleNamespace.some_complex_type latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type plain, global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -369,9 +369,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ArrayDeclarationSimpleNamespace.some_complex_type CreateEmptyPoco() + public global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type CreateEmptyPoco() { - return new Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); + return new global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_extended_by_known_type.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_extended_by_known_type.g.cs index e845f2dd..d6a63b53 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_extended_by_known_type.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_extended_by_known_type.g.cs @@ -23,9 +23,9 @@ public async override Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public new async Task OnlineToPlainAsync() + public new async Task OnlineToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.State1Transition plain = new Pocos.Simatic.Ax.StateFramework.State1Transition(); + global::Pocos.Simatic.Ax.StateFramework.State1Transition plain = new global::Pocos.Simatic.Ax.StateFramework.State1Transition(); await this.ReadAsync(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -35,9 +35,9 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public new async Task _OnlineToPlainNoacAsync() + public new async Task _OnlineToPlainNoacAsync() { - Pocos.Simatic.Ax.StateFramework.State1Transition plain = new Pocos.Simatic.Ax.StateFramework.State1Transition(); + global::Pocos.Simatic.Ax.StateFramework.State1Transition plain = new global::Pocos.Simatic.Ax.StateFramework.State1Transition(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); #pragma warning restore CS0612 @@ -46,7 +46,7 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Simatic.Ax.StateFramework.State1Transition plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Simatic.Ax.StateFramework.State1Transition plain) { #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -59,7 +59,7 @@ public async override Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Simatic.Ax.StateFramework.State1Transition plain) + public async Task> PlainToOnlineAsync(global::Pocos.Simatic.Ax.StateFramework.State1Transition plain) { await base._PlainToOnlineNoacAsync(plain); return await this.WriteAsync(); @@ -67,7 +67,7 @@ public async Task> PlainToOnlineAsync(Pocos.Simatic. [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Simatic.Ax.StateFramework.State1Transition plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Simatic.Ax.StateFramework.State1Transition plain) { await base._PlainToOnlineNoacAsync(plain); } @@ -77,14 +77,14 @@ public async override Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public new async Task ShadowToPlainAsync() + public new async Task ShadowToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.State1Transition plain = new Pocos.Simatic.Ax.StateFramework.State1Transition(); + global::Pocos.Simatic.Ax.StateFramework.State1Transition plain = new global::Pocos.Simatic.Ax.StateFramework.State1Transition(); await base.ShadowToPlainAsync(plain); return plain; } - protected async Task ShadowToPlainAsync(Pocos.Simatic.Ax.StateFramework.State1Transition plain) + protected async Task ShadowToPlainAsync(global::Pocos.Simatic.Ax.StateFramework.State1Transition plain) { await base.ShadowToPlainAsync(plain); return plain; @@ -95,7 +95,7 @@ public async override Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Simatic.Ax.StateFramework.State1Transition plain) + public async Task> PlainToShadowAsync(global::Pocos.Simatic.Ax.StateFramework.State1Transition plain) { await base.PlainToShadowAsync(plain); return this.RetrievePrimitives(); @@ -111,7 +111,7 @@ public async override Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public new async Task DetectsAnyChangeAsync(Pocos.Simatic.Ax.StateFramework.State1Transition plain, Pocos.Simatic.Ax.StateFramework.State1Transition latest = null) + public new async Task DetectsAnyChangeAsync(global::Pocos.Simatic.Ax.StateFramework.State1Transition plain, global::Pocos.Simatic.Ax.StateFramework.State1Transition latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -130,9 +130,9 @@ public async override Task AnyChangeAsync(T plain) this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public new Pocos.Simatic.Ax.StateFramework.State1Transition CreateEmptyPoco() + public new global::Pocos.Simatic.Ax.StateFramework.State1Transition CreateEmptyPoco() { - return new Pocos.Simatic.Ax.StateFramework.State1Transition(); + return new global::Pocos.Simatic.Ax.StateFramework.State1Transition(); } } } @@ -166,9 +166,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.AbstractState plain = new Pocos.Simatic.Ax.StateFramework.AbstractState(); + global::Pocos.Simatic.Ax.StateFramework.AbstractState plain = new global::Pocos.Simatic.Ax.StateFramework.AbstractState(); await this.ReadAsync(); plain.StateID = StateID.LastValue; plain.StateName = StateName.LastValue; @@ -177,9 +177,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.Simatic.Ax.StateFramework.AbstractState plain = new Pocos.Simatic.Ax.StateFramework.AbstractState(); + global::Pocos.Simatic.Ax.StateFramework.AbstractState plain = new global::Pocos.Simatic.Ax.StateFramework.AbstractState(); plain.StateID = StateID.LastValue; plain.StateName = StateName.LastValue; return plain; @@ -187,7 +187,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Simatic.Ax.StateFramework.AbstractState plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Simatic.Ax.StateFramework.AbstractState plain) { plain.StateID = StateID.LastValue; plain.StateName = StateName.LastValue; @@ -199,7 +199,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Simatic.Ax.StateFramework.AbstractState plain) + public async Task> PlainToOnlineAsync(global::Pocos.Simatic.Ax.StateFramework.AbstractState plain) { #pragma warning disable CS0612 StateID.LethargicWrite(plain.StateID); @@ -212,7 +212,7 @@ public async Task> PlainToOnlineAsync(Pocos.Simatic. [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Simatic.Ax.StateFramework.AbstractState plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Simatic.Ax.StateFramework.AbstractState plain) { #pragma warning disable CS0612 StateID.LethargicWrite(plain.StateID); @@ -227,15 +227,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.AbstractState plain = new Pocos.Simatic.Ax.StateFramework.AbstractState(); + global::Pocos.Simatic.Ax.StateFramework.AbstractState plain = new global::Pocos.Simatic.Ax.StateFramework.AbstractState(); plain.StateID = StateID.Shadow; plain.StateName = StateName.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.Simatic.Ax.StateFramework.AbstractState plain) + protected async Task ShadowToPlainAsync(global::Pocos.Simatic.Ax.StateFramework.AbstractState plain) { plain.StateID = StateID.Shadow; plain.StateName = StateName.Shadow; @@ -247,7 +247,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Simatic.Ax.StateFramework.AbstractState plain) + public async Task> PlainToShadowAsync(global::Pocos.Simatic.Ax.StateFramework.AbstractState plain) { StateID.Shadow = plain.StateID; StateName.Shadow = plain.StateName; @@ -264,7 +264,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.Simatic.Ax.StateFramework.AbstractState plain, Pocos.Simatic.Ax.StateFramework.AbstractState latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.Simatic.Ax.StateFramework.AbstractState plain, global::Pocos.Simatic.Ax.StateFramework.AbstractState latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -285,9 +285,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.Simatic.Ax.StateFramework.AbstractState CreateEmptyPoco() + public global::Pocos.Simatic.Ax.StateFramework.AbstractState CreateEmptyPoco() { - return new Pocos.Simatic.Ax.StateFramework.AbstractState(); + return new global::Pocos.Simatic.Ax.StateFramework.AbstractState(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_generic_extension.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_generic_extension.g.cs index 55bb0214..ec0ba7be 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_generic_extension.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_generic_extension.g.cs @@ -29,24 +29,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.Generics.Extender plain = new Pocos.Generics.Extender(); + global::Pocos.Generics.Extender plain = new global::Pocos.Generics.Extender(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.Generics.Extender plain = new Pocos.Generics.Extender(); + global::Pocos.Generics.Extender plain = new global::Pocos.Generics.Extender(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Generics.Extender plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Generics.Extender plain) { return plain; } @@ -56,14 +56,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Generics.Extender plain) + public async Task> PlainToOnlineAsync(global::Pocos.Generics.Extender plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Generics.Extender plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Generics.Extender plain) { } @@ -72,13 +72,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.Generics.Extender plain = new Pocos.Generics.Extender(); + global::Pocos.Generics.Extender plain = new global::Pocos.Generics.Extender(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.Generics.Extender plain) + protected async Task ShadowToPlainAsync(global::Pocos.Generics.Extender plain) { return plain; } @@ -88,7 +88,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Generics.Extender plain) + public async Task> PlainToShadowAsync(global::Pocos.Generics.Extender plain) { return this.RetrievePrimitives(); } @@ -103,7 +103,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.Generics.Extender plain, Pocos.Generics.Extender latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.Generics.Extender plain, global::Pocos.Generics.Extender latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -120,9 +120,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.Generics.Extender CreateEmptyPoco() + public global::Pocos.Generics.Extender CreateEmptyPoco() { - return new Pocos.Generics.Extender(); + return new global::Pocos.Generics.Extender(); } private IList Children { get; } = new List(); @@ -222,9 +222,9 @@ public async override Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public new async Task OnlineToPlainAsync() + public new async Task OnlineToPlainAsync() { - Pocos.Generics.Extendee plain = new Pocos.Generics.Extendee(); + global::Pocos.Generics.Extendee plain = new global::Pocos.Generics.Extendee(); await this.ReadAsync(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -240,9 +240,9 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public new async Task _OnlineToPlainNoacAsync() + public new async Task _OnlineToPlainNoacAsync() { - Pocos.Generics.Extendee plain = new Pocos.Generics.Extendee(); + global::Pocos.Generics.Extendee plain = new global::Pocos.Generics.Extendee(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); #pragma warning restore CS0612 @@ -257,7 +257,7 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Generics.Extendee plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Generics.Extendee plain) { #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -276,7 +276,7 @@ public async override Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Generics.Extendee plain) + public async Task> PlainToOnlineAsync(global::Pocos.Generics.Extendee plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -290,7 +290,7 @@ public async Task> PlainToOnlineAsync(Pocos.Generics [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Generics.Extendee plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Generics.Extendee plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -306,16 +306,16 @@ public async override Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public new async Task ShadowToPlainAsync() + public new async Task ShadowToPlainAsync() { - Pocos.Generics.Extendee plain = new Pocos.Generics.Extendee(); + global::Pocos.Generics.Extendee plain = new global::Pocos.Generics.Extendee(); await base.ShadowToPlainAsync(plain); plain.SomeType = await SomeType.ShadowToPlainAsync(); plain.SomeTypeAsPoco = await SomeTypeAsPoco.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.Generics.Extendee plain) + protected async Task ShadowToPlainAsync(global::Pocos.Generics.Extendee plain) { await base.ShadowToPlainAsync(plain); plain.SomeType = await SomeType.ShadowToPlainAsync(); @@ -328,7 +328,7 @@ public async override Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Generics.Extendee plain) + public async Task> PlainToShadowAsync(global::Pocos.Generics.Extendee plain) { await base.PlainToShadowAsync(plain); await this.SomeType.PlainToShadowAsync(plain.SomeType); @@ -346,7 +346,7 @@ public async override Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public new async Task DetectsAnyChangeAsync(Pocos.Generics.Extendee plain, Pocos.Generics.Extendee latest = null) + public new async Task DetectsAnyChangeAsync(global::Pocos.Generics.Extendee plain, global::Pocos.Generics.Extendee latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -369,9 +369,9 @@ public async override Task AnyChangeAsync(T plain) this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public new Pocos.Generics.Extendee CreateEmptyPoco() + public new global::Pocos.Generics.Extendee CreateEmptyPoco() { - return new Pocos.Generics.Extendee(); + return new global::Pocos.Generics.Extendee(); } } @@ -394,9 +394,9 @@ public async override Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public new async Task OnlineToPlainAsync() + public new async Task OnlineToPlainAsync() { - Pocos.Generics.Extendee2 plain = new Pocos.Generics.Extendee2(); + global::Pocos.Generics.Extendee2 plain = new global::Pocos.Generics.Extendee2(); await this.ReadAsync(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -409,9 +409,9 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public new async Task _OnlineToPlainNoacAsync() + public new async Task _OnlineToPlainNoacAsync() { - Pocos.Generics.Extendee2 plain = new Pocos.Generics.Extendee2(); + global::Pocos.Generics.Extendee2 plain = new global::Pocos.Generics.Extendee2(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); #pragma warning restore CS0612 @@ -423,7 +423,7 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Generics.Extendee2 plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Generics.Extendee2 plain) { #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -439,7 +439,7 @@ public async override Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Generics.Extendee2 plain) + public async Task> PlainToOnlineAsync(global::Pocos.Generics.Extendee2 plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -450,7 +450,7 @@ public async Task> PlainToOnlineAsync(Pocos.Generics [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Generics.Extendee2 plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Generics.Extendee2 plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -463,15 +463,15 @@ public async override Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public new async Task ShadowToPlainAsync() + public new async Task ShadowToPlainAsync() { - Pocos.Generics.Extendee2 plain = new Pocos.Generics.Extendee2(); + global::Pocos.Generics.Extendee2 plain = new global::Pocos.Generics.Extendee2(); await base.ShadowToPlainAsync(plain); plain.SomeType = await SomeType.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.Generics.Extendee2 plain) + protected async Task ShadowToPlainAsync(global::Pocos.Generics.Extendee2 plain) { await base.ShadowToPlainAsync(plain); plain.SomeType = await SomeType.ShadowToPlainAsync(); @@ -483,7 +483,7 @@ public async override Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Generics.Extendee2 plain) + public async Task> PlainToShadowAsync(global::Pocos.Generics.Extendee2 plain) { await base.PlainToShadowAsync(plain); await this.SomeType.PlainToShadowAsync(plain.SomeType); @@ -500,7 +500,7 @@ public async override Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public new async Task DetectsAnyChangeAsync(Pocos.Generics.Extendee2 plain, Pocos.Generics.Extendee2 latest = null) + public new async Task DetectsAnyChangeAsync(global::Pocos.Generics.Extendee2 plain, global::Pocos.Generics.Extendee2 latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -521,9 +521,9 @@ public async override Task AnyChangeAsync(T plain) this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public new Pocos.Generics.Extendee2 CreateEmptyPoco() + public new global::Pocos.Generics.Extendee2 CreateEmptyPoco() { - return new Pocos.Generics.Extendee2(); + return new global::Pocos.Generics.Extendee2(); } } @@ -549,24 +549,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.Generics.SomeType plain = new Pocos.Generics.SomeType(); + global::Pocos.Generics.SomeType plain = new global::Pocos.Generics.SomeType(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.Generics.SomeType plain = new Pocos.Generics.SomeType(); + global::Pocos.Generics.SomeType plain = new global::Pocos.Generics.SomeType(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Generics.SomeType plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Generics.SomeType plain) { return plain; } @@ -576,14 +576,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Generics.SomeType plain) + public async Task> PlainToOnlineAsync(global::Pocos.Generics.SomeType plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Generics.SomeType plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Generics.SomeType plain) { } @@ -592,13 +592,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.Generics.SomeType plain = new Pocos.Generics.SomeType(); + global::Pocos.Generics.SomeType plain = new global::Pocos.Generics.SomeType(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.Generics.SomeType plain) + protected async Task ShadowToPlainAsync(global::Pocos.Generics.SomeType plain) { return plain; } @@ -608,7 +608,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Generics.SomeType plain) + public async Task> PlainToShadowAsync(global::Pocos.Generics.SomeType plain) { return this.RetrievePrimitives(); } @@ -623,7 +623,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.Generics.SomeType plain, Pocos.Generics.SomeType latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.Generics.SomeType plain, global::Pocos.Generics.SomeType latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -640,9 +640,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.Generics.SomeType CreateEmptyPoco() + public global::Pocos.Generics.SomeType CreateEmptyPoco() { - return new Pocos.Generics.SomeType(); + return new global::Pocos.Generics.SomeType(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_complex_members.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_complex_members.g.cs index 76e48ab7..94925519 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_complex_members.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_complex_members.g.cs @@ -32,9 +32,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain = new Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); + global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain = new global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); await this.ReadAsync(); #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); @@ -44,9 +44,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain = new Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); + global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain = new global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -55,7 +55,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) { #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); @@ -68,7 +68,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) + public async Task> PlainToOnlineAsync(global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) { #pragma warning disable CS0612 await this.myComplexType._PlainToOnlineNoacAsync(plain.myComplexType); @@ -78,7 +78,7 @@ public async Task> PlainToOnlineAsync(Pocos.ClassWit [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) { #pragma warning disable CS0612 await this.myComplexType._PlainToOnlineNoacAsync(plain.myComplexType); @@ -90,14 +90,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain = new Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); + global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain = new global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); plain.myComplexType = await myComplexType.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) + protected async Task ShadowToPlainAsync(global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) { plain.myComplexType = await myComplexType.ShadowToPlainAsync(); return plain; @@ -108,7 +108,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) + public async Task> PlainToShadowAsync(global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain) { await this.myComplexType.PlainToShadowAsync(plain.myComplexType); return this.RetrievePrimitives(); @@ -124,7 +124,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain, Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes plain, global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -143,9 +143,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes CreateEmptyPoco() + public global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes CreateEmptyPoco() { - return new Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); + return new global::Pocos.ClassWithComplexTypesNamespace.ClassWithComplexTypes(); } private IList Children { get; } = new List(); @@ -246,24 +246,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain = new Pocos.ClassWithComplexTypesNamespace.ComplexType1(); + global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain = new global::Pocos.ClassWithComplexTypesNamespace.ComplexType1(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain = new Pocos.ClassWithComplexTypesNamespace.ComplexType1(); + global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain = new global::Pocos.ClassWithComplexTypesNamespace.ComplexType1(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) { return plain; } @@ -273,14 +273,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) + public async Task> PlainToOnlineAsync(global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) { } @@ -289,13 +289,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain = new Pocos.ClassWithComplexTypesNamespace.ComplexType1(); + global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain = new global::Pocos.ClassWithComplexTypesNamespace.ComplexType1(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) + protected async Task ShadowToPlainAsync(global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) { return plain; } @@ -305,7 +305,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) + public async Task> PlainToShadowAsync(global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain) { return this.RetrievePrimitives(); } @@ -320,7 +320,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain, Pocos.ClassWithComplexTypesNamespace.ComplexType1 latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 plain, global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -337,9 +337,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ClassWithComplexTypesNamespace.ComplexType1 CreateEmptyPoco() + public global::Pocos.ClassWithComplexTypesNamespace.ComplexType1 CreateEmptyPoco() { - return new Pocos.ClassWithComplexTypesNamespace.ComplexType1(); + return new global::Pocos.ClassWithComplexTypesNamespace.ComplexType1(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_non_public_members.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_non_public_members.g.cs index 4d85005e..37458149 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_non_public_members.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_non_public_members.g.cs @@ -32,9 +32,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain = new Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); + global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain = new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); await this.ReadAsync(); #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); @@ -44,9 +44,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain = new Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); + global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain = new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -55,7 +55,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) { #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); @@ -68,7 +68,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) + public async Task> PlainToOnlineAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) { #pragma warning disable CS0612 await this.myComplexType._PlainToOnlineNoacAsync(plain.myComplexType); @@ -78,7 +78,7 @@ public async Task> PlainToOnlineAsync(Pocos.ClassWit [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) { #pragma warning disable CS0612 await this.myComplexType._PlainToOnlineNoacAsync(plain.myComplexType); @@ -90,14 +90,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain = new Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); + global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain = new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); plain.myComplexType = await myComplexType.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) + protected async Task ShadowToPlainAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) { plain.myComplexType = await myComplexType.ShadowToPlainAsync(); return plain; @@ -108,7 +108,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) + public async Task> PlainToShadowAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain) { await this.myComplexType.PlainToShadowAsync(plain.myComplexType); return this.RetrievePrimitives(); @@ -124,7 +124,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain, Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers plain, global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -143,9 +143,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers CreateEmptyPoco() + public global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers CreateEmptyPoco() { - return new Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); + return new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ClassWithNonTraspilableMembers(); } private IList Children { get; } = new List(); @@ -246,24 +246,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain = new Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); + global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain = new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain = new Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); + global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain = new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) { return plain; } @@ -273,14 +273,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) + public async Task> PlainToOnlineAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) { } @@ -289,13 +289,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain = new Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); + global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain = new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) + protected async Task ShadowToPlainAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) { return plain; } @@ -305,7 +305,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) + public async Task> PlainToShadowAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain) { return this.RetrievePrimitives(); } @@ -320,7 +320,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain, Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 plain, global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -337,9 +337,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 CreateEmptyPoco() + public global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1 CreateEmptyPoco() { - return new Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); + return new global::Pocos.ClassWithNonTraspilableMemberssNamespace.ComplexType1(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_pragmas.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_pragmas.g.cs index a9e3b21e..ce988fa7 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_pragmas.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_pragmas.g.cs @@ -34,9 +34,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain = new Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); + global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain = new global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); await this.ReadAsync(); #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); @@ -46,9 +46,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain = new Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); + global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain = new global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -57,7 +57,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) { #pragma warning disable CS0612 plain.myComplexType = await myComplexType._OnlineToPlainNoacAsync(); @@ -70,7 +70,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) + public async Task> PlainToOnlineAsync(global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) { #pragma warning disable CS0612 await this.myComplexType._PlainToOnlineNoacAsync(plain.myComplexType); @@ -80,7 +80,7 @@ public async Task> PlainToOnlineAsync(Pocos.ClassWit [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) { #pragma warning disable CS0612 await this.myComplexType._PlainToOnlineNoacAsync(plain.myComplexType); @@ -92,14 +92,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain = new Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); + global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain = new global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); plain.myComplexType = await myComplexType.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) + protected async Task ShadowToPlainAsync(global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) { plain.myComplexType = await myComplexType.ShadowToPlainAsync(); return plain; @@ -110,7 +110,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) + public async Task> PlainToShadowAsync(global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain) { await this.myComplexType.PlainToShadowAsync(plain.myComplexType); return this.RetrievePrimitives(); @@ -126,7 +126,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain, Pocos.ClassWithPragmasNamespace.ClassWithPragmas latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas plain, global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -145,9 +145,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ClassWithPragmasNamespace.ClassWithPragmas CreateEmptyPoco() + public global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas CreateEmptyPoco() { - return new Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); + return new global::Pocos.ClassWithPragmasNamespace.ClassWithPragmas(); } private IList Children { get; } = new List(); @@ -248,24 +248,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ClassWithPragmasNamespace.ComplexType1 plain = new Pocos.ClassWithPragmasNamespace.ComplexType1(); + global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain = new global::Pocos.ClassWithPragmasNamespace.ComplexType1(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ClassWithPragmasNamespace.ComplexType1 plain = new Pocos.ClassWithPragmasNamespace.ComplexType1(); + global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain = new global::Pocos.ClassWithPragmasNamespace.ComplexType1(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ClassWithPragmasNamespace.ComplexType1 plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain) { return plain; } @@ -275,14 +275,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ClassWithPragmasNamespace.ComplexType1 plain) + public async Task> PlainToOnlineAsync(global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ClassWithPragmasNamespace.ComplexType1 plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain) { } @@ -291,13 +291,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ClassWithPragmasNamespace.ComplexType1 plain = new Pocos.ClassWithPragmasNamespace.ComplexType1(); + global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain = new global::Pocos.ClassWithPragmasNamespace.ComplexType1(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ClassWithPragmasNamespace.ComplexType1 plain) + protected async Task ShadowToPlainAsync(global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain) { return plain; } @@ -307,7 +307,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ClassWithPragmasNamespace.ComplexType1 plain) + public async Task> PlainToShadowAsync(global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain) { return this.RetrievePrimitives(); } @@ -322,7 +322,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ClassWithPragmasNamespace.ComplexType1 plain, Pocos.ClassWithPragmasNamespace.ComplexType1 latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ClassWithPragmasNamespace.ComplexType1 plain, global::Pocos.ClassWithPragmasNamespace.ComplexType1 latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -339,9 +339,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ClassWithPragmasNamespace.ComplexType1 CreateEmptyPoco() + public global::Pocos.ClassWithPragmasNamespace.ComplexType1 CreateEmptyPoco() { - return new Pocos.ClassWithPragmasNamespace.ComplexType1(); + return new global::Pocos.ClassWithPragmasNamespace.ComplexType1(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_primitive_members.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_primitive_members.g.cs index a976712b..ddbb9d53 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_primitive_members.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/class_with_primitive_members.g.cs @@ -84,9 +84,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain = new Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); + global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain = new global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); await this.ReadAsync(); plain.myBOOL = myBOOL.LastValue; plain.myBYTE = myBYTE.LastValue; @@ -120,9 +120,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain = new Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); + global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain = new global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); plain.myBOOL = myBOOL.LastValue; plain.myBYTE = myBYTE.LastValue; plain.myWORD = myWORD.LastValue; @@ -155,7 +155,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) { plain.myBOOL = myBOOL.LastValue; plain.myBYTE = myBYTE.LastValue; @@ -192,7 +192,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) + public async Task> PlainToOnlineAsync(global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) { #pragma warning disable CS0612 myBOOL.LethargicWrite(plain.myBOOL); @@ -280,7 +280,7 @@ public async Task> PlainToOnlineAsync(Pocos.ClassWit [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) { #pragma warning disable CS0612 myBOOL.LethargicWrite(plain.myBOOL); @@ -370,9 +370,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain = new Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); + global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain = new global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); plain.myBOOL = myBOOL.Shadow; plain.myBYTE = myBYTE.Shadow; plain.myWORD = myWORD.Shadow; @@ -403,7 +403,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) + protected async Task ShadowToPlainAsync(global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) { plain.myBOOL = myBOOL.Shadow; plain.myBYTE = myBYTE.Shadow; @@ -440,7 +440,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) + public async Task> PlainToShadowAsync(global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain) { myBOOL.Shadow = plain.myBOOL; myBYTE.Shadow = plain.myBYTE; @@ -482,7 +482,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain, Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes plain, global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -553,9 +553,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes CreateEmptyPoco() + public global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes CreateEmptyPoco() { - return new Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); + return new global::Pocos.ClassWithPrimitiveTypesNamespace.ClassWithPrimitiveTypes(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/compileromitsattribute.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/compileromitsattribute.g.cs index b2aa4e2f..da7c3a82 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/compileromitsattribute.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/compileromitsattribute.g.cs @@ -36,9 +36,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.CompilerOmmits.ClassWithArrays plain = new Pocos.CompilerOmmits.ClassWithArrays(); + global::Pocos.CompilerOmmits.ClassWithArrays plain = new global::Pocos.CompilerOmmits.ClassWithArrays(); await this.ReadAsync(); plain._primitive = _primitive.Select(p => p.LastValue).ToArray(); return plain; @@ -46,16 +46,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.CompilerOmmits.ClassWithArrays plain = new Pocos.CompilerOmmits.ClassWithArrays(); + global::Pocos.CompilerOmmits.ClassWithArrays plain = new global::Pocos.CompilerOmmits.ClassWithArrays(); plain._primitive = _primitive.Select(p => p.LastValue).ToArray(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.CompilerOmmits.ClassWithArrays plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.CompilerOmmits.ClassWithArrays plain) { plain._primitive = _primitive.Select(p => p.LastValue).ToArray(); return plain; @@ -66,7 +66,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.CompilerOmmits.ClassWithArrays plain) + public async Task> PlainToOnlineAsync(global::Pocos.CompilerOmmits.ClassWithArrays plain) { var __primitive_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -77,7 +77,7 @@ public async Task> PlainToOnlineAsync(Pocos.Compiler [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.CompilerOmmits.ClassWithArrays plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.CompilerOmmits.ClassWithArrays plain) { var __primitive_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -90,14 +90,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.CompilerOmmits.ClassWithArrays plain = new Pocos.CompilerOmmits.ClassWithArrays(); + global::Pocos.CompilerOmmits.ClassWithArrays plain = new global::Pocos.CompilerOmmits.ClassWithArrays(); plain._primitive = _primitive.Select(p => p.Shadow).ToArray(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.CompilerOmmits.ClassWithArrays plain) + protected async Task ShadowToPlainAsync(global::Pocos.CompilerOmmits.ClassWithArrays plain) { plain._primitive = _primitive.Select(p => p.Shadow).ToArray(); return plain; @@ -108,7 +108,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.CompilerOmmits.ClassWithArrays plain) + public async Task> PlainToShadowAsync(global::Pocos.CompilerOmmits.ClassWithArrays plain) { var __primitive_i_FE8484DAB3 = 0; _primitive.Select(p => p.Shadow = plain._primitive[__primitive_i_FE8484DAB3++]).ToArray(); @@ -125,7 +125,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.CompilerOmmits.ClassWithArrays plain, Pocos.CompilerOmmits.ClassWithArrays latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.CompilerOmmits.ClassWithArrays plain, global::Pocos.CompilerOmmits.ClassWithArrays latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -148,9 +148,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.CompilerOmmits.ClassWithArrays CreateEmptyPoco() + public global::Pocos.CompilerOmmits.ClassWithArrays CreateEmptyPoco() { - return new Pocos.CompilerOmmits.ClassWithArrays(); + return new global::Pocos.CompilerOmmits.ClassWithArrays(); } private IList Children { get; } = new List(); @@ -256,9 +256,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.CompilerOmmits.Complex plain = new Pocos.CompilerOmmits.Complex(); + global::Pocos.CompilerOmmits.Complex plain = new global::Pocos.CompilerOmmits.Complex(); await this.ReadAsync(); plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; @@ -267,9 +267,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.CompilerOmmits.Complex plain = new Pocos.CompilerOmmits.Complex(); + global::Pocos.CompilerOmmits.Complex plain = new global::Pocos.CompilerOmmits.Complex(); plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; return plain; @@ -277,7 +277,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.CompilerOmmits.Complex plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.CompilerOmmits.Complex plain) { plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; @@ -289,7 +289,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.CompilerOmmits.Complex plain) + public async Task> PlainToOnlineAsync(global::Pocos.CompilerOmmits.Complex plain) { #pragma warning disable CS0612 HelloString.LethargicWrite(plain.HelloString); @@ -302,7 +302,7 @@ public async Task> PlainToOnlineAsync(Pocos.Compiler [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.CompilerOmmits.Complex plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.CompilerOmmits.Complex plain) { #pragma warning disable CS0612 HelloString.LethargicWrite(plain.HelloString); @@ -317,15 +317,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.CompilerOmmits.Complex plain = new Pocos.CompilerOmmits.Complex(); + global::Pocos.CompilerOmmits.Complex plain = new global::Pocos.CompilerOmmits.Complex(); plain.HelloString = HelloString.Shadow; plain.Id = Id.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.CompilerOmmits.Complex plain) + protected async Task ShadowToPlainAsync(global::Pocos.CompilerOmmits.Complex plain) { plain.HelloString = HelloString.Shadow; plain.Id = Id.Shadow; @@ -337,7 +337,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.CompilerOmmits.Complex plain) + public async Task> PlainToShadowAsync(global::Pocos.CompilerOmmits.Complex plain) { HelloString.Shadow = plain.HelloString; Id.Shadow = plain.Id; @@ -354,7 +354,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.CompilerOmmits.Complex plain, Pocos.CompilerOmmits.Complex latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.CompilerOmmits.Complex plain, global::Pocos.CompilerOmmits.Complex latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -375,9 +375,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.CompilerOmmits.Complex CreateEmptyPoco() + public global::Pocos.CompilerOmmits.Complex CreateEmptyPoco() { - return new Pocos.CompilerOmmits.Complex(); + return new global::Pocos.CompilerOmmits.Complex(); } private IList Children { get; } = new List(); @@ -489,9 +489,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.Enums.ClassWithEnums plain = new Pocos.Enums.ClassWithEnums(); + global::Pocos.Enums.ClassWithEnums plain = new global::Pocos.Enums.ClassWithEnums(); await this.ReadAsync(); plain.colors = (Enums.Colors)colors.LastValue; plain.NamedValuesColors = NamedValuesColors.LastValue; @@ -500,9 +500,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.Enums.ClassWithEnums plain = new Pocos.Enums.ClassWithEnums(); + global::Pocos.Enums.ClassWithEnums plain = new global::Pocos.Enums.ClassWithEnums(); plain.colors = (Enums.Colors)colors.LastValue; plain.NamedValuesColors = NamedValuesColors.LastValue; return plain; @@ -510,7 +510,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Enums.ClassWithEnums plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Enums.ClassWithEnums plain) { plain.colors = (Enums.Colors)colors.LastValue; plain.NamedValuesColors = NamedValuesColors.LastValue; @@ -522,7 +522,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Enums.ClassWithEnums plain) + public async Task> PlainToOnlineAsync(global::Pocos.Enums.ClassWithEnums plain) { #pragma warning disable CS0612 colors.LethargicWrite((short)plain.colors); @@ -535,7 +535,7 @@ public async Task> PlainToOnlineAsync(Pocos.Enums.Cl [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Enums.ClassWithEnums plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Enums.ClassWithEnums plain) { #pragma warning disable CS0612 colors.LethargicWrite((short)plain.colors); @@ -550,15 +550,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.Enums.ClassWithEnums plain = new Pocos.Enums.ClassWithEnums(); + global::Pocos.Enums.ClassWithEnums plain = new global::Pocos.Enums.ClassWithEnums(); plain.colors = (Enums.Colors)colors.Shadow; plain.NamedValuesColors = NamedValuesColors.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.Enums.ClassWithEnums plain) + protected async Task ShadowToPlainAsync(global::Pocos.Enums.ClassWithEnums plain) { plain.colors = (Enums.Colors)colors.Shadow; plain.NamedValuesColors = NamedValuesColors.Shadow; @@ -570,7 +570,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Enums.ClassWithEnums plain) + public async Task> PlainToShadowAsync(global::Pocos.Enums.ClassWithEnums plain) { colors.Shadow = (short)plain.colors; NamedValuesColors.Shadow = plain.NamedValuesColors; @@ -587,7 +587,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.Enums.ClassWithEnums plain, Pocos.Enums.ClassWithEnums latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.Enums.ClassWithEnums plain, global::Pocos.Enums.ClassWithEnums latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -608,9 +608,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.Enums.ClassWithEnums CreateEmptyPoco() + public global::Pocos.Enums.ClassWithEnums CreateEmptyPoco() { - return new Pocos.Enums.ClassWithEnums(); + return new global::Pocos.Enums.ClassWithEnums(); } private IList Children { get; } = new List(); @@ -733,9 +733,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.VariousMembers plain = new Pocos.misc.VariousMembers(); + global::Pocos.misc.VariousMembers plain = new global::Pocos.misc.VariousMembers(); await this.ReadAsync(); #pragma warning disable CS0612 plain._SomeClass = await _SomeClass._OnlineToPlainNoacAsync(); @@ -748,9 +748,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.VariousMembers plain = new Pocos.misc.VariousMembers(); + global::Pocos.misc.VariousMembers plain = new global::Pocos.misc.VariousMembers(); #pragma warning disable CS0612 plain._SomeClass = await _SomeClass._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -762,7 +762,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.misc.VariousMembers plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.misc.VariousMembers plain) { #pragma warning disable CS0612 plain._SomeClass = await _SomeClass._OnlineToPlainNoacAsync(); @@ -778,7 +778,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.VariousMembers plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.VariousMembers plain) { #pragma warning disable CS0612 await this._SomeClass._PlainToOnlineNoacAsync(plain._SomeClass); @@ -791,7 +791,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Var [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.VariousMembers plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.VariousMembers plain) { #pragma warning disable CS0612 await this._SomeClass._PlainToOnlineNoacAsync(plain._SomeClass); @@ -806,15 +806,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.VariousMembers plain = new Pocos.misc.VariousMembers(); + global::Pocos.misc.VariousMembers plain = new global::Pocos.misc.VariousMembers(); plain._SomeClass = await _SomeClass.ShadowToPlainAsync(); plain._Motor = await _Motor.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.VariousMembers plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.VariousMembers plain) { plain._SomeClass = await _SomeClass.ShadowToPlainAsync(); plain._Motor = await _Motor.ShadowToPlainAsync(); @@ -826,7 +826,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.VariousMembers plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.VariousMembers plain) { await this._SomeClass.PlainToShadowAsync(plain._SomeClass); await this._Motor.PlainToShadowAsync(plain._Motor); @@ -843,7 +843,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.VariousMembers plain, Pocos.misc.VariousMembers latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.VariousMembers plain, global::Pocos.misc.VariousMembers latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -864,9 +864,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.VariousMembers CreateEmptyPoco() + public global::Pocos.misc.VariousMembers CreateEmptyPoco() { - return new Pocos.misc.VariousMembers(); + return new global::Pocos.misc.VariousMembers(); } private IList Children { get; } = new List(); @@ -970,9 +970,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.SomeClass plain = new Pocos.misc.SomeClass(); + global::Pocos.misc.SomeClass plain = new global::Pocos.misc.SomeClass(); await this.ReadAsync(); plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; @@ -980,16 +980,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.SomeClass plain = new Pocos.misc.SomeClass(); + global::Pocos.misc.SomeClass plain = new global::Pocos.misc.SomeClass(); plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.misc.SomeClass plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.misc.SomeClass plain) { plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; @@ -1000,7 +1000,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.SomeClass plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.SomeClass plain) { #pragma warning disable CS0612 SomeClassVariable.LethargicWrite(plain.SomeClassVariable); @@ -1010,7 +1010,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Som [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.SomeClass plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.SomeClass plain) { #pragma warning disable CS0612 SomeClassVariable.LethargicWrite(plain.SomeClassVariable); @@ -1022,14 +1022,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.SomeClass plain = new Pocos.misc.SomeClass(); + global::Pocos.misc.SomeClass plain = new global::Pocos.misc.SomeClass(); plain.SomeClassVariable = SomeClassVariable.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.SomeClass plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.SomeClass plain) { plain.SomeClassVariable = SomeClassVariable.Shadow; return plain; @@ -1040,7 +1040,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.SomeClass plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.SomeClass plain) { SomeClassVariable.Shadow = plain.SomeClassVariable; return this.RetrievePrimitives(); @@ -1056,7 +1056,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.SomeClass plain, Pocos.misc.SomeClass latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.SomeClass plain, global::Pocos.misc.SomeClass latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -1075,9 +1075,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.SomeClass CreateEmptyPoco() + public global::Pocos.misc.SomeClass CreateEmptyPoco() { - return new Pocos.misc.SomeClass(); + return new global::Pocos.misc.SomeClass(); } private IList Children { get; } = new List(); @@ -1181,9 +1181,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.Motor plain = new Pocos.misc.Motor(); + global::Pocos.misc.Motor plain = new global::Pocos.misc.Motor(); await this.ReadAsync(); plain.isRunning = isRunning.LastValue; return plain; @@ -1191,14 +1191,14 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.Motor plain = new Pocos.misc.Motor(); + global::Pocos.misc.Motor plain = new global::Pocos.misc.Motor(); plain.isRunning = isRunning.LastValue; return plain; } - protected async Task OnlineToPlainAsync(Pocos.misc.Motor plain) + protected async Task OnlineToPlainAsync(global::Pocos.misc.Motor plain) { plain.isRunning = isRunning.LastValue; return plain; @@ -1209,7 +1209,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.Motor plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.Motor plain) { #pragma warning disable CS0612 isRunning.LethargicWrite(plain.isRunning); @@ -1219,7 +1219,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Mot [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.Motor plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.Motor plain) { #pragma warning disable CS0612 isRunning.LethargicWrite(plain.isRunning); @@ -1231,14 +1231,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.Motor plain = new Pocos.misc.Motor(); + global::Pocos.misc.Motor plain = new global::Pocos.misc.Motor(); plain.isRunning = isRunning.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.Motor plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.Motor plain) { plain.isRunning = isRunning.Shadow; return plain; @@ -1249,7 +1249,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.Motor plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.Motor plain) { isRunning.Shadow = plain.isRunning; return this.RetrievePrimitives(); @@ -1265,7 +1265,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.Motor plain, Pocos.misc.Motor latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.Motor plain, global::Pocos.misc.Motor latest = null) { var somethingChanged = false; if (latest == null) @@ -1284,9 +1284,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.Motor CreateEmptyPoco() + public global::Pocos.misc.Motor CreateEmptyPoco() { - return new Pocos.misc.Motor(); + return new global::Pocos.misc.Motor(); } private IList Children { get; } = new List(); @@ -1392,9 +1392,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.Vehicle plain = new Pocos.misc.Vehicle(); + global::Pocos.misc.Vehicle plain = new global::Pocos.misc.Vehicle(); await this.ReadAsync(); #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); @@ -1405,9 +1405,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.Vehicle plain = new Pocos.misc.Vehicle(); + global::Pocos.misc.Vehicle plain = new global::Pocos.misc.Vehicle(); #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -1415,7 +1415,7 @@ public async virtual Task OnlineToPlain() return plain; } - protected async Task OnlineToPlainAsync(Pocos.misc.Vehicle plain) + protected async Task OnlineToPlainAsync(global::Pocos.misc.Vehicle plain) { #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); @@ -1429,7 +1429,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.Vehicle plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.Vehicle plain) { #pragma warning disable CS0612 await this.m._PlainToOnlineNoacAsync(plain.m); @@ -1442,7 +1442,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Veh [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.Vehicle plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.Vehicle plain) { #pragma warning disable CS0612 await this.m._PlainToOnlineNoacAsync(plain.m); @@ -1457,15 +1457,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.Vehicle plain = new Pocos.misc.Vehicle(); + global::Pocos.misc.Vehicle plain = new global::Pocos.misc.Vehicle(); plain.m = await m.ShadowToPlainAsync(); plain.displacement = displacement.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.Vehicle plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.Vehicle plain) { plain.m = await m.ShadowToPlainAsync(); plain.displacement = displacement.Shadow; @@ -1477,7 +1477,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.Vehicle plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.Vehicle plain) { await this.m.PlainToShadowAsync(plain.m); displacement.Shadow = plain.displacement; @@ -1494,7 +1494,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.Vehicle plain, Pocos.misc.Vehicle latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.Vehicle plain, global::Pocos.misc.Vehicle latest = null) { var somethingChanged = false; if (latest == null) @@ -1515,9 +1515,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.Vehicle CreateEmptyPoco() + public global::Pocos.misc.Vehicle CreateEmptyPoco() { - return new Pocos.misc.Vehicle(); + return new global::Pocos.misc.Vehicle(); } private IList Children { get; } = new List(); @@ -1628,9 +1628,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); await this.ReadAsync(); #pragma warning disable CS0612 plain._complexKnown = _complexKnown.Select(async p => await p._OnlineToPlainNoacAsync()).Select(p => p.Result).ToArray(); @@ -1641,9 +1641,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); #pragma warning disable CS0612 plain._complexKnown = _complexKnown.Select(async p => await p._OnlineToPlainNoacAsync()).Select(p => p.Result).ToArray(); #pragma warning restore CS0612 @@ -1653,7 +1653,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { #pragma warning disable CS0612 plain._complexKnown = _complexKnown.Select(async p => await p._OnlineToPlainNoacAsync()).Select(p => p.Result).ToArray(); @@ -1667,7 +1667,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + public async Task> PlainToOnlineAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { var __complexKnown_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -1682,7 +1682,7 @@ public async Task> PlainToOnlineAsync(Pocos.UnknownA [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { var __complexKnown_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -1699,15 +1699,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); plain._complexKnown = _complexKnown.Select(async p => await p.ShadowToPlainAsync()).Select(p => p.Result).ToArray(); plain._primitive = _primitive.Select(p => p.Shadow).ToArray(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + protected async Task ShadowToPlainAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { plain._complexKnown = _complexKnown.Select(async p => await p.ShadowToPlainAsync()).Select(p => p.Result).ToArray(); plain._primitive = _primitive.Select(p => p.Shadow).ToArray(); @@ -1719,7 +1719,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + public async Task> PlainToShadowAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { var __complexKnown_i_FE8484DAB3 = 0; _complexKnown.Select(p => p.PlainToShadowAsync(plain._complexKnown[__complexKnown_i_FE8484DAB3++])).ToArray(); @@ -1738,7 +1738,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain, Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain, global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -1767,9 +1767,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays CreateEmptyPoco() + public global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays CreateEmptyPoco() { - return new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + return new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); } private IList Children { get; } = new List(); @@ -1875,9 +1875,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); await this.ReadAsync(); plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; @@ -1886,9 +1886,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; return plain; @@ -1896,7 +1896,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; @@ -1908,7 +1908,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + public async Task> PlainToOnlineAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { #pragma warning disable CS0612 HelloString.LethargicWrite(plain.HelloString); @@ -1921,7 +1921,7 @@ public async Task> PlainToOnlineAsync(Pocos.UnknownA [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { #pragma warning disable CS0612 HelloString.LethargicWrite(plain.HelloString); @@ -1936,15 +1936,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); plain.HelloString = HelloString.Shadow; plain.Id = Id.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + protected async Task ShadowToPlainAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { plain.HelloString = HelloString.Shadow; plain.Id = Id.Shadow; @@ -1956,7 +1956,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + public async Task> PlainToShadowAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { HelloString.Shadow = plain.HelloString; Id.Shadow = plain.Id; @@ -1973,7 +1973,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain, Pocos.UnknownArraysShouldNotBeTraspiled.Complex latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain, global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -1994,9 +1994,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.UnknownArraysShouldNotBeTraspiled.Complex CreateEmptyPoco() + public global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex CreateEmptyPoco() { - return new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + return new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/file_with_usings.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/file_with_usings.g.cs index 1534cf3d..7cb31ff4 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/file_with_usings.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/file_with_usings.g.cs @@ -32,24 +32,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain = new Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); + global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain = new global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain = new Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); + global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain = new global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) { return plain; } @@ -59,14 +59,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) + public async Task> PlainToOnlineAsync(global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) { } @@ -75,13 +75,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain = new Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); + global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain = new global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) + protected async Task ShadowToPlainAsync(global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) { return plain; } @@ -91,7 +91,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) + public async Task> PlainToShadowAsync(global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain) { return this.RetrievePrimitives(); } @@ -106,7 +106,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain, Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello plain, global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -123,9 +123,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello CreateEmptyPoco() + public global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello CreateEmptyPoco() { - return new Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); + return new global::Pocos.FileWithUsingsSimpleFirstLevelNamespace.Hello(); } private IList Children { get; } = new List(); @@ -229,24 +229,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain = new Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); + global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain = new global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain = new Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); + global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain = new global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) { return plain; } @@ -256,14 +256,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) + public async Task> PlainToOnlineAsync(global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) { } @@ -272,13 +272,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain = new Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); + global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain = new global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) + protected async Task ShadowToPlainAsync(global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) { return plain; } @@ -288,7 +288,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) + public async Task> PlainToShadowAsync(global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain) { return this.RetrievePrimitives(); } @@ -303,7 +303,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain, Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello plain, global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -320,9 +320,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello CreateEmptyPoco() + public global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello CreateEmptyPoco() { - return new Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); + return new global::Pocos.FileWithUsingsSimpleQualifiedNamespace.Qualified.Hello(); } private IList Children { get; } = new List(); @@ -428,24 +428,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain = new Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); + global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain = new global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain = new Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); + global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain = new global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) { return plain; } @@ -455,14 +455,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) + public async Task> PlainToOnlineAsync(global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) { } @@ -471,13 +471,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain = new Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); + global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain = new global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) + protected async Task ShadowToPlainAsync(global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) { return plain; } @@ -487,7 +487,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) + public async Task> PlainToShadowAsync(global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain) { return this.RetrievePrimitives(); } @@ -502,7 +502,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain, Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello plain, global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -519,9 +519,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello CreateEmptyPoco() + public global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello CreateEmptyPoco() { - return new Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); + return new global::Pocos.FileWithUsingsHelloLevelOne.FileWithUsingsHelloLevelTwo.Hello(); } private IList Children { get; } = new List(); @@ -626,24 +626,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.ExampleNamespace.Hello plain = new Pocos.ExampleNamespace.Hello(); + global::Pocos.ExampleNamespace.Hello plain = new global::Pocos.ExampleNamespace.Hello(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.ExampleNamespace.Hello plain = new Pocos.ExampleNamespace.Hello(); + global::Pocos.ExampleNamespace.Hello plain = new global::Pocos.ExampleNamespace.Hello(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.ExampleNamespace.Hello plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.ExampleNamespace.Hello plain) { return plain; } @@ -653,14 +653,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.ExampleNamespace.Hello plain) + public async Task> PlainToOnlineAsync(global::Pocos.ExampleNamespace.Hello plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.ExampleNamespace.Hello plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.ExampleNamespace.Hello plain) { } @@ -669,13 +669,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.ExampleNamespace.Hello plain = new Pocos.ExampleNamespace.Hello(); + global::Pocos.ExampleNamespace.Hello plain = new global::Pocos.ExampleNamespace.Hello(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.ExampleNamespace.Hello plain) + protected async Task ShadowToPlainAsync(global::Pocos.ExampleNamespace.Hello plain) { return plain; } @@ -685,7 +685,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.ExampleNamespace.Hello plain) + public async Task> PlainToShadowAsync(global::Pocos.ExampleNamespace.Hello plain) { return this.RetrievePrimitives(); } @@ -700,7 +700,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.ExampleNamespace.Hello plain, Pocos.ExampleNamespace.Hello latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.ExampleNamespace.Hello plain, global::Pocos.ExampleNamespace.Hello latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -717,9 +717,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.ExampleNamespace.Hello CreateEmptyPoco() + public global::Pocos.ExampleNamespace.Hello CreateEmptyPoco() { - return new Pocos.ExampleNamespace.Hello(); + return new global::Pocos.ExampleNamespace.Hello(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/generics.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/generics.g.cs index 5a04dfd7..13720b7f 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/generics.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/generics.g.cs @@ -29,24 +29,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.GenericsTests.Extender plain = new Pocos.GenericsTests.Extender(); + global::Pocos.GenericsTests.Extender plain = new global::Pocos.GenericsTests.Extender(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.GenericsTests.Extender plain = new Pocos.GenericsTests.Extender(); + global::Pocos.GenericsTests.Extender plain = new global::Pocos.GenericsTests.Extender(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.GenericsTests.Extender plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.GenericsTests.Extender plain) { return plain; } @@ -56,14 +56,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.GenericsTests.Extender plain) + public async Task> PlainToOnlineAsync(global::Pocos.GenericsTests.Extender plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.GenericsTests.Extender plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.GenericsTests.Extender plain) { } @@ -72,13 +72,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.GenericsTests.Extender plain = new Pocos.GenericsTests.Extender(); + global::Pocos.GenericsTests.Extender plain = new global::Pocos.GenericsTests.Extender(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.GenericsTests.Extender plain) + protected async Task ShadowToPlainAsync(global::Pocos.GenericsTests.Extender plain) { return plain; } @@ -88,7 +88,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.GenericsTests.Extender plain) + public async Task> PlainToShadowAsync(global::Pocos.GenericsTests.Extender plain) { return this.RetrievePrimitives(); } @@ -103,7 +103,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.GenericsTests.Extender plain, Pocos.GenericsTests.Extender latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.GenericsTests.Extender plain, global::Pocos.GenericsTests.Extender latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -120,9 +120,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.GenericsTests.Extender CreateEmptyPoco() + public global::Pocos.GenericsTests.Extender CreateEmptyPoco() { - return new Pocos.GenericsTests.Extender(); + return new global::Pocos.GenericsTests.Extender(); } private IList Children { get; } = new List(); @@ -228,9 +228,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.GenericsTests.SomeTypeToBeGeneric plain = new Pocos.GenericsTests.SomeTypeToBeGeneric(); + global::Pocos.GenericsTests.SomeTypeToBeGeneric plain = new global::Pocos.GenericsTests.SomeTypeToBeGeneric(); await this.ReadAsync(); plain.Boolean = Boolean.LastValue; plain.Cele = Cele.LastValue; @@ -239,9 +239,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.GenericsTests.SomeTypeToBeGeneric plain = new Pocos.GenericsTests.SomeTypeToBeGeneric(); + global::Pocos.GenericsTests.SomeTypeToBeGeneric plain = new global::Pocos.GenericsTests.SomeTypeToBeGeneric(); plain.Boolean = Boolean.LastValue; plain.Cele = Cele.LastValue; return plain; @@ -249,7 +249,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.GenericsTests.SomeTypeToBeGeneric plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.GenericsTests.SomeTypeToBeGeneric plain) { plain.Boolean = Boolean.LastValue; plain.Cele = Cele.LastValue; @@ -261,7 +261,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.GenericsTests.SomeTypeToBeGeneric plain) + public async Task> PlainToOnlineAsync(global::Pocos.GenericsTests.SomeTypeToBeGeneric plain) { #pragma warning disable CS0612 Boolean.LethargicWrite(plain.Boolean); @@ -274,7 +274,7 @@ public async Task> PlainToOnlineAsync(Pocos.Generics [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.GenericsTests.SomeTypeToBeGeneric plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.GenericsTests.SomeTypeToBeGeneric plain) { #pragma warning disable CS0612 Boolean.LethargicWrite(plain.Boolean); @@ -289,15 +289,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.GenericsTests.SomeTypeToBeGeneric plain = new Pocos.GenericsTests.SomeTypeToBeGeneric(); + global::Pocos.GenericsTests.SomeTypeToBeGeneric plain = new global::Pocos.GenericsTests.SomeTypeToBeGeneric(); plain.Boolean = Boolean.Shadow; plain.Cele = Cele.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.GenericsTests.SomeTypeToBeGeneric plain) + protected async Task ShadowToPlainAsync(global::Pocos.GenericsTests.SomeTypeToBeGeneric plain) { plain.Boolean = Boolean.Shadow; plain.Cele = Cele.Shadow; @@ -309,7 +309,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.GenericsTests.SomeTypeToBeGeneric plain) + public async Task> PlainToShadowAsync(global::Pocos.GenericsTests.SomeTypeToBeGeneric plain) { Boolean.Shadow = plain.Boolean; Cele.Shadow = plain.Cele; @@ -326,7 +326,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.GenericsTests.SomeTypeToBeGeneric plain, Pocos.GenericsTests.SomeTypeToBeGeneric latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.GenericsTests.SomeTypeToBeGeneric plain, global::Pocos.GenericsTests.SomeTypeToBeGeneric latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -347,9 +347,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.GenericsTests.SomeTypeToBeGeneric CreateEmptyPoco() + public global::Pocos.GenericsTests.SomeTypeToBeGeneric CreateEmptyPoco() { - return new Pocos.GenericsTests.SomeTypeToBeGeneric(); + return new global::Pocos.GenericsTests.SomeTypeToBeGeneric(); } private IList Children { get; } = new List(); @@ -450,9 +450,9 @@ public async override Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public new async Task OnlineToPlainAsync() + public new async Task OnlineToPlainAsync() { - Pocos.GenericsTests.Extendee2 plain = new Pocos.GenericsTests.Extendee2(); + global::Pocos.GenericsTests.Extendee2 plain = new global::Pocos.GenericsTests.Extendee2(); await this.ReadAsync(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -465,9 +465,9 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public new async Task _OnlineToPlainNoacAsync() + public new async Task _OnlineToPlainNoacAsync() { - Pocos.GenericsTests.Extendee2 plain = new Pocos.GenericsTests.Extendee2(); + global::Pocos.GenericsTests.Extendee2 plain = new global::Pocos.GenericsTests.Extendee2(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); #pragma warning restore CS0612 @@ -479,7 +479,7 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.GenericsTests.Extendee2 plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.GenericsTests.Extendee2 plain) { #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -495,7 +495,7 @@ public async override Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.GenericsTests.Extendee2 plain) + public async Task> PlainToOnlineAsync(global::Pocos.GenericsTests.Extendee2 plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -506,7 +506,7 @@ public async Task> PlainToOnlineAsync(Pocos.Generics [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.GenericsTests.Extendee2 plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.GenericsTests.Extendee2 plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -519,15 +519,15 @@ public async override Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public new async Task ShadowToPlainAsync() + public new async Task ShadowToPlainAsync() { - Pocos.GenericsTests.Extendee2 plain = new Pocos.GenericsTests.Extendee2(); + global::Pocos.GenericsTests.Extendee2 plain = new global::Pocos.GenericsTests.Extendee2(); await base.ShadowToPlainAsync(plain); plain.SomeData = await SomeData.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.GenericsTests.Extendee2 plain) + protected async Task ShadowToPlainAsync(global::Pocos.GenericsTests.Extendee2 plain) { await base.ShadowToPlainAsync(plain); plain.SomeData = await SomeData.ShadowToPlainAsync(); @@ -539,7 +539,7 @@ public async override Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.GenericsTests.Extendee2 plain) + public async Task> PlainToShadowAsync(global::Pocos.GenericsTests.Extendee2 plain) { await base.PlainToShadowAsync(plain); await this.SomeData.PlainToShadowAsync(plain.SomeData); @@ -556,7 +556,7 @@ public async override Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public new async Task DetectsAnyChangeAsync(Pocos.GenericsTests.Extendee2 plain, Pocos.GenericsTests.Extendee2 latest = null) + public new async Task DetectsAnyChangeAsync(global::Pocos.GenericsTests.Extendee2 plain, global::Pocos.GenericsTests.Extendee2 latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -577,9 +577,9 @@ public async override Task AnyChangeAsync(T plain) this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public new Pocos.GenericsTests.Extendee2 CreateEmptyPoco() + public new global::Pocos.GenericsTests.Extendee2 CreateEmptyPoco() { - return new Pocos.GenericsTests.Extendee2(); + return new global::Pocos.GenericsTests.Extendee2(); } } } \ No newline at end of file diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonce.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonce.g.cs index 15462893..893901e6 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonce.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonce.g.cs @@ -43,9 +43,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.makereadonce.MembersWithMakeReadOnce plain = new Pocos.makereadonce.MembersWithMakeReadOnce(); + global::Pocos.makereadonce.MembersWithMakeReadOnce plain = new global::Pocos.makereadonce.MembersWithMakeReadOnce(); await this.ReadAsync(); plain.makeReadOnceMember = makeReadOnceMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -60,9 +60,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.makereadonce.MembersWithMakeReadOnce plain = new Pocos.makereadonce.MembersWithMakeReadOnce(); + global::Pocos.makereadonce.MembersWithMakeReadOnce plain = new global::Pocos.makereadonce.MembersWithMakeReadOnce(); plain.makeReadOnceMember = makeReadOnceMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; #pragma warning disable CS0612 @@ -76,7 +76,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.makereadonce.MembersWithMakeReadOnce plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.makereadonce.MembersWithMakeReadOnce plain) { plain.makeReadOnceMember = makeReadOnceMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -94,7 +94,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.makereadonce.MembersWithMakeReadOnce plain) + public async Task> PlainToOnlineAsync(global::Pocos.makereadonce.MembersWithMakeReadOnce plain) { #pragma warning disable CS0612 makeReadOnceMember.LethargicWrite(plain.makeReadOnceMember); @@ -113,7 +113,7 @@ public async Task> PlainToOnlineAsync(Pocos.makeread [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.makereadonce.MembersWithMakeReadOnce plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.makereadonce.MembersWithMakeReadOnce plain) { #pragma warning disable CS0612 makeReadOnceMember.LethargicWrite(plain.makeReadOnceMember); @@ -134,9 +134,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.makereadonce.MembersWithMakeReadOnce plain = new Pocos.makereadonce.MembersWithMakeReadOnce(); + global::Pocos.makereadonce.MembersWithMakeReadOnce plain = new global::Pocos.makereadonce.MembersWithMakeReadOnce(); plain.makeReadOnceMember = makeReadOnceMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; plain.makeReadComplexMember = await makeReadComplexMember.ShadowToPlainAsync(); @@ -144,7 +144,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.makereadonce.MembersWithMakeReadOnce plain) + protected async Task ShadowToPlainAsync(global::Pocos.makereadonce.MembersWithMakeReadOnce plain) { plain.makeReadOnceMember = makeReadOnceMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; @@ -158,7 +158,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.makereadonce.MembersWithMakeReadOnce plain) + public async Task> PlainToShadowAsync(global::Pocos.makereadonce.MembersWithMakeReadOnce plain) { makeReadOnceMember.Shadow = plain.makeReadOnceMember; someOtherMember.Shadow = plain.someOtherMember; @@ -177,7 +177,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.makereadonce.MembersWithMakeReadOnce plain, Pocos.makereadonce.MembersWithMakeReadOnce latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.makereadonce.MembersWithMakeReadOnce plain, global::Pocos.makereadonce.MembersWithMakeReadOnce latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -202,9 +202,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.makereadonce.MembersWithMakeReadOnce CreateEmptyPoco() + public global::Pocos.makereadonce.MembersWithMakeReadOnce CreateEmptyPoco() { - return new Pocos.makereadonce.MembersWithMakeReadOnce(); + return new global::Pocos.makereadonce.MembersWithMakeReadOnce(); } private IList Children { get; } = new List(); @@ -310,9 +310,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.makereadonce.ComplexMember plain = new Pocos.makereadonce.ComplexMember(); + global::Pocos.makereadonce.ComplexMember plain = new global::Pocos.makereadonce.ComplexMember(); await this.ReadAsync(); plain.someMember = someMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -321,9 +321,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.makereadonce.ComplexMember plain = new Pocos.makereadonce.ComplexMember(); + global::Pocos.makereadonce.ComplexMember plain = new global::Pocos.makereadonce.ComplexMember(); plain.someMember = someMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; return plain; @@ -331,7 +331,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.makereadonce.ComplexMember plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.makereadonce.ComplexMember plain) { plain.someMember = someMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -343,7 +343,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.makereadonce.ComplexMember plain) + public async Task> PlainToOnlineAsync(global::Pocos.makereadonce.ComplexMember plain) { #pragma warning disable CS0612 someMember.LethargicWrite(plain.someMember); @@ -356,7 +356,7 @@ public async Task> PlainToOnlineAsync(Pocos.makeread [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.makereadonce.ComplexMember plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.makereadonce.ComplexMember plain) { #pragma warning disable CS0612 someMember.LethargicWrite(plain.someMember); @@ -371,15 +371,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.makereadonce.ComplexMember plain = new Pocos.makereadonce.ComplexMember(); + global::Pocos.makereadonce.ComplexMember plain = new global::Pocos.makereadonce.ComplexMember(); plain.someMember = someMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.makereadonce.ComplexMember plain) + protected async Task ShadowToPlainAsync(global::Pocos.makereadonce.ComplexMember plain) { plain.someMember = someMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; @@ -391,7 +391,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.makereadonce.ComplexMember plain) + public async Task> PlainToShadowAsync(global::Pocos.makereadonce.ComplexMember plain) { someMember.Shadow = plain.someMember; someOtherMember.Shadow = plain.someOtherMember; @@ -408,7 +408,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.makereadonce.ComplexMember plain, Pocos.makereadonce.ComplexMember latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.makereadonce.ComplexMember plain, global::Pocos.makereadonce.ComplexMember latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -429,9 +429,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.makereadonce.ComplexMember CreateEmptyPoco() + public global::Pocos.makereadonce.ComplexMember CreateEmptyPoco() { - return new Pocos.makereadonce.ComplexMember(); + return new global::Pocos.makereadonce.ComplexMember(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonly.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonly.g.cs index 64522694..13438aa7 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonly.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/makereadonly.g.cs @@ -43,9 +43,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.makereadonly.MembersWithMakeReadOnly plain = new Pocos.makereadonly.MembersWithMakeReadOnly(); + global::Pocos.makereadonly.MembersWithMakeReadOnly plain = new global::Pocos.makereadonly.MembersWithMakeReadOnly(); await this.ReadAsync(); plain.makeReadOnceMember = makeReadOnceMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -60,9 +60,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.makereadonly.MembersWithMakeReadOnly plain = new Pocos.makereadonly.MembersWithMakeReadOnly(); + global::Pocos.makereadonly.MembersWithMakeReadOnly plain = new global::Pocos.makereadonly.MembersWithMakeReadOnly(); plain.makeReadOnceMember = makeReadOnceMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; #pragma warning disable CS0612 @@ -76,7 +76,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.makereadonly.MembersWithMakeReadOnly plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.makereadonly.MembersWithMakeReadOnly plain) { plain.makeReadOnceMember = makeReadOnceMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -94,7 +94,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.makereadonly.MembersWithMakeReadOnly plain) + public async Task> PlainToOnlineAsync(global::Pocos.makereadonly.MembersWithMakeReadOnly plain) { #pragma warning disable CS0612 makeReadOnceMember.LethargicWrite(plain.makeReadOnceMember); @@ -113,7 +113,7 @@ public async Task> PlainToOnlineAsync(Pocos.makeread [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.makereadonly.MembersWithMakeReadOnly plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.makereadonly.MembersWithMakeReadOnly plain) { #pragma warning disable CS0612 makeReadOnceMember.LethargicWrite(plain.makeReadOnceMember); @@ -134,9 +134,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.makereadonly.MembersWithMakeReadOnly plain = new Pocos.makereadonly.MembersWithMakeReadOnly(); + global::Pocos.makereadonly.MembersWithMakeReadOnly plain = new global::Pocos.makereadonly.MembersWithMakeReadOnly(); plain.makeReadOnceMember = makeReadOnceMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; plain.makeReadComplexMember = await makeReadComplexMember.ShadowToPlainAsync(); @@ -144,7 +144,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.makereadonly.MembersWithMakeReadOnly plain) + protected async Task ShadowToPlainAsync(global::Pocos.makereadonly.MembersWithMakeReadOnly plain) { plain.makeReadOnceMember = makeReadOnceMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; @@ -158,7 +158,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.makereadonly.MembersWithMakeReadOnly plain) + public async Task> PlainToShadowAsync(global::Pocos.makereadonly.MembersWithMakeReadOnly plain) { makeReadOnceMember.Shadow = plain.makeReadOnceMember; someOtherMember.Shadow = plain.someOtherMember; @@ -177,7 +177,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.makereadonly.MembersWithMakeReadOnly plain, Pocos.makereadonly.MembersWithMakeReadOnly latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.makereadonly.MembersWithMakeReadOnly plain, global::Pocos.makereadonly.MembersWithMakeReadOnly latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -202,9 +202,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.makereadonly.MembersWithMakeReadOnly CreateEmptyPoco() + public global::Pocos.makereadonly.MembersWithMakeReadOnly CreateEmptyPoco() { - return new Pocos.makereadonly.MembersWithMakeReadOnly(); + return new global::Pocos.makereadonly.MembersWithMakeReadOnly(); } private IList Children { get; } = new List(); @@ -310,9 +310,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.makereadonly.ComplexMember plain = new Pocos.makereadonly.ComplexMember(); + global::Pocos.makereadonly.ComplexMember plain = new global::Pocos.makereadonly.ComplexMember(); await this.ReadAsync(); plain.someMember = someMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -321,9 +321,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.makereadonly.ComplexMember plain = new Pocos.makereadonly.ComplexMember(); + global::Pocos.makereadonly.ComplexMember plain = new global::Pocos.makereadonly.ComplexMember(); plain.someMember = someMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; return plain; @@ -331,7 +331,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.makereadonly.ComplexMember plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.makereadonly.ComplexMember plain) { plain.someMember = someMember.LastValue; plain.someOtherMember = someOtherMember.LastValue; @@ -343,7 +343,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.makereadonly.ComplexMember plain) + public async Task> PlainToOnlineAsync(global::Pocos.makereadonly.ComplexMember plain) { #pragma warning disable CS0612 someMember.LethargicWrite(plain.someMember); @@ -356,7 +356,7 @@ public async Task> PlainToOnlineAsync(Pocos.makeread [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.makereadonly.ComplexMember plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.makereadonly.ComplexMember plain) { #pragma warning disable CS0612 someMember.LethargicWrite(plain.someMember); @@ -371,15 +371,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.makereadonly.ComplexMember plain = new Pocos.makereadonly.ComplexMember(); + global::Pocos.makereadonly.ComplexMember plain = new global::Pocos.makereadonly.ComplexMember(); plain.someMember = someMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.makereadonly.ComplexMember plain) + protected async Task ShadowToPlainAsync(global::Pocos.makereadonly.ComplexMember plain) { plain.someMember = someMember.Shadow; plain.someOtherMember = someOtherMember.Shadow; @@ -391,7 +391,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.makereadonly.ComplexMember plain) + public async Task> PlainToShadowAsync(global::Pocos.makereadonly.ComplexMember plain) { someMember.Shadow = plain.someMember; someOtherMember.Shadow = plain.someOtherMember; @@ -408,7 +408,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.makereadonly.ComplexMember plain, Pocos.makereadonly.ComplexMember latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.makereadonly.ComplexMember plain, global::Pocos.makereadonly.ComplexMember latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -429,9 +429,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.makereadonly.ComplexMember CreateEmptyPoco() + public global::Pocos.makereadonly.ComplexMember CreateEmptyPoco() { - return new Pocos.makereadonly.ComplexMember(); + return new global::Pocos.makereadonly.ComplexMember(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/misc.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/misc.g.cs index 19c825a5..bec932e8 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/misc.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/misc.g.cs @@ -37,9 +37,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.Enums.ClassWithEnums plain = new Pocos.Enums.ClassWithEnums(); + global::Pocos.Enums.ClassWithEnums plain = new global::Pocos.Enums.ClassWithEnums(); await this.ReadAsync(); plain.colors = (Enums.Colors)colors.LastValue; plain.NamedValuesColors = NamedValuesColors.LastValue; @@ -48,9 +48,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.Enums.ClassWithEnums plain = new Pocos.Enums.ClassWithEnums(); + global::Pocos.Enums.ClassWithEnums plain = new global::Pocos.Enums.ClassWithEnums(); plain.colors = (Enums.Colors)colors.LastValue; plain.NamedValuesColors = NamedValuesColors.LastValue; return plain; @@ -58,7 +58,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Enums.ClassWithEnums plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Enums.ClassWithEnums plain) { plain.colors = (Enums.Colors)colors.LastValue; plain.NamedValuesColors = NamedValuesColors.LastValue; @@ -70,7 +70,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Enums.ClassWithEnums plain) + public async Task> PlainToOnlineAsync(global::Pocos.Enums.ClassWithEnums plain) { #pragma warning disable CS0612 colors.LethargicWrite((short)plain.colors); @@ -83,7 +83,7 @@ public async Task> PlainToOnlineAsync(Pocos.Enums.Cl [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Enums.ClassWithEnums plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Enums.ClassWithEnums plain) { #pragma warning disable CS0612 colors.LethargicWrite((short)plain.colors); @@ -98,15 +98,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.Enums.ClassWithEnums plain = new Pocos.Enums.ClassWithEnums(); + global::Pocos.Enums.ClassWithEnums plain = new global::Pocos.Enums.ClassWithEnums(); plain.colors = (Enums.Colors)colors.Shadow; plain.NamedValuesColors = NamedValuesColors.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.Enums.ClassWithEnums plain) + protected async Task ShadowToPlainAsync(global::Pocos.Enums.ClassWithEnums plain) { plain.colors = (Enums.Colors)colors.Shadow; plain.NamedValuesColors = NamedValuesColors.Shadow; @@ -118,7 +118,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Enums.ClassWithEnums plain) + public async Task> PlainToShadowAsync(global::Pocos.Enums.ClassWithEnums plain) { colors.Shadow = (short)plain.colors; NamedValuesColors.Shadow = plain.NamedValuesColors; @@ -135,7 +135,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.Enums.ClassWithEnums plain, Pocos.Enums.ClassWithEnums latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.Enums.ClassWithEnums plain, global::Pocos.Enums.ClassWithEnums latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -156,9 +156,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.Enums.ClassWithEnums CreateEmptyPoco() + public global::Pocos.Enums.ClassWithEnums CreateEmptyPoco() { - return new Pocos.Enums.ClassWithEnums(); + return new global::Pocos.Enums.ClassWithEnums(); } private IList Children { get; } = new List(); @@ -281,9 +281,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.VariousMembers plain = new Pocos.misc.VariousMembers(); + global::Pocos.misc.VariousMembers plain = new global::Pocos.misc.VariousMembers(); await this.ReadAsync(); #pragma warning disable CS0612 plain._SomeClass = await _SomeClass._OnlineToPlainNoacAsync(); @@ -296,9 +296,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.VariousMembers plain = new Pocos.misc.VariousMembers(); + global::Pocos.misc.VariousMembers plain = new global::Pocos.misc.VariousMembers(); #pragma warning disable CS0612 plain._SomeClass = await _SomeClass._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -310,7 +310,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.misc.VariousMembers plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.misc.VariousMembers plain) { #pragma warning disable CS0612 plain._SomeClass = await _SomeClass._OnlineToPlainNoacAsync(); @@ -326,7 +326,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.VariousMembers plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.VariousMembers plain) { #pragma warning disable CS0612 await this._SomeClass._PlainToOnlineNoacAsync(plain._SomeClass); @@ -339,7 +339,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Var [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.VariousMembers plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.VariousMembers plain) { #pragma warning disable CS0612 await this._SomeClass._PlainToOnlineNoacAsync(plain._SomeClass); @@ -354,15 +354,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.VariousMembers plain = new Pocos.misc.VariousMembers(); + global::Pocos.misc.VariousMembers plain = new global::Pocos.misc.VariousMembers(); plain._SomeClass = await _SomeClass.ShadowToPlainAsync(); plain._Motor = await _Motor.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.VariousMembers plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.VariousMembers plain) { plain._SomeClass = await _SomeClass.ShadowToPlainAsync(); plain._Motor = await _Motor.ShadowToPlainAsync(); @@ -374,7 +374,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.VariousMembers plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.VariousMembers plain) { await this._SomeClass.PlainToShadowAsync(plain._SomeClass); await this._Motor.PlainToShadowAsync(plain._Motor); @@ -391,7 +391,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.VariousMembers plain, Pocos.misc.VariousMembers latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.VariousMembers plain, global::Pocos.misc.VariousMembers latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -412,9 +412,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.VariousMembers CreateEmptyPoco() + public global::Pocos.misc.VariousMembers CreateEmptyPoco() { - return new Pocos.misc.VariousMembers(); + return new global::Pocos.misc.VariousMembers(); } private IList Children { get; } = new List(); @@ -518,9 +518,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.SomeClass plain = new Pocos.misc.SomeClass(); + global::Pocos.misc.SomeClass plain = new global::Pocos.misc.SomeClass(); await this.ReadAsync(); plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; @@ -528,16 +528,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.SomeClass plain = new Pocos.misc.SomeClass(); + global::Pocos.misc.SomeClass plain = new global::Pocos.misc.SomeClass(); plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.misc.SomeClass plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.misc.SomeClass plain) { plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; @@ -548,7 +548,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.SomeClass plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.SomeClass plain) { #pragma warning disable CS0612 SomeClassVariable.LethargicWrite(plain.SomeClassVariable); @@ -558,7 +558,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Som [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.SomeClass plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.SomeClass plain) { #pragma warning disable CS0612 SomeClassVariable.LethargicWrite(plain.SomeClassVariable); @@ -570,14 +570,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.SomeClass plain = new Pocos.misc.SomeClass(); + global::Pocos.misc.SomeClass plain = new global::Pocos.misc.SomeClass(); plain.SomeClassVariable = SomeClassVariable.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.SomeClass plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.SomeClass plain) { plain.SomeClassVariable = SomeClassVariable.Shadow; return plain; @@ -588,7 +588,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.SomeClass plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.SomeClass plain) { SomeClassVariable.Shadow = plain.SomeClassVariable; return this.RetrievePrimitives(); @@ -604,7 +604,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.SomeClass plain, Pocos.misc.SomeClass latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.SomeClass plain, global::Pocos.misc.SomeClass latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -623,9 +623,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.SomeClass CreateEmptyPoco() + public global::Pocos.misc.SomeClass CreateEmptyPoco() { - return new Pocos.misc.SomeClass(); + return new global::Pocos.misc.SomeClass(); } private IList Children { get; } = new List(); @@ -729,9 +729,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.Motor plain = new Pocos.misc.Motor(); + global::Pocos.misc.Motor plain = new global::Pocos.misc.Motor(); await this.ReadAsync(); plain.isRunning = isRunning.LastValue; return plain; @@ -739,14 +739,14 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.Motor plain = new Pocos.misc.Motor(); + global::Pocos.misc.Motor plain = new global::Pocos.misc.Motor(); plain.isRunning = isRunning.LastValue; return plain; } - protected async Task OnlineToPlainAsync(Pocos.misc.Motor plain) + protected async Task OnlineToPlainAsync(global::Pocos.misc.Motor plain) { plain.isRunning = isRunning.LastValue; return plain; @@ -757,7 +757,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.Motor plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.Motor plain) { #pragma warning disable CS0612 isRunning.LethargicWrite(plain.isRunning); @@ -767,7 +767,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Mot [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.Motor plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.Motor plain) { #pragma warning disable CS0612 isRunning.LethargicWrite(plain.isRunning); @@ -779,14 +779,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.Motor plain = new Pocos.misc.Motor(); + global::Pocos.misc.Motor plain = new global::Pocos.misc.Motor(); plain.isRunning = isRunning.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.Motor plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.Motor plain) { plain.isRunning = isRunning.Shadow; return plain; @@ -797,7 +797,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.Motor plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.Motor plain) { isRunning.Shadow = plain.isRunning; return this.RetrievePrimitives(); @@ -813,7 +813,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.Motor plain, Pocos.misc.Motor latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.Motor plain, global::Pocos.misc.Motor latest = null) { var somethingChanged = false; if (latest == null) @@ -832,9 +832,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.Motor CreateEmptyPoco() + public global::Pocos.misc.Motor CreateEmptyPoco() { - return new Pocos.misc.Motor(); + return new global::Pocos.misc.Motor(); } private IList Children { get; } = new List(); @@ -940,9 +940,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.misc.Vehicle plain = new Pocos.misc.Vehicle(); + global::Pocos.misc.Vehicle plain = new global::Pocos.misc.Vehicle(); await this.ReadAsync(); #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); @@ -953,9 +953,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.misc.Vehicle plain = new Pocos.misc.Vehicle(); + global::Pocos.misc.Vehicle plain = new global::Pocos.misc.Vehicle(); #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -963,7 +963,7 @@ public async virtual Task OnlineToPlain() return plain; } - protected async Task OnlineToPlainAsync(Pocos.misc.Vehicle plain) + protected async Task OnlineToPlainAsync(global::Pocos.misc.Vehicle plain) { #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); @@ -977,7 +977,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.misc.Vehicle plain) + public async Task> PlainToOnlineAsync(global::Pocos.misc.Vehicle plain) { #pragma warning disable CS0612 await this.m._PlainToOnlineNoacAsync(plain.m); @@ -990,7 +990,7 @@ public async Task> PlainToOnlineAsync(Pocos.misc.Veh [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.misc.Vehicle plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.misc.Vehicle plain) { #pragma warning disable CS0612 await this.m._PlainToOnlineNoacAsync(plain.m); @@ -1005,15 +1005,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.misc.Vehicle plain = new Pocos.misc.Vehicle(); + global::Pocos.misc.Vehicle plain = new global::Pocos.misc.Vehicle(); plain.m = await m.ShadowToPlainAsync(); plain.displacement = displacement.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.misc.Vehicle plain) + protected async Task ShadowToPlainAsync(global::Pocos.misc.Vehicle plain) { plain.m = await m.ShadowToPlainAsync(); plain.displacement = displacement.Shadow; @@ -1025,7 +1025,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.misc.Vehicle plain) + public async Task> PlainToShadowAsync(global::Pocos.misc.Vehicle plain) { await this.m.PlainToShadowAsync(plain.m); displacement.Shadow = plain.displacement; @@ -1042,7 +1042,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.misc.Vehicle plain, Pocos.misc.Vehicle latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.misc.Vehicle plain, global::Pocos.misc.Vehicle latest = null) { var somethingChanged = false; if (latest == null) @@ -1063,9 +1063,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.misc.Vehicle CreateEmptyPoco() + public global::Pocos.misc.Vehicle CreateEmptyPoco() { - return new Pocos.misc.Vehicle(); + return new global::Pocos.misc.Vehicle(); } private IList Children { get; } = new List(); @@ -1176,9 +1176,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); await this.ReadAsync(); #pragma warning disable CS0612 plain._complexKnown = _complexKnown.Select(async p => await p._OnlineToPlainNoacAsync()).Select(p => p.Result).ToArray(); @@ -1189,9 +1189,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); #pragma warning disable CS0612 plain._complexKnown = _complexKnown.Select(async p => await p._OnlineToPlainNoacAsync()).Select(p => p.Result).ToArray(); #pragma warning restore CS0612 @@ -1201,7 +1201,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { #pragma warning disable CS0612 plain._complexKnown = _complexKnown.Select(async p => await p._OnlineToPlainNoacAsync()).Select(p => p.Result).ToArray(); @@ -1215,7 +1215,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + public async Task> PlainToOnlineAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { var __complexKnown_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -1230,7 +1230,7 @@ public async Task> PlainToOnlineAsync(Pocos.UnknownA [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { var __complexKnown_i_FE8484DAB3 = 0; #pragma warning disable CS0612 @@ -1247,15 +1247,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); plain._complexKnown = _complexKnown.Select(async p => await p.ShadowToPlainAsync()).Select(p => p.Result).ToArray(); plain._primitive = _primitive.Select(p => p.Shadow).ToArray(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + protected async Task ShadowToPlainAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { plain._complexKnown = _complexKnown.Select(async p => await p.ShadowToPlainAsync()).Select(p => p.Result).ToArray(); plain._primitive = _primitive.Select(p => p.Shadow).ToArray(); @@ -1267,7 +1267,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) + public async Task> PlainToShadowAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain) { var __complexKnown_i_FE8484DAB3 = 0; _complexKnown.Select(p => p.PlainToShadowAsync(plain._complexKnown[__complexKnown_i_FE8484DAB3++])).ToArray(); @@ -1286,7 +1286,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain, Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays plain, global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -1315,9 +1315,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays CreateEmptyPoco() + public global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays CreateEmptyPoco() { - return new Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); + return new global::Pocos.UnknownArraysShouldNotBeTraspiled.ClassWithArrays(); } private IList Children { get; } = new List(); @@ -1423,9 +1423,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); await this.ReadAsync(); plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; @@ -1434,9 +1434,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; return plain; @@ -1444,7 +1444,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { plain.HelloString = HelloString.LastValue; plain.Id = Id.LastValue; @@ -1456,7 +1456,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + public async Task> PlainToOnlineAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { #pragma warning disable CS0612 HelloString.LethargicWrite(plain.HelloString); @@ -1469,7 +1469,7 @@ public async Task> PlainToOnlineAsync(Pocos.UnknownA [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { #pragma warning disable CS0612 HelloString.LethargicWrite(plain.HelloString); @@ -1484,15 +1484,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain = new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); plain.HelloString = HelloString.Shadow; plain.Id = Id.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + protected async Task ShadowToPlainAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { plain.HelloString = HelloString.Shadow; plain.Id = Id.Shadow; @@ -1504,7 +1504,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) + public async Task> PlainToShadowAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain) { HelloString.Shadow = plain.HelloString; Id.Shadow = plain.Id; @@ -1521,7 +1521,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain, Pocos.UnknownArraysShouldNotBeTraspiled.Complex latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex plain, global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -1542,9 +1542,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.UnknownArraysShouldNotBeTraspiled.Complex CreateEmptyPoco() + public global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex CreateEmptyPoco() { - return new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); + return new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/ref_to_simple.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/ref_to_simple.g.cs index 23ebdfe2..3d241e88 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/ref_to_simple.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/ref_to_simple.g.cs @@ -29,24 +29,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.RefToSimple.ref_to_simple plain = new Pocos.RefToSimple.ref_to_simple(); + global::Pocos.RefToSimple.ref_to_simple plain = new global::Pocos.RefToSimple.ref_to_simple(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.RefToSimple.ref_to_simple plain = new Pocos.RefToSimple.ref_to_simple(); + global::Pocos.RefToSimple.ref_to_simple plain = new global::Pocos.RefToSimple.ref_to_simple(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RefToSimple.ref_to_simple plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RefToSimple.ref_to_simple plain) { return plain; } @@ -56,14 +56,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RefToSimple.ref_to_simple plain) + public async Task> PlainToOnlineAsync(global::Pocos.RefToSimple.ref_to_simple plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RefToSimple.ref_to_simple plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RefToSimple.ref_to_simple plain) { } @@ -72,13 +72,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.RefToSimple.ref_to_simple plain = new Pocos.RefToSimple.ref_to_simple(); + global::Pocos.RefToSimple.ref_to_simple plain = new global::Pocos.RefToSimple.ref_to_simple(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.RefToSimple.ref_to_simple plain) + protected async Task ShadowToPlainAsync(global::Pocos.RefToSimple.ref_to_simple plain) { return plain; } @@ -88,7 +88,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RefToSimple.ref_to_simple plain) + public async Task> PlainToShadowAsync(global::Pocos.RefToSimple.ref_to_simple plain) { return this.RetrievePrimitives(); } @@ -103,7 +103,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.RefToSimple.ref_to_simple plain, Pocos.RefToSimple.ref_to_simple latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.RefToSimple.ref_to_simple plain, global::Pocos.RefToSimple.ref_to_simple latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -120,9 +120,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.RefToSimple.ref_to_simple CreateEmptyPoco() + public global::Pocos.RefToSimple.ref_to_simple CreateEmptyPoco() { - return new Pocos.RefToSimple.ref_to_simple(); + return new global::Pocos.RefToSimple.ref_to_simple(); } private IList Children { get; } = new List(); @@ -226,9 +226,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.RefToSimple.referenced plain = new Pocos.RefToSimple.referenced(); + global::Pocos.RefToSimple.referenced plain = new global::Pocos.RefToSimple.referenced(); await this.ReadAsync(); plain.b = b.LastValue; return plain; @@ -236,16 +236,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.RefToSimple.referenced plain = new Pocos.RefToSimple.referenced(); + global::Pocos.RefToSimple.referenced plain = new global::Pocos.RefToSimple.referenced(); plain.b = b.LastValue; return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RefToSimple.referenced plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RefToSimple.referenced plain) { plain.b = b.LastValue; return plain; @@ -256,7 +256,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RefToSimple.referenced plain) + public async Task> PlainToOnlineAsync(global::Pocos.RefToSimple.referenced plain) { #pragma warning disable CS0612 b.LethargicWrite(plain.b); @@ -266,7 +266,7 @@ public async Task> PlainToOnlineAsync(Pocos.RefToSim [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RefToSimple.referenced plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RefToSimple.referenced plain) { #pragma warning disable CS0612 b.LethargicWrite(plain.b); @@ -278,14 +278,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.RefToSimple.referenced plain = new Pocos.RefToSimple.referenced(); + global::Pocos.RefToSimple.referenced plain = new global::Pocos.RefToSimple.referenced(); plain.b = b.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.RefToSimple.referenced plain) + protected async Task ShadowToPlainAsync(global::Pocos.RefToSimple.referenced plain) { plain.b = b.Shadow; return plain; @@ -296,7 +296,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RefToSimple.referenced plain) + public async Task> PlainToShadowAsync(global::Pocos.RefToSimple.referenced plain) { b.Shadow = plain.b; return this.RetrievePrimitives(); @@ -312,7 +312,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.RefToSimple.referenced plain, Pocos.RefToSimple.referenced latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.RefToSimple.referenced plain, global::Pocos.RefToSimple.referenced latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -331,9 +331,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.RefToSimple.referenced CreateEmptyPoco() + public global::Pocos.RefToSimple.referenced CreateEmptyPoco() { - return new Pocos.RefToSimple.referenced(); + return new global::Pocos.RefToSimple.referenced(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/simple_empty_class_within_namespace.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/simple_empty_class_within_namespace.g.cs index 07141bc0..a1d3ff79 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/simple_empty_class_within_namespace.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/simple_empty_class_within_namespace.g.cs @@ -29,24 +29,24 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.sampleNamespace.simple_empty_class_within_namespace plain = new Pocos.sampleNamespace.simple_empty_class_within_namespace(); + global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain = new global::Pocos.sampleNamespace.simple_empty_class_within_namespace(); await this.ReadAsync(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.sampleNamespace.simple_empty_class_within_namespace plain = new Pocos.sampleNamespace.simple_empty_class_within_namespace(); + global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain = new global::Pocos.sampleNamespace.simple_empty_class_within_namespace(); return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.sampleNamespace.simple_empty_class_within_namespace plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain) { return plain; } @@ -56,14 +56,14 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.sampleNamespace.simple_empty_class_within_namespace plain) + public async Task> PlainToOnlineAsync(global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain) { return await this.WriteAsync(); } [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.sampleNamespace.simple_empty_class_within_namespace plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain) { } @@ -72,13 +72,13 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.sampleNamespace.simple_empty_class_within_namespace plain = new Pocos.sampleNamespace.simple_empty_class_within_namespace(); + global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain = new global::Pocos.sampleNamespace.simple_empty_class_within_namespace(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.sampleNamespace.simple_empty_class_within_namespace plain) + protected async Task ShadowToPlainAsync(global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain) { return plain; } @@ -88,7 +88,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.sampleNamespace.simple_empty_class_within_namespace plain) + public async Task> PlainToShadowAsync(global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain) { return this.RetrievePrimitives(); } @@ -103,7 +103,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.sampleNamespace.simple_empty_class_within_namespace plain, Pocos.sampleNamespace.simple_empty_class_within_namespace latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.sampleNamespace.simple_empty_class_within_namespace plain, global::Pocos.sampleNamespace.simple_empty_class_within_namespace latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -120,9 +120,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.sampleNamespace.simple_empty_class_within_namespace CreateEmptyPoco() + public global::Pocos.sampleNamespace.simple_empty_class_within_namespace CreateEmptyPoco() { - return new Pocos.sampleNamespace.simple_empty_class_within_namespace(); + return new global::Pocos.sampleNamespace.simple_empty_class_within_namespace(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values.g.cs index 8cfb6207..7dd1df0b 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values.g.cs @@ -40,9 +40,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.NamedValuesNamespace.using_type_named_values plain = new Pocos.NamedValuesNamespace.using_type_named_values(); + global::Pocos.NamedValuesNamespace.using_type_named_values plain = new global::Pocos.NamedValuesNamespace.using_type_named_values(); await this.ReadAsync(); plain.LColors = LColors.LastValue; return plain; @@ -50,16 +50,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.NamedValuesNamespace.using_type_named_values plain = new Pocos.NamedValuesNamespace.using_type_named_values(); + global::Pocos.NamedValuesNamespace.using_type_named_values plain = new global::Pocos.NamedValuesNamespace.using_type_named_values(); plain.LColors = LColors.LastValue; return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.NamedValuesNamespace.using_type_named_values plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.NamedValuesNamespace.using_type_named_values plain) { plain.LColors = LColors.LastValue; return plain; @@ -70,7 +70,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.NamedValuesNamespace.using_type_named_values plain) + public async Task> PlainToOnlineAsync(global::Pocos.NamedValuesNamespace.using_type_named_values plain) { #pragma warning disable CS0612 LColors.LethargicWrite(plain.LColors); @@ -80,7 +80,7 @@ public async Task> PlainToOnlineAsync(Pocos.NamedVal [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.NamedValuesNamespace.using_type_named_values plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.NamedValuesNamespace.using_type_named_values plain) { #pragma warning disable CS0612 LColors.LethargicWrite(plain.LColors); @@ -92,14 +92,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.NamedValuesNamespace.using_type_named_values plain = new Pocos.NamedValuesNamespace.using_type_named_values(); + global::Pocos.NamedValuesNamespace.using_type_named_values plain = new global::Pocos.NamedValuesNamespace.using_type_named_values(); plain.LColors = LColors.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.NamedValuesNamespace.using_type_named_values plain) + protected async Task ShadowToPlainAsync(global::Pocos.NamedValuesNamespace.using_type_named_values plain) { plain.LColors = LColors.Shadow; return plain; @@ -110,7 +110,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.NamedValuesNamespace.using_type_named_values plain) + public async Task> PlainToShadowAsync(global::Pocos.NamedValuesNamespace.using_type_named_values plain) { LColors.Shadow = plain.LColors; return this.RetrievePrimitives(); @@ -126,7 +126,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.NamedValuesNamespace.using_type_named_values plain, Pocos.NamedValuesNamespace.using_type_named_values latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.NamedValuesNamespace.using_type_named_values plain, global::Pocos.NamedValuesNamespace.using_type_named_values latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -145,9 +145,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.NamedValuesNamespace.using_type_named_values CreateEmptyPoco() + public global::Pocos.NamedValuesNamespace.using_type_named_values CreateEmptyPoco() { - return new Pocos.NamedValuesNamespace.using_type_named_values(); + return new global::Pocos.NamedValuesNamespace.using_type_named_values(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values_literals.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values_literals.g.cs index c07afdbe..47f1f20c 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values_literals.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_named_values_literals.g.cs @@ -42,9 +42,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.using_type_named_values plain = new Pocos.Simatic.Ax.StateFramework.using_type_named_values(); + global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain = new global::Pocos.Simatic.Ax.StateFramework.using_type_named_values(); await this.ReadAsync(); plain.LColors = LColors.LastValue; return plain; @@ -52,16 +52,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.Simatic.Ax.StateFramework.using_type_named_values plain = new Pocos.Simatic.Ax.StateFramework.using_type_named_values(); + global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain = new global::Pocos.Simatic.Ax.StateFramework.using_type_named_values(); plain.LColors = LColors.LastValue; return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) { plain.LColors = LColors.LastValue; return plain; @@ -72,7 +72,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) + public async Task> PlainToOnlineAsync(global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) { #pragma warning disable CS0612 LColors.LethargicWrite(plain.LColors); @@ -82,7 +82,7 @@ public async Task> PlainToOnlineAsync(Pocos.Simatic. [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) { #pragma warning disable CS0612 LColors.LethargicWrite(plain.LColors); @@ -94,14 +94,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.using_type_named_values plain = new Pocos.Simatic.Ax.StateFramework.using_type_named_values(); + global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain = new global::Pocos.Simatic.Ax.StateFramework.using_type_named_values(); plain.LColors = LColors.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) + protected async Task ShadowToPlainAsync(global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) { plain.LColors = LColors.Shadow; return plain; @@ -112,7 +112,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) + public async Task> PlainToShadowAsync(global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain) { LColors.Shadow = plain.LColors; return this.RetrievePrimitives(); @@ -128,7 +128,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.Simatic.Ax.StateFramework.using_type_named_values plain, Pocos.Simatic.Ax.StateFramework.using_type_named_values latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.Simatic.Ax.StateFramework.using_type_named_values plain, global::Pocos.Simatic.Ax.StateFramework.using_type_named_values latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -147,9 +147,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.Simatic.Ax.StateFramework.using_type_named_values CreateEmptyPoco() + public global::Pocos.Simatic.Ax.StateFramework.using_type_named_values CreateEmptyPoco() { - return new Pocos.Simatic.Ax.StateFramework.using_type_named_values(); + return new global::Pocos.Simatic.Ax.StateFramework.using_type_named_values(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_with_enum.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_with_enum.g.cs index ee5fd377..a8e9331f 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_with_enum.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/type_with_enum.g.cs @@ -53,9 +53,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain = new Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); + global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain = new global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); await this.ReadAsync(); plain.CompareToValue = CompareToValue.LastValue; plain.Condition = (Simatic.Ax.StateFramework.Condition)Condition.LastValue; @@ -64,9 +64,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain = new Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); + global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain = new global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); plain.CompareToValue = CompareToValue.LastValue; plain.Condition = (Simatic.Ax.StateFramework.Condition)Condition.LastValue; return plain; @@ -74,7 +74,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) { plain.CompareToValue = CompareToValue.LastValue; plain.Condition = (Simatic.Ax.StateFramework.Condition)Condition.LastValue; @@ -86,7 +86,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) + public async Task> PlainToOnlineAsync(global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) { #pragma warning disable CS0612 CompareToValue.LethargicWrite(plain.CompareToValue); @@ -99,7 +99,7 @@ public async Task> PlainToOnlineAsync(Pocos.Simatic. [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) { #pragma warning disable CS0612 CompareToValue.LethargicWrite(plain.CompareToValue); @@ -114,15 +114,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain = new Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); + global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain = new global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); plain.CompareToValue = CompareToValue.Shadow; plain.Condition = (Simatic.Ax.StateFramework.Condition)Condition.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) + protected async Task ShadowToPlainAsync(global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) { plain.CompareToValue = CompareToValue.Shadow; plain.Condition = (Simatic.Ax.StateFramework.Condition)Condition.Shadow; @@ -134,7 +134,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) + public async Task> PlainToShadowAsync(global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain) { CompareToValue.Shadow = plain.CompareToValue; Condition.Shadow = (short)plain.Condition; @@ -151,7 +151,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain, Pocos.Simatic.Ax.StateFramework.CompareGuardLint latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint plain, global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -172,9 +172,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.Simatic.Ax.StateFramework.CompareGuardLint CreateEmptyPoco() + public global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint CreateEmptyPoco() { - return new Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); + return new global::Pocos.Simatic.Ax.StateFramework.CompareGuardLint(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_name_attributes.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_name_attributes.g.cs index 96b766c5..7fbaae04 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_name_attributes.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_name_attributes.g.cs @@ -33,9 +33,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.TypeWithNameAttributes.Motor plain = new Pocos.TypeWithNameAttributes.Motor(); + global::Pocos.TypeWithNameAttributes.Motor plain = new global::Pocos.TypeWithNameAttributes.Motor(); await this.ReadAsync(); plain.isRunning = isRunning.LastValue; return plain; @@ -43,14 +43,14 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.TypeWithNameAttributes.Motor plain = new Pocos.TypeWithNameAttributes.Motor(); + global::Pocos.TypeWithNameAttributes.Motor plain = new global::Pocos.TypeWithNameAttributes.Motor(); plain.isRunning = isRunning.LastValue; return plain; } - protected async Task OnlineToPlainAsync(Pocos.TypeWithNameAttributes.Motor plain) + protected async Task OnlineToPlainAsync(global::Pocos.TypeWithNameAttributes.Motor plain) { plain.isRunning = isRunning.LastValue; return plain; @@ -61,7 +61,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.TypeWithNameAttributes.Motor plain) + public async Task> PlainToOnlineAsync(global::Pocos.TypeWithNameAttributes.Motor plain) { #pragma warning disable CS0612 isRunning.LethargicWrite(plain.isRunning); @@ -71,7 +71,7 @@ public async Task> PlainToOnlineAsync(Pocos.TypeWith [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.TypeWithNameAttributes.Motor plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.TypeWithNameAttributes.Motor plain) { #pragma warning disable CS0612 isRunning.LethargicWrite(plain.isRunning); @@ -83,14 +83,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.TypeWithNameAttributes.Motor plain = new Pocos.TypeWithNameAttributes.Motor(); + global::Pocos.TypeWithNameAttributes.Motor plain = new global::Pocos.TypeWithNameAttributes.Motor(); plain.isRunning = isRunning.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.TypeWithNameAttributes.Motor plain) + protected async Task ShadowToPlainAsync(global::Pocos.TypeWithNameAttributes.Motor plain) { plain.isRunning = isRunning.Shadow; return plain; @@ -101,7 +101,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.TypeWithNameAttributes.Motor plain) + public async Task> PlainToShadowAsync(global::Pocos.TypeWithNameAttributes.Motor plain) { isRunning.Shadow = plain.isRunning; return this.RetrievePrimitives(); @@ -117,7 +117,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.TypeWithNameAttributes.Motor plain, Pocos.TypeWithNameAttributes.Motor latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.TypeWithNameAttributes.Motor plain, global::Pocos.TypeWithNameAttributes.Motor latest = null) { var somethingChanged = false; if (latest == null) @@ -136,9 +136,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.TypeWithNameAttributes.Motor CreateEmptyPoco() + public global::Pocos.TypeWithNameAttributes.Motor CreateEmptyPoco() { - return new Pocos.TypeWithNameAttributes.Motor(); + return new global::Pocos.TypeWithNameAttributes.Motor(); } private IList Children { get; } = new List(); @@ -244,9 +244,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.TypeWithNameAttributes.Vehicle plain = new Pocos.TypeWithNameAttributes.Vehicle(); + global::Pocos.TypeWithNameAttributes.Vehicle plain = new global::Pocos.TypeWithNameAttributes.Vehicle(); await this.ReadAsync(); #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); @@ -257,9 +257,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.TypeWithNameAttributes.Vehicle plain = new Pocos.TypeWithNameAttributes.Vehicle(); + global::Pocos.TypeWithNameAttributes.Vehicle plain = new global::Pocos.TypeWithNameAttributes.Vehicle(); #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); #pragma warning restore CS0612 @@ -267,7 +267,7 @@ public async virtual Task OnlineToPlain() return plain; } - protected async Task OnlineToPlainAsync(Pocos.TypeWithNameAttributes.Vehicle plain) + protected async Task OnlineToPlainAsync(global::Pocos.TypeWithNameAttributes.Vehicle plain) { #pragma warning disable CS0612 plain.m = await m._OnlineToPlainNoacAsync(); @@ -281,7 +281,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.TypeWithNameAttributes.Vehicle plain) + public async Task> PlainToOnlineAsync(global::Pocos.TypeWithNameAttributes.Vehicle plain) { #pragma warning disable CS0612 await this.m._PlainToOnlineNoacAsync(plain.m); @@ -294,7 +294,7 @@ public async Task> PlainToOnlineAsync(Pocos.TypeWith [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.TypeWithNameAttributes.Vehicle plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.TypeWithNameAttributes.Vehicle plain) { #pragma warning disable CS0612 await this.m._PlainToOnlineNoacAsync(plain.m); @@ -309,15 +309,15 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.TypeWithNameAttributes.Vehicle plain = new Pocos.TypeWithNameAttributes.Vehicle(); + global::Pocos.TypeWithNameAttributes.Vehicle plain = new global::Pocos.TypeWithNameAttributes.Vehicle(); plain.m = await m.ShadowToPlainAsync(); plain.displacement = displacement.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.TypeWithNameAttributes.Vehicle plain) + protected async Task ShadowToPlainAsync(global::Pocos.TypeWithNameAttributes.Vehicle plain) { plain.m = await m.ShadowToPlainAsync(); plain.displacement = displacement.Shadow; @@ -329,7 +329,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.TypeWithNameAttributes.Vehicle plain) + public async Task> PlainToShadowAsync(global::Pocos.TypeWithNameAttributes.Vehicle plain) { await this.m.PlainToShadowAsync(plain.m); displacement.Shadow = plain.displacement; @@ -346,7 +346,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.TypeWithNameAttributes.Vehicle plain, Pocos.TypeWithNameAttributes.Vehicle latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.TypeWithNameAttributes.Vehicle plain, global::Pocos.TypeWithNameAttributes.Vehicle latest = null) { var somethingChanged = false; if (latest == null) @@ -367,9 +367,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.TypeWithNameAttributes.Vehicle CreateEmptyPoco() + public global::Pocos.TypeWithNameAttributes.Vehicle CreateEmptyPoco() { - return new Pocos.TypeWithNameAttributes.Vehicle(); + return new global::Pocos.TypeWithNameAttributes.Vehicle(); } private IList Children { get; } = new List(); @@ -481,9 +481,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.TypeWithNameAttributes.NoAccessModifierClass plain = new Pocos.TypeWithNameAttributes.NoAccessModifierClass(); + global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain = new global::Pocos.TypeWithNameAttributes.NoAccessModifierClass(); await this.ReadAsync(); plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; @@ -491,16 +491,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.TypeWithNameAttributes.NoAccessModifierClass plain = new Pocos.TypeWithNameAttributes.NoAccessModifierClass(); + global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain = new global::Pocos.TypeWithNameAttributes.NoAccessModifierClass(); plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) { plain.SomeClassVariable = SomeClassVariable.LastValue; return plain; @@ -511,7 +511,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) + public async Task> PlainToOnlineAsync(global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) { #pragma warning disable CS0612 SomeClassVariable.LethargicWrite(plain.SomeClassVariable); @@ -521,7 +521,7 @@ public async Task> PlainToOnlineAsync(Pocos.TypeWith [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) { #pragma warning disable CS0612 SomeClassVariable.LethargicWrite(plain.SomeClassVariable); @@ -533,14 +533,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.TypeWithNameAttributes.NoAccessModifierClass plain = new Pocos.TypeWithNameAttributes.NoAccessModifierClass(); + global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain = new global::Pocos.TypeWithNameAttributes.NoAccessModifierClass(); plain.SomeClassVariable = SomeClassVariable.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) + protected async Task ShadowToPlainAsync(global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) { plain.SomeClassVariable = SomeClassVariable.Shadow; return plain; @@ -551,7 +551,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) + public async Task> PlainToShadowAsync(global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain) { SomeClassVariable.Shadow = plain.SomeClassVariable; return this.RetrievePrimitives(); @@ -567,7 +567,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.TypeWithNameAttributes.NoAccessModifierClass plain, Pocos.TypeWithNameAttributes.NoAccessModifierClass latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.TypeWithNameAttributes.NoAccessModifierClass plain, global::Pocos.TypeWithNameAttributes.NoAccessModifierClass latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -586,9 +586,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.TypeWithNameAttributes.NoAccessModifierClass CreateEmptyPoco() + public global::Pocos.TypeWithNameAttributes.NoAccessModifierClass CreateEmptyPoco() { - return new Pocos.TypeWithNameAttributes.NoAccessModifierClass(); + return new global::Pocos.TypeWithNameAttributes.NoAccessModifierClass(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_property_attributes.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_property_attributes.g.cs index 300b6ce0..abd8376b 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_property_attributes.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/Onliners/types_with_property_attributes.g.cs @@ -42,9 +42,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain = new Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); + global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain = new global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); await this.ReadAsync(); plain.Counter = Counter.LastValue; return plain; @@ -52,16 +52,16 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain = new Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); + global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain = new global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); plain.Counter = Counter.LastValue; return plain; } [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) { plain.Counter = Counter.LastValue; return plain; @@ -72,7 +72,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) + public async Task> PlainToOnlineAsync(global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) { #pragma warning disable CS0612 Counter.LethargicWrite(plain.Counter); @@ -82,7 +82,7 @@ public async Task> PlainToOnlineAsync(Pocos.TypesWit [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) { #pragma warning disable CS0612 Counter.LethargicWrite(plain.Counter); @@ -94,14 +94,14 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain = new Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); + global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain = new global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); plain.Counter = Counter.Shadow; return plain; } - protected async Task ShadowToPlainAsync(Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) + protected async Task ShadowToPlainAsync(global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) { plain.Counter = Counter.Shadow; return plain; @@ -112,7 +112,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) + public async Task> PlainToShadowAsync(global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain) { Counter.Shadow = plain.Counter; return this.RetrievePrimitives(); @@ -128,7 +128,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain, Pocos.TypesWithPropertyAttributes.SomeAddedProperties latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties plain, global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -147,9 +147,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.TypesWithPropertyAttributes.SomeAddedProperties CreateEmptyPoco() + public global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties CreateEmptyPoco() { - return new Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); + return new global::Pocos.TypesWithPropertyAttributes.SomeAddedProperties(); } private IList Children { get; } = new List(); diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/array_declaration.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/array_declaration.g.cs index 76f11555..ce30a3c8 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/array_declaration.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/array_declaration.g.cs @@ -11,7 +11,7 @@ public partial class array_declaration_class : AXSharp.Connector.IPlain public array_declaration_class() { #pragma warning disable CS0612 - AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(complex, () => new Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(), new[] { (1, 100) }); + AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(complex, () => new global::Pocos.ArrayDeclarationSimpleNamespace.some_complex_type(), new[] { (1, 100) }); #pragma warning restore CS0612 } diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/compileromitsattribute.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/compileromitsattribute.g.cs index 3b6b4daf..1db7eb7f 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/compileromitsattribute.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/compileromitsattribute.g.cs @@ -89,7 +89,7 @@ public partial class ClassWithArrays : AXSharp.Connector.IPlain public ClassWithArrays() { #pragma warning disable CS0612 - AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(_complexKnown, () => new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(), new[] { (0, 10) }); + AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(_complexKnown, () => new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(), new[] { (0, 10) }); #pragma warning restore CS0612 } diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/misc.g.cs b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/misc.g.cs index 0130d56f..1eae7fcb 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/misc.g.cs +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/.g/POCO/misc.g.cs @@ -65,7 +65,7 @@ public partial class ClassWithArrays : AXSharp.Connector.IPlain public ClassWithArrays() { #pragma warning disable CS0612 - AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(_complexKnown, () => new Pocos.UnknownArraysShouldNotBeTraspiled.Complex(), new[] { (0, 10) }); + AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(_complexKnown, () => new global::Pocos.UnknownArraysShouldNotBeTraspiled.Complex(), new[] { (0, 10) }); #pragma warning restore CS0612 } diff --git a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/units.csproj b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/units.csproj index d219f2ad..60a717a7 100644 --- a/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/units.csproj +++ b/src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/samples/units/expected/units.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/monster.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/monster.g.cs index f3e32082..b9c5b988 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/monster.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/monster.g.cs @@ -11,7 +11,7 @@ public partial class MonsterBase : AXSharp.Connector.IPlain public MonsterBase() { #pragma warning disable CS0612 - AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(ArrayOfDrives, () => new Pocos.MonsterData.DriveBase(), new[] { (0, 3) }); + AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(ArrayOfDrives, () => new global::Pocos.MonsterData.DriveBase(), new[] { (0, 3) }); #pragma warning restore CS0612 #pragma warning disable CS0612 AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(ArrayOfIxComponent, () => new global::Pocos.ixcomponent(), new[] { (0, 3) }); diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs index 612510bb..1c635735 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/moster.g.cs @@ -48,9 +48,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.MonsterData.MonsterBase plain = new Pocos.MonsterData.MonsterBase(); + global::Pocos.MonsterData.MonsterBase plain = new global::Pocos.MonsterData.MonsterBase(); await this.ReadAsync(); plain.Description = Description.LastValue; plain.Id = Id.LastValue; @@ -67,9 +67,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.MonsterData.MonsterBase plain = new Pocos.MonsterData.MonsterBase(); + global::Pocos.MonsterData.MonsterBase plain = new global::Pocos.MonsterData.MonsterBase(); plain.Description = Description.LastValue; plain.Id = Id.LastValue; plain.ArrayOfBytes = ArrayOfBytes.Select(p => p.LastValue).ToArray(); @@ -85,7 +85,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.MonsterData.MonsterBase plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.MonsterData.MonsterBase plain) { plain.Description = Description.LastValue; plain.Id = Id.LastValue; @@ -105,7 +105,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.MonsterData.MonsterBase plain) + public async Task> PlainToOnlineAsync(global::Pocos.MonsterData.MonsterBase plain) { #pragma warning disable CS0612 Description.LethargicWrite(plain.Description); @@ -132,7 +132,7 @@ public async Task> PlainToOnlineAsync(Pocos.MonsterD [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.MonsterData.MonsterBase plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.MonsterData.MonsterBase plain) { #pragma warning disable CS0612 Description.LethargicWrite(plain.Description); @@ -161,9 +161,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.MonsterData.MonsterBase plain = new Pocos.MonsterData.MonsterBase(); + global::Pocos.MonsterData.MonsterBase plain = new global::Pocos.MonsterData.MonsterBase(); plain.Description = Description.Shadow; plain.Id = Id.Shadow; plain.ArrayOfBytes = ArrayOfBytes.Select(p => p.Shadow).ToArray(); @@ -173,7 +173,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.MonsterData.MonsterBase plain) + protected async Task ShadowToPlainAsync(global::Pocos.MonsterData.MonsterBase plain) { plain.Description = Description.Shadow; plain.Id = Id.Shadow; @@ -189,7 +189,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.MonsterData.MonsterBase plain) + public async Task> PlainToShadowAsync(global::Pocos.MonsterData.MonsterBase plain) { Description.Shadow = plain.Description; Id.Shadow = plain.Id; @@ -212,7 +212,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.MonsterData.MonsterBase plain, Pocos.MonsterData.MonsterBase latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.MonsterData.MonsterBase plain, global::Pocos.MonsterData.MonsterBase latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -249,9 +249,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.MonsterData.MonsterBase CreateEmptyPoco() + public global::Pocos.MonsterData.MonsterBase CreateEmptyPoco() { - return new Pocos.MonsterData.MonsterBase(); + return new global::Pocos.MonsterData.MonsterBase(); } private IList Children { get; } = new List(); @@ -349,9 +349,9 @@ public async override Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public new async Task OnlineToPlainAsync() + public new async Task OnlineToPlainAsync() { - Pocos.MonsterData.Monster plain = new Pocos.MonsterData.Monster(); + global::Pocos.MonsterData.Monster plain = new global::Pocos.MonsterData.Monster(); await this.ReadAsync(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -364,9 +364,9 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public new async Task _OnlineToPlainNoacAsync() + public new async Task _OnlineToPlainNoacAsync() { - Pocos.MonsterData.Monster plain = new Pocos.MonsterData.Monster(); + global::Pocos.MonsterData.Monster plain = new global::Pocos.MonsterData.Monster(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); #pragma warning restore CS0612 @@ -378,7 +378,7 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.MonsterData.Monster plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.MonsterData.Monster plain) { #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -394,7 +394,7 @@ public async override Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.MonsterData.Monster plain) + public async Task> PlainToOnlineAsync(global::Pocos.MonsterData.Monster plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -405,7 +405,7 @@ public async Task> PlainToOnlineAsync(Pocos.MonsterD [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.MonsterData.Monster plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.MonsterData.Monster plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -418,15 +418,15 @@ public async override Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public new async Task ShadowToPlainAsync() + public new async Task ShadowToPlainAsync() { - Pocos.MonsterData.Monster plain = new Pocos.MonsterData.Monster(); + global::Pocos.MonsterData.Monster plain = new global::Pocos.MonsterData.Monster(); await base.ShadowToPlainAsync(plain); plain.DriveA = await DriveA.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.MonsterData.Monster plain) + protected async Task ShadowToPlainAsync(global::Pocos.MonsterData.Monster plain) { await base.ShadowToPlainAsync(plain); plain.DriveA = await DriveA.ShadowToPlainAsync(); @@ -438,7 +438,7 @@ public async override Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.MonsterData.Monster plain) + public async Task> PlainToShadowAsync(global::Pocos.MonsterData.Monster plain) { await base.PlainToShadowAsync(plain); await this.DriveA.PlainToShadowAsync(plain.DriveA); @@ -455,7 +455,7 @@ public async override Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public new async Task DetectsAnyChangeAsync(Pocos.MonsterData.Monster plain, Pocos.MonsterData.Monster latest = null) + public new async Task DetectsAnyChangeAsync(global::Pocos.MonsterData.Monster plain, global::Pocos.MonsterData.Monster latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -476,9 +476,9 @@ public async override Task AnyChangeAsync(T plain) this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public new Pocos.MonsterData.Monster CreateEmptyPoco() + public new global::Pocos.MonsterData.Monster CreateEmptyPoco() { - return new Pocos.MonsterData.Monster(); + return new global::Pocos.MonsterData.Monster(); } } @@ -513,9 +513,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.MonsterData.DriveBase plain = new Pocos.MonsterData.DriveBase(); + global::Pocos.MonsterData.DriveBase plain = new global::Pocos.MonsterData.DriveBase(); await this.ReadAsync(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -526,9 +526,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.MonsterData.DriveBase plain = new Pocos.MonsterData.DriveBase(); + global::Pocos.MonsterData.DriveBase plain = new global::Pocos.MonsterData.DriveBase(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; plain.Acc = Acc.LastValue; @@ -538,7 +538,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.MonsterData.DriveBase plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.MonsterData.DriveBase plain) { plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -552,7 +552,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.MonsterData.DriveBase plain) + public async Task> PlainToOnlineAsync(global::Pocos.MonsterData.DriveBase plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -571,7 +571,7 @@ public async Task> PlainToOnlineAsync(Pocos.MonsterD [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.MonsterData.DriveBase plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.MonsterData.DriveBase plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -592,9 +592,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.MonsterData.DriveBase plain = new Pocos.MonsterData.DriveBase(); + global::Pocos.MonsterData.DriveBase plain = new global::Pocos.MonsterData.DriveBase(); plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; plain.Acc = Acc.Shadow; @@ -602,7 +602,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.MonsterData.DriveBase plain) + protected async Task ShadowToPlainAsync(global::Pocos.MonsterData.DriveBase plain) { plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; @@ -616,7 +616,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.MonsterData.DriveBase plain) + public async Task> PlainToShadowAsync(global::Pocos.MonsterData.DriveBase plain) { Position.Shadow = plain.Position; Velo.Shadow = plain.Velo; @@ -635,7 +635,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.MonsterData.DriveBase plain, Pocos.MonsterData.DriveBase latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.MonsterData.DriveBase plain, global::Pocos.MonsterData.DriveBase latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -660,9 +660,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.MonsterData.DriveBase CreateEmptyPoco() + public global::Pocos.MonsterData.DriveBase CreateEmptyPoco() { - return new Pocos.MonsterData.DriveBase(); + return new global::Pocos.MonsterData.DriveBase(); } private IList Children { get; } = new List(); diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs index 3a75dffe..76cd9eb3 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/Onliners/dataswapping/realmonster.g.cs @@ -46,9 +46,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.RealMonsterData.RealMonsterBase plain = new Pocos.RealMonsterData.RealMonsterBase(); + global::Pocos.RealMonsterData.RealMonsterBase plain = new global::Pocos.RealMonsterData.RealMonsterBase(); await this.ReadAsync(); plain.Description = Description.LastValue; plain.Id = Id.LastValue; @@ -64,9 +64,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.RealMonsterData.RealMonsterBase plain = new Pocos.RealMonsterData.RealMonsterBase(); + global::Pocos.RealMonsterData.RealMonsterBase plain = new global::Pocos.RealMonsterData.RealMonsterBase(); plain.Description = Description.LastValue; plain.Id = Id.LastValue; plain.TestDate = TestDate.LastValue; @@ -81,7 +81,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RealMonsterData.RealMonsterBase plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RealMonsterData.RealMonsterBase plain) { plain.Description = Description.LastValue; plain.Id = Id.LastValue; @@ -100,7 +100,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RealMonsterData.RealMonsterBase plain) + public async Task> PlainToOnlineAsync(global::Pocos.RealMonsterData.RealMonsterBase plain) { #pragma warning disable CS0612 Description.LethargicWrite(plain.Description); @@ -130,7 +130,7 @@ public async Task> PlainToOnlineAsync(Pocos.RealMons [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RealMonsterData.RealMonsterBase plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RealMonsterData.RealMonsterBase plain) { #pragma warning disable CS0612 Description.LethargicWrite(plain.Description); @@ -162,9 +162,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.RealMonsterData.RealMonsterBase plain = new Pocos.RealMonsterData.RealMonsterBase(); + global::Pocos.RealMonsterData.RealMonsterBase plain = new global::Pocos.RealMonsterData.RealMonsterBase(); plain.Description = Description.Shadow; plain.Id = Id.Shadow; plain.TestDate = TestDate.Shadow; @@ -175,7 +175,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.RealMonsterData.RealMonsterBase plain) + protected async Task ShadowToPlainAsync(global::Pocos.RealMonsterData.RealMonsterBase plain) { plain.Description = Description.Shadow; plain.Id = Id.Shadow; @@ -192,7 +192,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RealMonsterData.RealMonsterBase plain) + public async Task> PlainToShadowAsync(global::Pocos.RealMonsterData.RealMonsterBase plain) { Description.Shadow = plain.Description; Id.Shadow = plain.Id; @@ -216,7 +216,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.RealMonsterBase plain, Pocos.RealMonsterData.RealMonsterBase latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.RealMonsterData.RealMonsterBase plain, global::Pocos.RealMonsterData.RealMonsterBase latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -255,9 +255,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.RealMonsterData.RealMonsterBase CreateEmptyPoco() + public global::Pocos.RealMonsterData.RealMonsterBase CreateEmptyPoco() { - return new Pocos.RealMonsterData.RealMonsterBase(); + return new global::Pocos.RealMonsterData.RealMonsterBase(); } private IList Children { get; } = new List(); @@ -355,9 +355,9 @@ public async override Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public new async Task OnlineToPlainAsync() + public new async Task OnlineToPlainAsync() { - Pocos.RealMonsterData.RealMonster plain = new Pocos.RealMonsterData.RealMonster(); + global::Pocos.RealMonsterData.RealMonster plain = new global::Pocos.RealMonsterData.RealMonster(); await this.ReadAsync(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -370,9 +370,9 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public new async Task _OnlineToPlainNoacAsync() + public new async Task _OnlineToPlainNoacAsync() { - Pocos.RealMonsterData.RealMonster plain = new Pocos.RealMonsterData.RealMonster(); + global::Pocos.RealMonsterData.RealMonster plain = new global::Pocos.RealMonsterData.RealMonster(); #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); #pragma warning restore CS0612 @@ -384,7 +384,7 @@ public async override Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RealMonsterData.RealMonster plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RealMonsterData.RealMonster plain) { #pragma warning disable CS0612 await base._OnlineToPlainNoacAsync(plain); @@ -400,7 +400,7 @@ public async override Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RealMonsterData.RealMonster plain) + public async Task> PlainToOnlineAsync(global::Pocos.RealMonsterData.RealMonster plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -411,7 +411,7 @@ public async Task> PlainToOnlineAsync(Pocos.RealMons [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RealMonsterData.RealMonster plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RealMonsterData.RealMonster plain) { await base._PlainToOnlineNoacAsync(plain); #pragma warning disable CS0612 @@ -424,15 +424,15 @@ public async override Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public new async Task ShadowToPlainAsync() + public new async Task ShadowToPlainAsync() { - Pocos.RealMonsterData.RealMonster plain = new Pocos.RealMonsterData.RealMonster(); + global::Pocos.RealMonsterData.RealMonster plain = new global::Pocos.RealMonsterData.RealMonster(); await base.ShadowToPlainAsync(plain); plain.DriveA = await DriveA.ShadowToPlainAsync(); return plain; } - protected async Task ShadowToPlainAsync(Pocos.RealMonsterData.RealMonster plain) + protected async Task ShadowToPlainAsync(global::Pocos.RealMonsterData.RealMonster plain) { await base.ShadowToPlainAsync(plain); plain.DriveA = await DriveA.ShadowToPlainAsync(); @@ -444,7 +444,7 @@ public async override Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RealMonsterData.RealMonster plain) + public async Task> PlainToShadowAsync(global::Pocos.RealMonsterData.RealMonster plain) { await base.PlainToShadowAsync(plain); await this.DriveA.PlainToShadowAsync(plain.DriveA); @@ -461,7 +461,7 @@ public async override Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public new async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.RealMonster plain, Pocos.RealMonsterData.RealMonster latest = null) + public new async Task DetectsAnyChangeAsync(global::Pocos.RealMonsterData.RealMonster plain, global::Pocos.RealMonsterData.RealMonster latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -482,9 +482,9 @@ public async override Task AnyChangeAsync(T plain) this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public new Pocos.RealMonsterData.RealMonster CreateEmptyPoco() + public new global::Pocos.RealMonsterData.RealMonster CreateEmptyPoco() { - return new Pocos.RealMonsterData.RealMonster(); + return new global::Pocos.RealMonsterData.RealMonster(); } } @@ -521,9 +521,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.RealMonsterData.DriveBaseNested plain = new Pocos.RealMonsterData.DriveBaseNested(); + global::Pocos.RealMonsterData.DriveBaseNested plain = new global::Pocos.RealMonsterData.DriveBaseNested(); await this.ReadAsync(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -537,9 +537,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.RealMonsterData.DriveBaseNested plain = new Pocos.RealMonsterData.DriveBaseNested(); + global::Pocos.RealMonsterData.DriveBaseNested plain = new global::Pocos.RealMonsterData.DriveBaseNested(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; plain.Acc = Acc.LastValue; @@ -552,7 +552,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RealMonsterData.DriveBaseNested plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RealMonsterData.DriveBaseNested plain) { plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -569,7 +569,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RealMonsterData.DriveBaseNested plain) + public async Task> PlainToOnlineAsync(global::Pocos.RealMonsterData.DriveBaseNested plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -591,7 +591,7 @@ public async Task> PlainToOnlineAsync(Pocos.RealMons [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RealMonsterData.DriveBaseNested plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RealMonsterData.DriveBaseNested plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -615,9 +615,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.RealMonsterData.DriveBaseNested plain = new Pocos.RealMonsterData.DriveBaseNested(); + global::Pocos.RealMonsterData.DriveBaseNested plain = new global::Pocos.RealMonsterData.DriveBaseNested(); plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; plain.Acc = Acc.Shadow; @@ -626,7 +626,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.RealMonsterData.DriveBaseNested plain) + protected async Task ShadowToPlainAsync(global::Pocos.RealMonsterData.DriveBaseNested plain) { plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; @@ -641,7 +641,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RealMonsterData.DriveBaseNested plain) + public async Task> PlainToShadowAsync(global::Pocos.RealMonsterData.DriveBaseNested plain) { Position.Shadow = plain.Position; Velo.Shadow = plain.Velo; @@ -661,7 +661,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.DriveBaseNested plain, Pocos.RealMonsterData.DriveBaseNested latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.RealMonsterData.DriveBaseNested plain, global::Pocos.RealMonsterData.DriveBaseNested latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -688,9 +688,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.RealMonsterData.DriveBaseNested CreateEmptyPoco() + public global::Pocos.RealMonsterData.DriveBaseNested CreateEmptyPoco() { - return new Pocos.RealMonsterData.DriveBaseNested(); + return new global::Pocos.RealMonsterData.DriveBaseNested(); } private IList Children { get; } = new List(); @@ -802,9 +802,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.RealMonsterData.NestedLevelOne plain = new Pocos.RealMonsterData.NestedLevelOne(); + global::Pocos.RealMonsterData.NestedLevelOne plain = new global::Pocos.RealMonsterData.NestedLevelOne(); await this.ReadAsync(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -818,9 +818,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.RealMonsterData.NestedLevelOne plain = new Pocos.RealMonsterData.NestedLevelOne(); + global::Pocos.RealMonsterData.NestedLevelOne plain = new global::Pocos.RealMonsterData.NestedLevelOne(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; plain.Acc = Acc.LastValue; @@ -833,7 +833,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RealMonsterData.NestedLevelOne plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RealMonsterData.NestedLevelOne plain) { plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -850,7 +850,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RealMonsterData.NestedLevelOne plain) + public async Task> PlainToOnlineAsync(global::Pocos.RealMonsterData.NestedLevelOne plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -872,7 +872,7 @@ public async Task> PlainToOnlineAsync(Pocos.RealMons [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RealMonsterData.NestedLevelOne plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RealMonsterData.NestedLevelOne plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -896,9 +896,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.RealMonsterData.NestedLevelOne plain = new Pocos.RealMonsterData.NestedLevelOne(); + global::Pocos.RealMonsterData.NestedLevelOne plain = new global::Pocos.RealMonsterData.NestedLevelOne(); plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; plain.Acc = Acc.Shadow; @@ -907,7 +907,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.RealMonsterData.NestedLevelOne plain) + protected async Task ShadowToPlainAsync(global::Pocos.RealMonsterData.NestedLevelOne plain) { plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; @@ -922,7 +922,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RealMonsterData.NestedLevelOne plain) + public async Task> PlainToShadowAsync(global::Pocos.RealMonsterData.NestedLevelOne plain) { Position.Shadow = plain.Position; Velo.Shadow = plain.Velo; @@ -942,7 +942,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.NestedLevelOne plain, Pocos.RealMonsterData.NestedLevelOne latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.RealMonsterData.NestedLevelOne plain, global::Pocos.RealMonsterData.NestedLevelOne latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -969,9 +969,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.RealMonsterData.NestedLevelOne CreateEmptyPoco() + public global::Pocos.RealMonsterData.NestedLevelOne CreateEmptyPoco() { - return new Pocos.RealMonsterData.NestedLevelOne(); + return new global::Pocos.RealMonsterData.NestedLevelOne(); } private IList Children { get; } = new List(); @@ -1083,9 +1083,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.RealMonsterData.NestedLevelTwo plain = new Pocos.RealMonsterData.NestedLevelTwo(); + global::Pocos.RealMonsterData.NestedLevelTwo plain = new global::Pocos.RealMonsterData.NestedLevelTwo(); await this.ReadAsync(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -1099,9 +1099,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.RealMonsterData.NestedLevelTwo plain = new Pocos.RealMonsterData.NestedLevelTwo(); + global::Pocos.RealMonsterData.NestedLevelTwo plain = new global::Pocos.RealMonsterData.NestedLevelTwo(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; plain.Acc = Acc.LastValue; @@ -1114,7 +1114,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RealMonsterData.NestedLevelTwo plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RealMonsterData.NestedLevelTwo plain) { plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -1131,7 +1131,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RealMonsterData.NestedLevelTwo plain) + public async Task> PlainToOnlineAsync(global::Pocos.RealMonsterData.NestedLevelTwo plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -1153,7 +1153,7 @@ public async Task> PlainToOnlineAsync(Pocos.RealMons [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RealMonsterData.NestedLevelTwo plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RealMonsterData.NestedLevelTwo plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -1177,9 +1177,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.RealMonsterData.NestedLevelTwo plain = new Pocos.RealMonsterData.NestedLevelTwo(); + global::Pocos.RealMonsterData.NestedLevelTwo plain = new global::Pocos.RealMonsterData.NestedLevelTwo(); plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; plain.Acc = Acc.Shadow; @@ -1188,7 +1188,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.RealMonsterData.NestedLevelTwo plain) + protected async Task ShadowToPlainAsync(global::Pocos.RealMonsterData.NestedLevelTwo plain) { plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; @@ -1203,7 +1203,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RealMonsterData.NestedLevelTwo plain) + public async Task> PlainToShadowAsync(global::Pocos.RealMonsterData.NestedLevelTwo plain) { Position.Shadow = plain.Position; Velo.Shadow = plain.Velo; @@ -1223,7 +1223,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.NestedLevelTwo plain, Pocos.RealMonsterData.NestedLevelTwo latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.RealMonsterData.NestedLevelTwo plain, global::Pocos.RealMonsterData.NestedLevelTwo latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -1250,9 +1250,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.RealMonsterData.NestedLevelTwo CreateEmptyPoco() + public global::Pocos.RealMonsterData.NestedLevelTwo CreateEmptyPoco() { - return new Pocos.RealMonsterData.NestedLevelTwo(); + return new global::Pocos.RealMonsterData.NestedLevelTwo(); } private IList Children { get; } = new List(); @@ -1362,9 +1362,9 @@ public async virtual Task OnlineToPlain() return await (dynamic)this.OnlineToPlainAsync(); } - public async Task OnlineToPlainAsync() + public async Task OnlineToPlainAsync() { - Pocos.RealMonsterData.NestedLevelThree plain = new Pocos.RealMonsterData.NestedLevelThree(); + global::Pocos.RealMonsterData.NestedLevelThree plain = new global::Pocos.RealMonsterData.NestedLevelThree(); await this.ReadAsync(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -1375,9 +1375,9 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _OnlineToPlainNoacAsync() + public async Task _OnlineToPlainNoacAsync() { - Pocos.RealMonsterData.NestedLevelThree plain = new Pocos.RealMonsterData.NestedLevelThree(); + global::Pocos.RealMonsterData.NestedLevelThree plain = new global::Pocos.RealMonsterData.NestedLevelThree(); plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; plain.Acc = Acc.LastValue; @@ -1387,7 +1387,7 @@ public async virtual Task OnlineToPlain() [Obsolete("This method should not be used if you indent to access the controllers data. Use `OnlineToPlain` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - protected async Task _OnlineToPlainNoacAsync(Pocos.RealMonsterData.NestedLevelThree plain) + protected async Task _OnlineToPlainNoacAsync(global::Pocos.RealMonsterData.NestedLevelThree plain) { plain.Position = Position.LastValue; plain.Velo = Velo.LastValue; @@ -1401,7 +1401,7 @@ public async virtual Task PlainToOnline(T plain) await this.PlainToOnlineAsync((dynamic)plain); } - public async Task> PlainToOnlineAsync(Pocos.RealMonsterData.NestedLevelThree plain) + public async Task> PlainToOnlineAsync(global::Pocos.RealMonsterData.NestedLevelThree plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -1420,7 +1420,7 @@ public async Task> PlainToOnlineAsync(Pocos.RealMons [Obsolete("This method should not be used if you indent to access the controllers data. Use `PlainToOnline` instead.")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public async Task _PlainToOnlineNoacAsync(Pocos.RealMonsterData.NestedLevelThree plain) + public async Task _PlainToOnlineNoacAsync(global::Pocos.RealMonsterData.NestedLevelThree plain) { #pragma warning disable CS0612 Position.LethargicWrite(plain.Position); @@ -1441,9 +1441,9 @@ public async virtual Task ShadowToPlain() return await (dynamic)this.ShadowToPlainAsync(); } - public async Task ShadowToPlainAsync() + public async Task ShadowToPlainAsync() { - Pocos.RealMonsterData.NestedLevelThree plain = new Pocos.RealMonsterData.NestedLevelThree(); + global::Pocos.RealMonsterData.NestedLevelThree plain = new global::Pocos.RealMonsterData.NestedLevelThree(); plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; plain.Acc = Acc.Shadow; @@ -1451,7 +1451,7 @@ public async virtual Task ShadowToPlain() return plain; } - protected async Task ShadowToPlainAsync(Pocos.RealMonsterData.NestedLevelThree plain) + protected async Task ShadowToPlainAsync(global::Pocos.RealMonsterData.NestedLevelThree plain) { plain.Position = Position.Shadow; plain.Velo = Velo.Shadow; @@ -1465,7 +1465,7 @@ public async virtual Task PlainToShadow(T plain) await this.PlainToShadowAsync((dynamic)plain); } - public async Task> PlainToShadowAsync(Pocos.RealMonsterData.NestedLevelThree plain) + public async Task> PlainToShadowAsync(global::Pocos.RealMonsterData.NestedLevelThree plain) { Position.Shadow = plain.Position; Velo.Shadow = plain.Velo; @@ -1484,7 +1484,7 @@ public async virtual Task AnyChangeAsync(T plain) ///Compares if the current plain object has changed from the previous object.This method is used by the framework to determine if the object has changed and needs to be updated. ///[!NOTE] Any member in the hierarchy that is ignored by the compilers (e.g. when CompilerOmitAttribute is used) will not be compared, and therefore will not be detected as changed. /// - public async Task DetectsAnyChangeAsync(Pocos.RealMonsterData.NestedLevelThree plain, Pocos.RealMonsterData.NestedLevelThree latest = null) + public async Task DetectsAnyChangeAsync(global::Pocos.RealMonsterData.NestedLevelThree plain, global::Pocos.RealMonsterData.NestedLevelThree latest = null) { if (latest == null) latest = await this._OnlineToPlainNoacAsync(); @@ -1509,9 +1509,9 @@ public void Poll() this.RetrievePrimitives().ToList().ForEach(x => x.Poll()); } - public Pocos.RealMonsterData.NestedLevelThree CreateEmptyPoco() + public global::Pocos.RealMonsterData.NestedLevelThree CreateEmptyPoco() { - return new Pocos.RealMonsterData.NestedLevelThree(); + return new global::Pocos.RealMonsterData.NestedLevelThree(); } private IList Children { get; } = new List(); diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs index 4db2980d..8fdaba4a 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/moster.g.cs @@ -11,7 +11,7 @@ public partial class MonsterBase : AXSharp.Connector.IPlain public MonsterBase() { #pragma warning disable CS0612 - AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(ArrayOfDrives, () => new Pocos.MonsterData.DriveBase(), new[] { (0, 3) }); + AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(ArrayOfDrives, () => new global::Pocos.MonsterData.DriveBase(), new[] { (0, 3) }); #pragma warning restore CS0612 } diff --git a/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/realmonster.g.cs b/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/realmonster.g.cs index b2897aa9..6d5fefac 100644 --- a/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/realmonster.g.cs +++ b/src/tests.integrations/integrated/src/integrated.twin/.g/POCO/dataswapping/realmonster.g.cs @@ -11,7 +11,7 @@ public partial class RealMonsterBase : AXSharp.Connector.IPlain public RealMonsterBase() { #pragma warning disable CS0612 - AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(ArrayOfDrives, () => new Pocos.RealMonsterData.DriveBaseNested(), new[] { (0, 3) }); + AXSharp.Connector.BuilderHelpers.Arrays.InstantiateArray(ArrayOfDrives, () => new global::Pocos.RealMonsterData.DriveBaseNested(), new[] { (0, 3) }); #pragma warning restore CS0612 }