-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed a number of jsdoc comments. - Changed copyrights to refer to the license file without a copyright year. - Renamed a few interfaces to follow the interface naming rules (a leading I). - Merged PR #81 from Aaron Braunstein. - Fixed a number of formatting issues. - Upgraded all dependencies to their latest version.
- Loading branch information
1 parent
aa6da1c
commit e859609
Showing
27 changed files
with
1,217 additions
and
1,027 deletions.
There are no files selected for viewing
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,29 +1,27 @@ | ||
/* | ||
* This file is released under the MIT license. | ||
* Copyright (c) 2023, Mike Lischke | ||
* | ||
* See LICENSE file for more info. | ||
* Copyright (c) Mike Lischke. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*/ | ||
|
||
import { Type, ReferenceKind, TypeKind } from "./types"; | ||
import { IType, ReferenceKind, TypeKind } from "./types"; | ||
|
||
import { BaseSymbol } from "./BaseSymbol"; | ||
|
||
export class ArrayType extends BaseSymbol implements Type { | ||
export class ArrayType extends BaseSymbol implements IType { | ||
|
||
public readonly elementType: Type; | ||
public readonly elementType: IType; | ||
public readonly size: number; // > 0 if fixed length. | ||
|
||
private referenceKind: ReferenceKind; | ||
|
||
public constructor(name: string, referenceKind: ReferenceKind, elemType: Type, size = 0) { | ||
public constructor(name: string, referenceKind: ReferenceKind, elemType: IType, size = 0) { | ||
super(name); | ||
this.referenceKind = referenceKind; | ||
this.elementType = elemType; | ||
this.size = size; | ||
} | ||
|
||
public get baseTypes(): Type[] { return []; } | ||
public get baseTypes(): IType[] { return []; } | ||
public get kind(): TypeKind { return TypeKind.Array; } | ||
public get reference(): ReferenceKind { return this.referenceKind; } | ||
} |
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
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
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
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
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,8 +1,6 @@ | ||
/* | ||
* This file is released under the MIT license. | ||
* Copyright (c) 2023, Mike Lischke | ||
* | ||
* See LICENSE file for more info. | ||
* Copyright (c) Mike Lischke. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*/ | ||
|
||
export class DuplicateSymbolError extends Error { } |
Oops, something went wrong.