Redesign ARM modelling using new @armResource decorator
- Add new @armResource, @armResourceOperations, and @armStandard* decorators - Add new base types for ARM resources: TrackedResource, ExtensionResource, ProxyResource - Trim base service namespace from parameter definition names - Fix issue where dynamic namespaces were not evaluated - Add _____ sample - Add _____ sample - Update _____ and _____ samples
This commit is contained in:
Родитель
ca79ff5e51
Коммит
6380ce6a02
|
@ -367,7 +367,10 @@ export function createChecker(program: Program) {
|
|||
|
||||
function checkNamespace(node: NamespaceStatementNode) {
|
||||
const links = getSymbolLinks(node.symbol!);
|
||||
const type = links.type as NamespaceType;
|
||||
let type = links.type as NamespaceType;
|
||||
if (!type) {
|
||||
type = initializeTypeForNamespace(node);
|
||||
}
|
||||
|
||||
if (Array.isArray(node.statements)) {
|
||||
for (const statement of node.statements.map(getTypeForNode)) {
|
||||
|
@ -417,7 +420,7 @@ export function createChecker(program: Program) {
|
|||
}
|
||||
}
|
||||
|
||||
return symbolLinks.type;
|
||||
return symbolLinks.type as NamespaceType;
|
||||
}
|
||||
|
||||
function getParentNamespaceType(
|
||||
|
|
Загрузка…
Ссылка в новой задаче