private EntityTransactionOutcome Process() { EntityTransactionOutcome outcome; this.SourceSystemEntityId = this.GetSourceSystemEntityId(); this.Mapping = this.mappingRepository.GetMapping(this.SourceSystemEntityId); if (this.ShouldProcess()) { PreprocessedEntity <TEntity> preprocessedEntity = this.preprocessor.Preprocess( this.SourceSystemEntity, EntityOrigin.SourceSystem, this.MappingExists); this.SourceSystemEntity = preprocessedEntity.Entity; if (!preprocessedEntity.IsRejected) { if (this.MappingExists) { outcome = this.ProcessEntityWithMapping(); } else { outcome = this.ProcessEntityWithoutMapping(); } } else { outcome = EntityTransactionOutcome.Rejected; } } else { outcome = EntityTransactionOutcome.Skipped; } return(outcome); }
protected PreprocessedEntity(PreprocessedEntity.Internal* native, bool isInternalImpl = false) : base((CppSharp.Parser.AST.Declaration.Internal*) native) { }
private PreprocessedEntity(PreprocessedEntity.Internal native) : this(__CopyValue(native)) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
private static PreprocessedEntity.Internal* __CopyValue(PreprocessedEntity.Internal native) { var ret = Marshal.AllocHGlobal(176); CppSharp.Parser.AST.PreprocessedEntity.Internal.cctor_2(ret, new global::System.IntPtr(&native)); return (PreprocessedEntity.Internal*) ret; }
public static PreprocessedEntity __CreateInstance(PreprocessedEntity.Internal native) { return new PreprocessedEntity(native); }
protected PreprocessedEntity(PreprocessedEntity.Internal* native, bool skipVTables = false) : base((CppSharp.Parser.AST.Declaration.Internal*) null) { __PointerAdjustment = 0; if (native == null) return; __Instance = new global::System.IntPtr(native); }
private PreprocessedEntity(PreprocessedEntity.Internal native, bool skipVTables = false) : this(__CopyValue(native), skipVTables) { __ownsNativeInstance = true; NativeToManagedMap[__Instance] = this; }
public static PreprocessedEntity __CreateInstance(PreprocessedEntity.Internal native, bool skipVTables = false) { return new PreprocessedEntity(native, skipVTables); }
private static void* __CopyValue(PreprocessedEntity.__Internal native) { var ret = Marshal.AllocHGlobal(12); *(PreprocessedEntity.__Internal*) ret = native; return ret.ToPointer(); }
void VisitPreprocessedEntity(PreprocessedEntity entity, AST.PreprocessedEntity _entity) { VisitDeclaration(entity, _entity); _entity.Location = VisitMacroLocation(entity.Location); }
internal PreprocessedEntity(PreprocessedEntity.Internal native) : this(&native) { }
internal PreprocessedEntity(PreprocessedEntity.Internal* native) : this(new global::System.IntPtr(native)) { }
private PreprocessedEntity(PreprocessedEntity.Internal native) : this(__CopyValue(native)) { __ownsNativeInstance = true; }
internal PreprocessedEntity(PreprocessedEntity.Internal native) : this(__CopyValue(native)) { }
protected PreprocessedEntity(PreprocessedEntity.Internal* native, bool skipVTables = false) { if (native == null) return; __Instance = new global::System.IntPtr(native); }
private static PreprocessedEntity.Internal* __CopyValue(PreprocessedEntity.Internal native) { var ret = (PreprocessedEntity.Internal*) Marshal.AllocHGlobal(12); *ret = native; return ret; }