From 4af098882f9a9c99b08f990ea20d0eabd71246e9 Mon Sep 17 00:00:00 2001 From: xiaolou86 Date: Wed, 11 Oct 2023 16:59:03 +0800 Subject: [PATCH] Fix typos --- apps/remix-ide/src/app/tabs/network-module.js | 2 +- .../modules/staticAnalysisCommon.ts | 12 ++++++------ libs/remix-astwalker/src/sourceMappings.ts | 2 +- libs/remix-astwalker/src/types.ts | 4 ++-- libs/remix-lib/src/execution/txListener.ts | 2 +- libs/remix-lib/src/execution/txRunnerVM.ts | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/network-module.js b/apps/remix-ide/src/app/tabs/network-module.js index c1cc1e12b5..ea7a1c0c6e 100644 --- a/apps/remix-ide/src/app/tabs/network-module.js +++ b/apps/remix-ide/src/app/tabs/network-module.js @@ -53,7 +53,7 @@ export class NetworkModule extends Plugin { this.blockchain.addProvider({ name: network.name, provider }) } - /** Remove a network to the list of availble networks */ + /** Remove a network to the list of available networks */ removeNetwork (name) { this.blockchain.removeProvider(name) } diff --git a/libs/remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.ts b/libs/remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.ts index 6d258d5909..9818c4a925 100644 --- a/libs/remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.ts +++ b/libs/remix-analyzer/src/solidity-analyzer/modules/staticAnalysisCommon.ts @@ -427,7 +427,7 @@ function getLibraryCallMemberName (funcCall: FunctionCallAstNode): string { * function baz() { * bar(10) => foo.bar(uint) * @func {ASTNode} function call node - * @func {ASTNode} contract defintion + * @func {ASTNode} contract definition * @return {string} full qualified identifier for the function call */ function getFullQualifiedFunctionCallIdent (contract: ContractDefinitionAstNode, func: FunctionCallAstNode): string { @@ -468,8 +468,8 @@ function isStatement (node: any): boolean { // #################### Complex Node Identification /** - * True if function defintion has function body - * @funcNode {ASTNode} function defintion node + * True if function definition has function body + * @funcNode {ASTNode} function definition node * @return {bool} */ function hasFunctionBody (funcNode: FunctionDefinitionAstNode): boolean { @@ -630,7 +630,7 @@ function isStateVariable (name: string, stateVariables: VariableDeclarationAstNo } /** - * True if is function defintion that is flaged as constant + * True if is function definition that is flaged as constant * @node {ASTNode} some AstNode * @return {bool} */ @@ -648,7 +648,7 @@ function isVariableTurnedIntoGetter (varDeclNode: VariableDeclarationAstNode): b } /** - * True if is function defintion has payable modifier + * True if is function definition has payable modifier * @node {ASTNode} some AstNode * @return {bool} */ @@ -743,7 +743,7 @@ function isFullyImplementedContract (node: ContractDefinitionAstNode): boolean { } /** - * True if it is a library contract defintion + * True if it is a library contract definition * @node {ASTNode} some AstNode * @return {bool} */ diff --git a/libs/remix-astwalker/src/sourceMappings.ts b/libs/remix-astwalker/src/sourceMappings.ts index 869f495946..69b279d608 100644 --- a/libs/remix-astwalker/src/sourceMappings.ts +++ b/libs/remix-astwalker/src/sourceMappings.ts @@ -56,7 +56,7 @@ export function sourceLocationFromSrc (src: string): Location { /** * Routines for retrieving solc AST object(s) using some criteria, usually - * includng "src' information. + * including "src' information. */ // eslint-disable-next-line no-redeclare export class SourceMappings { diff --git a/libs/remix-astwalker/src/types.ts b/libs/remix-astwalker/src/types.ts index 784323d221..469d32c914 100644 --- a/libs/remix-astwalker/src/types.ts +++ b/libs/remix-astwalker/src/types.ts @@ -6,7 +6,7 @@ export interface Location { file: number; // Would it be clearer to call this a file index? } -// This is intended to be compatibile with VScode's Position. +// This is intended to be compatible with VScode's Position. // However it is pretty common with other things too. // Note: File index is missing here export interface LineColPosition { @@ -14,7 +14,7 @@ export interface LineColPosition { readonly character: number; } -// This is intended to be compatibile with vscode's Range +// This is intended to be compatible with vscode's Range // However it is pretty common with other things too. // Note: File index is missing here export interface LineColRange { diff --git a/libs/remix-lib/src/execution/txListener.ts b/libs/remix-lib/src/execution/txListener.ts index 960ca63a55..d4251f0297 100644 --- a/libs/remix-lib/src/execution/txListener.ts +++ b/libs/remix-lib/src/execution/txListener.ts @@ -36,7 +36,7 @@ export class TxListener { constructor (opt, executionContext) { this.event = new EventManager() - // has a default for now for backwards compatability + // has a default for now for backwards compatibility this.executionContext = executionContext this._api = opt.api this._resolvedTransactions = {} diff --git a/libs/remix-lib/src/execution/txRunnerVM.ts b/libs/remix-lib/src/execution/txRunnerVM.ts index 5a800e2326..31364c045a 100644 --- a/libs/remix-lib/src/execution/txRunnerVM.ts +++ b/libs/remix-lib/src/execution/txRunnerVM.ts @@ -34,7 +34,7 @@ export class TxRunnerVM { constructor (vmaccounts, api, getVMObject) { this.event = new EventManager() this.logsManager = new LogsManager() - // has a default for now for backwards compatability + // has a default for now for backwards compatibility this.getVMObject = getVMObject this.commonContext = this.getVMObject().common this.blockNumber = 0