class

Detector::Specification::AwsCdk

Inherits Detector < Reference < Object

Constants

API_CONSTRUCT = Regex.union("RestApi", "HttpApi", "addResource", "add_resource", "addRoutes", "add_routes")
PYTHON_HINT_MARKER = Regex.union("from aws_cdk", "import aws_cdk", "aws_cdk.aws_apigateway")
TS_JS_HINT_MARKER = Regex.union("aws-cdk-lib", "@aws-cdk/aws-apigateway", "@aws-cdk/aws-apigatewayv2")

Every .ts/.js/.py in the tree reaches these gates, so each was walking the whole corpus three (hints) plus six (constructs) times.

Class methods

tech_name

The tech name without needing an instance, so the registry can be read off the classes themselves rather than from a parallel list.

Source

Instance methods

applicable?(filename : String) : Bool

Registers each CDK source path in CodeLocator.

Source
detect(filename : String, file_contents : String) : Bool
Source
idempotent?

Registers each CDK source path in CodeLocator.

Source
set_name

Registers each CDK source path in CodeLocator.

Source