-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#68 redonly interface InjectionContext
- Loading branch information
1 parent
47f77c5
commit 3add31b
Showing
2 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/react-lowcode/src/codegen/generation/context/app-context.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
packages/react-lowcode/src/codegen/generation/context/injection-context.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
import { CodegenNaming, Naming } from "../interfaces/naming"; | ||
|
||
export class InjectionContext{ | ||
|
||
constructor(){ | ||
this._naming = new CodegenNaming() | ||
} | ||
export class DefaultInjectionContext implements InjectionContext { | ||
|
||
private _naming : Naming | ||
constructor(public naming = new CodegenNaming()) { | ||
|
||
public get naming() : Naming { | ||
return this._naming; | ||
} | ||
private set value(naming : Naming) { | ||
this._naming = naming; | ||
} | ||
} | ||
|
||
} | ||
|
||
export interface InjectionContext{ | ||
|
||
readonly naming : Naming | ||
|
||
} |